Skip to content

Commit a78554e

Browse files
Ashok RaoAshok Rao
authored andcommitted
Fixing .astyleignore conflict
2 parents 0d9a1cc + e57e325 commit a78554e

File tree

73 files changed

+268
-999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+268
-999
lines changed

.astyleignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
^hal/storage_abstraction
2121
^platform/cxxsupport
2222
^platform/tests/UNITTESTS
23+
^events/tests/UNITTESTS
2324
^rtos/source/TARGET_CORTEX/rtx4
2425
^rtos/source/TARGET_CORTEX/rtx5
2526
^targets

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ matrix:
100100
- |
101101
! git grep '^#include\s["'"']mbed.h['"'"]$' -- '*.c' '*.h' '*.cpp' '*.hpp' \
102102
':!*platform_mbed.h' ':!*TESTS/*' ':!TEST_APPS/' ':!UNITTESTS/' \
103-
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*'
103+
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*' \
104+
':!*events/tests/*'
104105
105106
106107
### Docs Tests ###
@@ -252,10 +253,8 @@ matrix:
252253
connectivity/libraries/ppp connectivity/netsocket features/nanostack features/lwipstack features/frameworks/greentea-client \
253254
features/frameworks/utest features/frameworks/unity components BUILD
254255
- python tools/make.py -t GCC_ARM -m NUCLEO_F103RB --source=. --build=BUILD/NUCLEO_F103RB/GCC_ARM -j0
255-
# Run local equeue tests
256-
- make -C ${EVENTS}/source test
257256
# Run profiling tests
258-
- make -C ${EVENTS}/source prof | tee prof
257+
- make -C ${EVENTS}/tests/unit prof | tee prof
259258
after_success:
260259
# Update status, comparing with master if possible.
261260
- |

TESTS/mbed_hal/common_tickers_freq/main.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@
2929
#include "hal/lp_ticker_api.h"
3030
#include "hal/mbed_lp_ticker_wrapper.h"
3131

32-
#if defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
33-
#error [NOT_SUPPORTED] test not supported
32+
#if !DEVICE_USTICKER
33+
#error [NOT_SUPPORTED] UsTicker need to be enabled for this test
3434
#else
3535

36+
#if defined(SKIP_TIME_DRIFT_TESTS)
37+
#error [NOT_SUPPORTED] timing accuracy tests skipped
38+
#endif // defined(SKIP_TIME_DRIFT_TESTS)
39+
3640
#define US_PER_S 1000000
3741

3842
using namespace utest::v1;
@@ -208,4 +212,4 @@ int main()
208212
Harness::run(specification);
209213
}
210214

211-
#endif // defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
215+
#endif // !DEVICE_USTICKER

TESTS/usb_device/basic/USBEndpointTester.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "stdint.h"
2121
#include "stdlib.h"
2222
#include "USBEndpointTester.h"
23-
#include "mbed_shared_queues.h"
23+
#include "events/mbed_shared_queues.h"
2424
#include "EndpointResolver.h"
2525

2626
#define DEFAULT_CONFIGURATION (1)

TESTS/usb_device/basic/USBEndpointTester.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/* These headers are included for child class. */
2222
#include "USBDescriptor.h"
2323
#include "USBDevice_Types.h"
24-
#include "EventQueue.h"
24+
#include "events/EventQueue.h"
2525
#include "EventFlags.h"
2626
#include "platform/NonCopyable.h"
2727

TESTS/usb_device/basic/USBTester.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "stdint.h"
2121
#include "USBTester.h"
22-
#include "mbed_shared_queues.h"
22+
#include "events/mbed_shared_queues.h"
2323
#include "EndpointResolver.h"
2424

2525
#define DEFAULT_CONFIGURATION (1)

TESTS/usb_device/basic/USBTester.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/* These headers are included for child class. */
2222
#include "USBDescriptor.h"
2323
#include "USBDevice_Types.h"
24-
#include "EventQueue.h"
24+
#include "events/EventQueue.h"
2525
#include "EventFlags.h"
2626
#include "platform/NonCopyable.h"
2727

UNITTESTS/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUNITTEST")
103103
# Set include dirs.
104104
set(unittest-includes-base
105105
"${PROJECT_SOURCE_DIR}/target_h"
106-
"${PROJECT_SOURCE_DIR}/target_h/events"
107-
"${PROJECT_SOURCE_DIR}/target_h/events/equeue"
106+
"${PROJECT_SOURCE_DIR}/../events/tests/UNITTESTS/target_h"
107+
"${PROJECT_SOURCE_DIR}/../events/tests/UNITTESTS/target_h/equeue"
108108
"${PROJECT_SOURCE_DIR}/target_h/platform"
109109
"${PROJECT_SOURCE_DIR}/target_h/platform/cxxsupport"
110110
"${PROJECT_SOURCE_DIR}/target_h/drivers"
@@ -123,9 +123,9 @@ set(unittest-includes-base
123123
"${PROJECT_SOURCE_DIR}/../storage/kvstore/kv_config/include"
124124
"${PROJECT_SOURCE_DIR}/../drivers"
125125
"${PROJECT_SOURCE_DIR}/../hal"
126-
"${PROJECT_SOURCE_DIR}/../events"
126+
"${PROJECT_SOURCE_DIR}/../events/include"
127+
"${PROJECT_SOURCE_DIR}/../events/include/events/internal"
127128
"${PROJECT_SOURCE_DIR}/../events/source"
128-
"${PROJECT_SOURCE_DIR}/../events/internal"
129129
"${PROJECT_SOURCE_DIR}/../rtos/include"
130130
"${PROJECT_SOURCE_DIR}/../features/frameworks"
131131
"${PROJECT_SOURCE_DIR}/../features/frameworks/mbed-trace"

UNITTESTS/events/equeue/unittest.cmake

Lines changed: 0 additions & 27 deletions
This file was deleted.

UNITTESTS/stubs/equeue_stub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
#include "equeue.h"
18+
#include "events/equeue.h"
1919
#include <stdlib.h>
2020

2121
#include "equeue_stub.h"

0 commit comments

Comments
 (0)