From 39e75c042f8456d5522b3077e53b4baf37919ef5 Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Tue, 2 Sep 2014 17:34:08 +0100 Subject: [PATCH] Changed test suite version to 1.2 Added simple test to check C strings conversions --- libraries/tests/mbed/env/test_env.h | 3 +++ workspace_tools/singletest.py | 2 +- workspace_tools/tests.py | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/libraries/tests/mbed/env/test_env.h b/libraries/tests/mbed/env/test_env.h index 60e78a5bef..0fe7c1ceae 100644 --- a/libraries/tests/mbed/env/test_env.h +++ b/libraries/tests/mbed/env/test_env.h @@ -24,4 +24,7 @@ void notify_performance_coefficient(const char* measurement_name, const double v // Test functionality useful during testing unsigned int testenv_randseed(); +// Macros, unit test like to provide basic comparisons +#define TESTENV_STRCMP(GIVEN,EXPECTED) (strcmp(GIVEN,EXPECTED) == 0) + #endif diff --git a/workspace_tools/singletest.py b/workspace_tools/singletest.py index cac19cfad4..341da25837 100644 --- a/workspace_tools/singletest.py +++ b/workspace_tools/singletest.py @@ -88,7 +88,7 @@ def get_version(): """ Returns test script version """ single_test_version_major = 1 - single_test_version_minor = 1 + single_test_version_minor = 2 return (single_test_version_major, single_test_version_minor) diff --git a/workspace_tools/tests.py b/workspace_tools/tests.py index 4c0b3f3ad7..228f16e541 100644 --- a/workspace_tools/tests.py +++ b/workspace_tools/tests.py @@ -510,6 +510,14 @@ TESTS = [ "source_dir": join(TEST_DIR, "mbed", "pin_toggling"), "dependencies": [MBED_LIBRARIES], }, + { + "id": "MBED_33", "description": "C string operations", + "source_dir": join(TEST_DIR, "mbed", "cstring"), + "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB], + "duration": 10, + "automated": True, + }, + # CMSIS RTOS tests {