Skip to content

Commit f20f93a

Browse files
authored
Merge pull request #13333 from gpsimenos/gp-events-restruct
Events directory restructuring
2 parents aa882d3 + fe7ae8a commit f20f93a

File tree

50 files changed

+73
-979
lines changed

Some content is hidden

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

50 files changed

+73
-979
lines changed

.astyleignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
^features/unsupported/
2020
^hal/storage_abstraction
2121
^platform/cxxsupport
22+
^events/tests/UNITTESTS
2223
^rtos/source/TARGET_CORTEX/rtx4
2324
^rtos/source/TARGET_CORTEX/rtx5
2425
^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/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"
@@ -122,9 +122,9 @@ set(unittest-includes-base
122122
"${PROJECT_SOURCE_DIR}/../storage/kvstore/kv_config/include"
123123
"${PROJECT_SOURCE_DIR}/../drivers"
124124
"${PROJECT_SOURCE_DIR}/../hal"
125-
"${PROJECT_SOURCE_DIR}/../events"
125+
"${PROJECT_SOURCE_DIR}/../events/include"
126+
"${PROJECT_SOURCE_DIR}/../events/include/events/internal"
126127
"${PROJECT_SOURCE_DIR}/../events/source"
127-
"${PROJECT_SOURCE_DIR}/../events/internal"
128128
"${PROJECT_SOURCE_DIR}/../rtos/include"
129129
"${PROJECT_SOURCE_DIR}/../features/frameworks"
130130
"${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"

connectivity/cellular/source/framework/device/CellularDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "CellularUtil.h"
2121
#include "CellularLog.h"
2222
#include "events/EventQueue.h"
23-
#include "mbed_shared_queues.h"
23+
#include "events/mbed_shared_queues.h"
2424

2525
namespace mbed {
2626

0 commit comments

Comments
 (0)