Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .astyleignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@
^rtos/source/TARGET_CORTEX/rtx4
^rtos/source/TARGET_CORTEX/rtx5
^targets
^TESTS/COMMON/unity
^TESTS/mbed_hal/trng/pithy
^TESTS/mbed_hal/trng/pithy
^tools
^UNITTESTS
^storage/blockdevice/tests/UNITTESTS
^storage/kvstore/tests/UNITTESTS
^drivers/tests/UNITTESTS
^drivers/tests/UNITTESTS
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ matrix:
- sed -n '/``` cpp/,/```/{/```$/Q;/```/d;p;}' ${EVENTS}/README.md > main.cpp
- |
rm -r rtos/source/TARGET_CORTEX drivers/source/usb connectivity/cellular connectivity/drivers/cellular \
connectivity/libraries/ppp connectivity/netsocket connectivity/nanostack connectivity/lwipstack features/frameworks/greentea-client \
features/frameworks/utest features/frameworks/unity components BUILD
connectivity/libraries/ppp connectivity/netsocket connectivity/nanostack connectivity/lwipstack \
components BUILD
- python tools/make.py -t GCC_ARM -m NUCLEO_F103RB --source=. --build=BUILD/NUCLEO_F103RB/GCC_ARM -j0
# Run profiling tests
- make -C ${EVENTS}/tests/unit prof | tee prof
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Folders containing files under different permissive license than Apache 2.0 are
- [features/lorawan](./features/lorawan) - Revised BSD
- [connectivity/lwipstack](./connectivity/lwipstack) - BSD-style, MIT-style
- [connectivity/nanostack/sal-stack-nanostack](./connectivity/nanostack/sal-stack-nanostack) - BSD-3-Clause
- [features/frameworks/unity/unity](./features/frameworks/unity/unity) - MIT
- [features/unsupported](./features/unsupported) - MIT-style, BSD-style
- [storage/blockdevice](./storage/blockdevice) - Apache 2.0, MIT
- [storage/filesystem/littlefs](.storage/filesystem/littlefs) - [BSD-3-Clause](https://github.com/ARMmbed/littlefs/blob/master/LICENSE.md)
- [storage/filesystem/fat/ChaN](.storage/filesystem/fat/ChaN) - BSD-style, 1 clause, [Copyright ChaN](http://www.elm-chan.org/fsw/ff/doc/appnote.html)
- [rtos](./rtos) - MIT
- [drivers](./drivers) - MIT
- [TESTS/mbed_hal/trng/pithy](./TESTS/mbed_hal/trng/pithy) - BSD-3-Clause
- [TESTS/COMMON/unity](./TESTS/COMMON/unity) - MIT
- [tools/data/rpc](./tools/data/rpc) - MIT
- [targets](./targets) - PBL, BSD-style, MIT-style, Zlib-style, Public-domain, BSD-3-Clause

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

`greentea-client` is a client library for [the Greentea test tool](https://github.com/ARMmbed/mbed-os-tools/tree/master/packages/mbed-greentea) when used in an [Mbed OS](https://os.mbed.com/) project.

This package implements the client side of the key-value protocol used for communication between the device under test (DUT) and the host. The `Greentea` tool implements the protocol's host behavior. We use [utest](https://github.com/ARMmbed/mbed-os/blob/master/features/frameworks/utest/README.md) as our test harness.
This package implements the client side of the key-value protocol used for communication between the device under test (DUT) and the host. The `Greentea` tool implements the protocol's host behavior. We use [utest](https://github.com/ARMmbed/mbed-os/blob/master/TESTS/COMMON/utest/README.md) as our test harness.

```
DUT <--- serial port connection ---> host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,32 @@
/**
* Generic test suite transport protocol keys
*/
extern const char* GREENTEA_TEST_ENV_END;
extern const char* GREENTEA_TEST_ENV_EXIT;
extern const char* GREENTEA_TEST_ENV_SYNC;
extern const char* GREENTEA_TEST_ENV_TIMEOUT;
extern const char* GREENTEA_TEST_ENV_HOST_TEST_NAME;
extern const char* GREENTEA_TEST_ENV_HOST_TEST_VERSION;
extern const char *GREENTEA_TEST_ENV_END;
extern const char *GREENTEA_TEST_ENV_EXIT;
extern const char *GREENTEA_TEST_ENV_SYNC;
extern const char *GREENTEA_TEST_ENV_TIMEOUT;
extern const char *GREENTEA_TEST_ENV_HOST_TEST_NAME;
extern const char *GREENTEA_TEST_ENV_HOST_TEST_VERSION;

/**
* Test suite success code strings
*/
extern const char* GREENTEA_TEST_ENV_SUCCESS;
extern const char* GREENTEA_TEST_ENV_FAILURE;
extern const char *GREENTEA_TEST_ENV_SUCCESS;
extern const char *GREENTEA_TEST_ENV_FAILURE;

/**
* Test case transport protocol start/finish keys
*/
extern const char* GREENTEA_TEST_ENV_TESTCASE_NAME;
extern const char* GREENTEA_TEST_ENV_TESTCASE_COUNT;
extern const char* GREENTEA_TEST_ENV_TESTCASE_START;
extern const char* GREENTEA_TEST_ENV_TESTCASE_FINISH;
extern const char* GREENTEA_TEST_ENV_TESTCASE_SUMMARY;
extern const char *GREENTEA_TEST_ENV_TESTCASE_NAME;
extern const char *GREENTEA_TEST_ENV_TESTCASE_COUNT;
extern const char *GREENTEA_TEST_ENV_TESTCASE_START;
extern const char *GREENTEA_TEST_ENV_TESTCASE_FINISH;
extern const char *GREENTEA_TEST_ENV_TESTCASE_SUMMARY;

/**
* Code Coverage (LCOV) transport protocol keys
*/
extern const char* GREENTEA_TEST_ENV_LCOV_START;
extern const char *GREENTEA_TEST_ENV_LCOV_START;

/**
* Greentea-client related API for communication with host side
Expand Down Expand Up @@ -112,10 +112,10 @@ extern "C" {
/**
* Greentea-client C API
*/
void GREENTEA_SETUP(const int timeout, const char * host_test);
void greentea_send_kv(const char * key, const char * val);
int greentea_parse_kv(char * key, char * val,
const int key_len, const int val_len);
void GREENTEA_SETUP(const int timeout, const char *host_test);
void greentea_send_kv(const char *key, const char *val);
int greentea_parse_kv(char *key, char *val,
const int key_len, const int val_len);
int greentea_getc();
void greentea_putc(int c);
void greentea_write_string(const char *str);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ static void send_heap_info()
{
mbed_stats_heap_t heap_stats;
mbed_stats_heap_get(&heap_stats);
greentea_send_kv("max_heap_usage",heap_stats.max_size);
greentea_send_kv("reserved_heap",heap_stats.reserved_size);
greentea_send_kv("max_heap_usage", heap_stats.max_size);
greentea_send_kv("reserved_heap", heap_stats.reserved_size);
}
#endif

Expand All @@ -129,7 +129,7 @@ MBED_UNUSED static void send_stack_info()
}
thread_n = osThreadEnumerate(threads, thread_n);

for(size_t i = 0; i < thread_n; i++) {
for (size_t i = 0; i < thread_n; i++) {
enqeue_thread_info(threads[i]);
deque_and_print_thread_info();
}
Expand Down
Loading