mirror of https://github.com/ARMmbed/mbed-os.git
Updated testcases
parent
2f136b977f
commit
8b68a1ea58
|
@ -22,7 +22,7 @@
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -357,3 +357,4 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -26,7 +26,7 @@ using namespace utest::v1;
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
// Test delay
|
||||
#ifndef TEST_EVENTS_TIMING_TIME
|
||||
|
@ -148,3 +148,4 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -36,6 +36,7 @@
|
|||
#error [NOT_SUPPORTED] Requires parameters from application config file.
|
||||
#endif
|
||||
|
||||
#if (MBED_CONF_APP_LORA_RADIO == SX1272) || (MBED_CONF_APP_LORA_RADIO == SX1276)
|
||||
|
||||
using namespace utest::v1;
|
||||
using namespace mbed;
|
||||
|
@ -281,3 +282,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // (MBED_CONF_APP_LORA_RADIO == SX1272) || (MBED_CONF_APP_LORA_RADIO == SX1276)
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
||||
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
#include "mbed.h"
|
||||
|
@ -460,3 +460,4 @@ int main(void)
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
#endif // ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#if !DEVICE_FLASH
|
||||
#error [NOT_SUPPORTED] Flash API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "utest/utest_serial.h"
|
||||
|
@ -328,3 +328,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_FLASH
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if !DEVICE_LPTICKER
|
||||
#error [NOT_SUPPORTED] Low power ticker not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using utest::v1::Case;
|
||||
|
||||
|
@ -228,3 +228,5 @@ int main()
|
|||
{
|
||||
utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_LPTICKER
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_LPTICKER
|
||||
#error [NOT_SUPPORTED] Low power timer not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -93,3 +93,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_LPTICKER
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if !DEVICE_LPTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -350,3 +350,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_LPTICKER
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#ifndef MBED_MEM_TRACING_ENABLED
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using utest::v1::Case;
|
||||
|
||||
|
@ -427,3 +427,5 @@ int main()
|
|||
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // MBED_MEM_TRACING_ENABLED
|
|
@ -22,13 +22,9 @@
|
|||
#include "SingletonPtr.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef MBED_RTOS_SINGLE_THREAD
|
||||
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] Test not supported for single threaded enviroment. UsTicker need to be enabled for this test.
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -135,3 +131,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_RESET_REASON
|
||||
#error [NOT_SUPPORTED] Reset reason API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -141,3 +141,5 @@ int main()
|
|||
test_reset_reason(); // The result of this test suite is reported by the host side.
|
||||
GREENTEA_TESTSUITE_RESULT(0); // Fail on any error.
|
||||
}
|
||||
|
||||
#endif // !DEVICE_RESET_REASON
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#if !DEVICE_RTC || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -494,3 +494,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_RTC || !DEVICE_USTICKER
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#if !DEVICE_SLEEP
|
||||
#error [NOT_SUPPORTED] Sleep not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -132,3 +132,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_SLEEP
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using utest::v1::Case;
|
||||
|
||||
|
@ -354,3 +354,5 @@ int main()
|
|||
{
|
||||
utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] usticker not supported for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -87,3 +87,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -789,3 +789,4 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] usticker not supported for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -27,10 +27,6 @@
|
|||
|
||||
using namespace utest::v1;
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#define TEST_DELAY_US 50000ULL
|
||||
#define DELTA 2
|
||||
|
||||
|
@ -246,3 +242,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_WATCHDOG
|
||||
#error [NOT_SUPPORTED] Watchdog not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -282,3 +282,5 @@ int main()
|
|||
// Harness will start with a test case index provided by host script.
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_WATCHDOG
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_WATCHDOG
|
||||
#error [NOT_SUPPORTED] Watchdog not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "utest/utest.h"
|
||||
|
@ -319,3 +319,4 @@ int main()
|
|||
// Harness will start with a test case index provided by host script.
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
#endif // !DEVICE_WATCHDOG
|
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define US_PER_S 1000000
|
||||
|
||||
|
@ -605,3 +605,4 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -30,13 +30,9 @@
|
|||
#include "hal/lp_ticker_api.h"
|
||||
#include "hal/mbed_lp_ticker_wrapper.h"
|
||||
|
||||
#if defined(SKIP_TIME_DRIFT_TESTS)
|
||||
#if defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define US_PER_S 1000000
|
||||
|
||||
|
@ -208,3 +204,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(SKIP_TIME_DRIFT_TESTS) || !DEVICE_USTICKER
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#if !DEVICE_CRC
|
||||
#error [NOT_SUPPORTED] CRC not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -280,3 +280,5 @@ int main()
|
|||
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_CRC
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_FLASH
|
||||
#error [NOT_SUPPORTED] Flash API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -280,3 +280,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif !DEVICE_FLASH
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if !DEVICE_LPTICKER
|
||||
#error [NOT_SUPPORTED] Low power timer not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -204,3 +204,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_LPTICKER
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#if !DEVICE_MPU
|
||||
#error [NOT_SUPPORTED] MPU API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -197,3 +197,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_MPU
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_QSPI
|
||||
#error [NOT_SUPPORTED] QSPI not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#if !defined(QSPI_FLASH_CHIP_STRING)
|
||||
#error [NOT_SUPPORTED] QSPI test not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -602,3 +602,5 @@ int main()
|
|||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(QSPI_FLASH_CHIP_STRING)
|
||||
#endif // !DEVICE_QSPI
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_RESET_REASON
|
||||
#error [NOT_SUPPORTED] Reset reason API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -148,3 +148,5 @@ int main()
|
|||
test_reset_reason(); // The result of this test suite is reported by the host side.
|
||||
GREENTEA_TESTSUITE_RESULT(0); // Fail on any error.
|
||||
}
|
||||
|
||||
#endif //!DEVICE_RESET_REASON
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_RTC
|
||||
#error [NOT_SUPPORTED] RTC API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -258,3 +258,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_RTC
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_RTC
|
||||
#error [NOT_SUPPORTED] RTC API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -100,3 +100,5 @@ int main()
|
|||
{
|
||||
rtc_reset_test();
|
||||
}
|
||||
|
||||
#endif // !DEVICE_RTC
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
#if !DEVICE_SLEEP
|
||||
#error [NOT_SUPPORTED] sleep not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
|
||||
|
@ -260,3 +260,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_SLEEP
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if !DEVICE_SLEEP
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define SLEEP_DURATION_US 20000ULL
|
||||
#define DEEP_SLEEP_TEST_CHECK_WAIT_US 2000
|
||||
|
@ -333,3 +333,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_SLEEP
|
|
@ -19,13 +19,9 @@
|
|||
#include "mbed.h"
|
||||
#include "sleep_manager_api_racecondition_tests.h"
|
||||
|
||||
#if !DEVICE_SLEEP
|
||||
#if !DEVICE_SLEEP || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -105,3 +101,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_SLEEP || !DEVICE_USTICKER
|
|
@ -17,15 +17,15 @@
|
|||
|
||||
#if !defined(COMPONENT_PSA_SRV_IPC)
|
||||
#error [NOT_SUPPORTED] Test supported only on PSA targets
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if (defined( __CC_ARM ) || defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
|
||||
#error [NOT_SUPPORTED] this test is supported on GCC only
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if DOMAIN_NS == 1
|
||||
#error [NOT_SUPPORTED] Cannot run on M23/M33 core as SecureFault is implemented in secure-side and cant be remapped
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -156,3 +156,7 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // DOMAIN_NS == 1
|
||||
#endif // (defined( __CC_ARM ) || defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
|
||||
#endif // !defined(COMPONENT_PSA_SRV_IPC)
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#ifdef TARGET_RENESAS
|
||||
#error [NOT_SUPPORTED] Cortex-A target not supported for this test
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -74,3 +74,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#else // TARGET_RENESAS
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
#if !DEVICE_TRNG
|
||||
#error [NOT_SUPPORTED] TRNG API not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define MSG_VALUE_DUMMY "0"
|
||||
#define MSG_VALUE_LEN 64
|
||||
|
@ -284,5 +284,5 @@ int main()
|
|||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#endif // !DEVICE_TRNG
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -57,3 +57,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_WATCHDOG
|
||||
#error [NOT_SUPPORTED] Watchdog not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "hal/watchdog_api.h"
|
||||
|
@ -283,3 +283,5 @@ int main()
|
|||
// Harness will start with a test case index provided by host script.
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_WATCHDOG
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_WATCHDOG
|
||||
#error [NOT_SUPPORTED] Watchdog not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "utest/utest.h"
|
||||
|
@ -305,3 +305,5 @@ int main()
|
|||
// Harness will start with a test case index provided by host script.
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_WATCHDOG
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !DEVICE_WATCHDOG
|
||||
#error [NOT_SUPPORTED] Watchdog not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "hal/watchdog_api.h"
|
||||
|
@ -160,3 +160,5 @@ int main()
|
|||
// Harness will start with a test case index provided by host script.
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_WATCHDOG
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#if !MBED_CONF_RTOS_PRESENT
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define THREAD_STACK 512
|
||||
|
||||
|
@ -275,3 +275,5 @@ int main()
|
|||
{
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !MBED_CONF_RTOS_PRESENT
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#if !MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
|
||||
#error [NOT_SUPPORTED] crash_reporting test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define MSG_VALUE_DUMMY "0"
|
||||
#define MSG_VALUE_LEN 32
|
||||
|
@ -78,3 +78,5 @@ int main(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // !MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#if !defined(MBED_CPU_STATS_ENABLED) || !DEVICE_LPTICKER || !DEVICE_SLEEP
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -110,3 +110,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_CPU_STATS_ENABLED) || !DEVICE_LPTICKER || !DEVICE_SLEEP
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#if !defined(MBED_HEAP_STATS_ENABLED)
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -207,3 +207,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_HEAP_STATS_ENABLED)
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#if !defined(MBED_SYS_STATS_ENABLED)
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -105,3 +105,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_SYS_STATS_ENABLED)
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#if !defined(MBED_THREAD_STATS_ENABLED)
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -174,3 +174,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_THREAD_STATS_ENABLED)
|
|
@ -26,7 +26,7 @@
|
|||
//FastModels not support timing test
|
||||
#if defined(TARGET_ARM_FM)
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -99,3 +99,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_ARM_FM)
|
|
@ -19,17 +19,9 @@
|
|||
#include "utest/utest.h"
|
||||
#include "unity/unity.h"
|
||||
|
||||
#if defined(SKIP_TIME_DRIFT_TESTS)
|
||||
#if defined(SKIP_TIME_DRIFT_TESTS) || defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using utest::v1::Case;
|
||||
|
||||
|
@ -123,3 +115,5 @@ int main()
|
|||
{
|
||||
utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(SKIP_TIME_DRIFT_TESTS) || defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -19,13 +19,9 @@
|
|||
#include "utest.h"
|
||||
#include "rtos.h"
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -188,3 +184,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -22,13 +22,9 @@
|
|||
|
||||
using utest::v1::Case;
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if defined(__CORTEX_M23) || defined(__CORTEX_M33)
|
||||
#define THREAD_STACK_SIZE 512
|
||||
|
@ -374,3 +370,5 @@ int main()
|
|||
{
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -15,13 +15,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if defined(TARGET_CORTEX_A)
|
||||
#if defined(TARGET_CORTEX_A) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] This function not supported for this target
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -266,3 +262,5 @@ int main()
|
|||
{
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_CORTEX_A) || !DEVICE_USTICKER
|
|
@ -19,13 +19,9 @@
|
|||
#include "utest.h"
|
||||
#include "rtos.h"
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -512,3 +508,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -19,13 +19,9 @@
|
|||
#include "unity/unity.h"
|
||||
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using utest::v1::Case;
|
||||
|
||||
|
@ -221,3 +217,5 @@ int main()
|
|||
{
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -19,13 +19,9 @@
|
|||
#include "utest.h"
|
||||
#include "rtos.h"
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -308,3 +304,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -19,13 +19,9 @@
|
|||
#include "utest.h"
|
||||
#include "rtos.h"
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -348,3 +344,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -28,11 +28,11 @@ using namespace utest::v1;
|
|||
|
||||
#if RESTART_DELAY_MS >= DELAY_MS
|
||||
#error invalid RESTART_DELAY_MS value
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
class Stopwatch: public Timer {
|
||||
private:
|
||||
|
@ -357,3 +357,6 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !DEVICE_USTICKER
|
||||
#endif // RESTART_DELAY_MS >= DELAY_MS
|
|
@ -21,13 +21,9 @@
|
|||
|
||||
using namespace utest::v1;
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define THREAD_DELAY 30
|
||||
#define SEMAPHORE_SLOTS 2
|
||||
|
@ -249,3 +245,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -20,13 +20,9 @@
|
|||
|
||||
using utest::v1::Case;
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define TEST_STACK_SIZE 512
|
||||
#define MAX_FLAG_POS 30
|
||||
|
@ -396,3 +392,5 @@ int main()
|
|||
{
|
||||
return !utest::v1::Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -21,13 +21,9 @@
|
|||
#include "SynchronizedIntegral.h"
|
||||
#include "LockGuard.h"
|
||||
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD)
|
||||
#if defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
|
||||
#if !DEVICE_USTICKER
|
||||
#error [NOT_SUPPORTED] test not supported
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define THREAD_STACK_SIZE 512
|
||||
#if defined(__CORTEX_A9)
|
||||
|
@ -854,3 +850,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(MBED_RTOS_SINGLE_THREAD) || !DEVICE_USTICKER
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -199,3 +199,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#ifndef ECHO_SERVER_ADDR
|
||||
#error [NOT_SUPPORTED] Requires parameters for echo server
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -237,3 +237,6 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ECHO_SERVER_ADDR
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#ifndef ECHO_SERVER_ADDR
|
||||
#error [NOT_SUPPORTED] Requires parameters for echo server
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
|
||||
|
||||
|
@ -276,3 +276,6 @@ int main()
|
|||
#else
|
||||
#error [NOT_SUPPORTED] This device does not support SSL library
|
||||
#endif // defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
|
||||
|
||||
#endif // ECHO_SERVER_ADDR
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#ifndef ECHO_SERVER_ADDR
|
||||
#error [NOT_SUPPORTED] Requires parameters for echo server
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -201,3 +201,6 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ECHO_SERVER_ADDR
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,7 +19,7 @@
|
|||
!defined(MBED_CONF_APP_ECHO_SERVER_TRACE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_SCAN)
|
||||
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define ETHERNET 1
|
||||
#define WIFI 2
|
||||
|
@ -27,10 +27,10 @@
|
|||
#if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != ETHERNET && \
|
||||
MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
||||
#error [NOT_SUPPORTED] Either wifi or ethernet testing need to be enabled
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI
|
||||
#if !defined(TARGET_UBLOX_EVK_ODIN_W2) && \
|
||||
#if (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI) && \
|
||||
!defined(TARGET_UBLOX_EVK_ODIN_W2) && \
|
||||
!defined(TARGET_REALTEK_RTL8195AM) && \
|
||||
!defined(TARGET_MTB_ADV_WISE_1530) && \
|
||||
!defined(TARGET_MTB_USI_WM_BN_BM_22) && \
|
||||
|
@ -38,8 +38,9 @@
|
|||
!defined(TARGET_MTB_UBLOX_ODIN_W2) && \
|
||||
!defined(TARGET_UNO_91H)
|
||||
#error [NOT_SUPPORTED] Wifi tests are not valid for the target
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
|
||||
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
|
@ -82,3 +83,14 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI) && \
|
||||
!defined(TARGET_UBLOX_EVK_ODIN_W2) && \
|
||||
!defined(TARGET_REALTEK_RTL8195AM) && \
|
||||
!defined(TARGET_MTB_ADV_WISE_1530) && \
|
||||
!defined(TARGET_MTB_USI_WM_BN_BM_22) && \
|
||||
!defined(TARGET_MTB_MXCHIP_EMW3166) && \
|
||||
!defined(TARGET_MTB_UBLOX_ODIN_W2) && \
|
||||
!defined(TARGET_UNO_91H)
|
||||
|
||||
#endif // MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != ETHERNET && MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
||||
#endif // !defined(MBED_CONF_APP_ECHO_SERVER) || !defined(MBED_CONF_APP_ECHO_SERVER_TRACE) || !defined(MBED_CONF_APP_WIFI_SCAN)
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -54,3 +54,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,15 +19,15 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
#ifndef MBED_CONF_APP_ECHO_SERVER_ADDR
|
||||
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json
|
||||
#endif
|
||||
#else
|
||||
|
||||
#if !defined(DEVICE_EMAC) || \
|
||||
(!defined(MBED_CONF_APP_WIFI_SECURE_SSID) && !defined(MBED_CONF_APP_WIFI_UNSECURE_SSID))
|
||||
#error [NOT_SUPPORTED] Both Wifi and Ethernet devices are required for multihoming tests.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define STRING_VERIFY(str) (str != NULL ? str : "not supported")
|
||||
|
||||
|
@ -164,3 +164,7 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(DEVICE_EMAC) || (!defined(MBED_CONF_APP_WIFI_SECURE_SSID) && !defined(MBED_CONF_APP_WIFI_UNSECURE_SSID))
|
||||
#endif // MBED_CONF_APP_ECHO_SERVER_ADDR
|
||||
#endif // !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || (MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == WIFI && !defined(MBED_CONF_NSAPI_DEFAULT_WIFI_SSID))
|
|
@ -19,10 +19,10 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
#if !defined(MBED_CONF_APP_WIFI_SECURE_SSID) && !defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "WiFiInterface.h"
|
||||
|
@ -40,3 +40,5 @@ WiFiInterface *get_interface()
|
|||
|
||||
return interface;
|
||||
}
|
||||
#endif //!defined(MBED_CONF_APP_WIFI_SECURE_SSID) && !defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
#endif //!defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
|
@ -19,7 +19,7 @@
|
|||
#if !defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || \
|
||||
MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
||||
#error [NOT_SUPPORTED] No network configuration found for this target.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -28,25 +28,24 @@
|
|||
#include "wifi_tests.h"
|
||||
|
||||
// Test for parameters
|
||||
#if defined(MBED_CONF_APP_WIFI_SECURE_SSID)
|
||||
#if !defined(MBED_CONF_APP_AP_MAC_SECURE) || \
|
||||
#if defined(MBED_CONF_APP_WIFI_SECURE_SSID) && \
|
||||
(!defined(MBED_CONF_APP_AP_MAC_SECURE) || \
|
||||
!defined(MBED_CONF_APP_MAX_SCAN_SIZE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_CH_SECURE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_PASSWORD) || \
|
||||
!defined(MBED_CONF_APP_WIFI_SECURE_SSID) || \
|
||||
!defined MBED_CONF_APP_WIFI_SECURE_PROTOCOL
|
||||
!defined MBED_CONF_APP_WIFI_SECURE_PROTOCOL)
|
||||
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json (for secure connections)
|
||||
#endif
|
||||
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID)
|
||||
#else
|
||||
|
||||
#if defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
#if !defined(MBED_CONF_APP_AP_MAC_UNSECURE) || \
|
||||
#if defined(MBED_CONF_APP_WIFI_UNSECURE_SSID) && \
|
||||
!defined(MBED_CONF_APP_AP_MAC_UNSECURE) || \
|
||||
!defined(MBED_CONF_APP_MAX_SCAN_SIZE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_CH_UNSECURE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
#error [NOT_SUPPORTED] Requires parameters from mbed_app.json (for unsecure connections)
|
||||
#endif
|
||||
#endif // defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
#else
|
||||
|
||||
|
||||
using namespace utest::v1;
|
||||
|
||||
|
@ -93,3 +92,18 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
#endif // defined(MBED_CONF_APP_WIFI_UNSECURE_SSID) && \
|
||||
!defined(MBED_CONF_APP_AP_MAC_UNSECURE) || \
|
||||
!defined(MBED_CONF_APP_MAX_SCAN_SIZE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_CH_UNSECURE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_UNSECURE_SSID)
|
||||
|
||||
#endif // defined(MBED_CONF_APP_WIFI_SECURE_SSID) && \
|
||||
(!defined(MBED_CONF_APP_AP_MAC_SECURE) || \
|
||||
!defined(MBED_CONF_APP_MAX_SCAN_SIZE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_CH_SECURE) || \
|
||||
!defined(MBED_CONF_APP_WIFI_PASSWORD) || \
|
||||
!defined(MBED_CONF_APP_WIFI_SECURE_SSID) || \
|
||||
!defined MBED_CONF_APP_WIFI_SECURE_PROTOCOL)
|
||||
|
||||
#endif //!defined(MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE) || MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE != WIFI
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#if !MBED_CONF_NFCEEPROM
|
||||
#error [NOT_SUPPORTED] NFC EEPROM not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
using namespace utest::v1;
|
||||
using namespace mbed::nfc;
|
||||
|
@ -497,3 +497,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !MBED_CONF_NFCEEPROM
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
||||
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
|
||||
#endif // TARGET_PSA
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -156,3 +156,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)) || (!defined(COMPONENT_PSA_SRV_IPC)))
|
||||
#error [NOT_SUPPORTED] These tests can run only on SPM-enabled targets and where Mbed Crypto is ON - skipping.
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include <stdio.h>
|
||||
#include "mbed.h"
|
||||
|
@ -594,3 +594,5 @@ int main(void)
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)) || (!defined(COMPONENT_PSA_SRV_IPC)))
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
#if ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
||||
#error [NOT_SUPPORTED] Mbed Crypto is OFF - skipping.
|
||||
#endif // TARGET_PSA
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -112,3 +112,5 @@ int main()
|
|||
#endif
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ((!defined(TARGET_PSA)) || (!defined(MBEDTLS_PSA_CRYPTO_C)))
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#if ((!defined(TARGET_PSA) || (!defined(COMPONENT_PSA_SRV_IPC)) && !defined(MBEDTLS_ENTROPY_NV_SEED)))
|
||||
#error [NOT_SUPPORTED] PSA entropy injection tests can run only on PSA-enabled targets.
|
||||
#endif // TARGET_PSA
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -182,3 +182,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // ((!defined(TARGET_PSA) || (!defined(COMPONENT_PSA_SRV_IPC)) && !defined(MBEDTLS_ENTROPY_NV_SEED)))
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#ifndef TARGET_PSA
|
||||
#error [NOT_SUPPORTED] ITS/PS tests can run only on PSA-enabled targets.
|
||||
#endif // TARGET_PSA
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity/unity.h"
|
||||
|
@ -196,3 +196,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // TARGET_PSA
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#ifndef COMPONENT_PSA_SRV_IPC
|
||||
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -486,3 +486,5 @@ int main()
|
|||
Harness::run(specification);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#ifndef COMPONENT_PSA_SRV_IPC
|
||||
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include "greentea-client/test_env.h"
|
||||
|
@ -275,3 +275,5 @@ int main(int, char **)
|
|||
Harness::run(specification);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#ifndef COMPONENT_PSA_SRV_IPC
|
||||
#error [NOT_SUPPORTED] SPM tests can run only on SPM-enabled targets
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
||||
#else
|
||||
|
||||
/* -------------------------------------- Includes ----------------------------------- */
|
||||
|
||||
|
@ -91,3 +91,5 @@ int main(int, char **)
|
|||
Harness::run(specification);
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // COMPONENT_PSA_SRV_IPC
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
||||
#error [NOT_SUPPORTED] USB Device not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
|
||||
using namespace utest::v1;
|
||||
|
@ -658,3 +658,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
||||
#error [NOT_SUPPORTED] USB Device not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "utest/utest.h"
|
||||
|
@ -382,3 +382,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
||||
#error [NOT_SUPPORTED] USB Device not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
|
||||
#define OS_WINDOWS 1
|
||||
|
@ -480,3 +480,5 @@ int main()
|
|||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
#if !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
||||
#error [NOT_SUPPORTED] USB Device not supported for this target
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "utest/utest.h"
|
||||
|
@ -845,3 +845,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(DEVICE_USBDEVICE) || !DEVICE_USBDEVICE
|
|
@ -68,7 +68,9 @@ using namespace utest::v1;
|
|||
* <<< lines removed >>>
|
||||
*/
|
||||
|
||||
#if DEVICE_SPI && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED))
|
||||
#if !(DEVICE_SPI && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED)))
|
||||
#error [NOT_SUPPORTED] DEVICE_SPI need to be enabled for this test. SDcard need to be installed for this test.
|
||||
#else
|
||||
static char fsfat_fopen_utest_msg_g[FSFAT_UTEST_MSG_BUF_SIZE];
|
||||
#define FSFAT_FOPEN_TEST_MOUNT_PT_NAME "sd"
|
||||
#define FSFAT_FOPEN_TEST_MOUNT_PT_PATH "/" FSFAT_FOPEN_TEST_MOUNT_PT_NAME
|
||||
|
@ -1553,54 +1555,6 @@ control_t fsfat_fopen_test_16(const size_t call_count)
|
|||
return CaseNext;
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
#define FSFAT_FOPEN_TEST_00 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_01 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_02 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_03 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_04 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_05 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_06 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_07 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_08 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_09 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_10 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_11 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_12 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_13 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_14 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_15 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_16 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_17 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_18 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_19 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_20 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_21 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_22 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_23 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_24 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_25 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_26 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_27 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_28 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_29 fsfat_fopen_test_dummy
|
||||
#define FSFAT_FOPEN_TEST_30 fsfat_fopen_test_dummy
|
||||
|
||||
/** @brief fsfat_fopen_test_dummy Dummy test case for testing when platform doesnt have an SDCard installed.
|
||||
*
|
||||
* @return success always
|
||||
*/
|
||||
static control_t fsfat_fopen_test_dummy()
|
||||
{
|
||||
printf("Null test\n");
|
||||
return CaseNext;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/// @cond FSFAT_DOXYGEN_DISABLE
|
||||
utest::v1::status_t greentea_setup(const size_t number_of_cases)
|
||||
{
|
||||
|
@ -1641,3 +1595,4 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
/// @endcond
|
||||
#endif // !(DEVICE_SPI && ( defined(MBED_CONF_APP_FSFAT_SDCARD_INSTALLED) || (MBED_CONF_SD_FSFAT_SDCARD_INSTALLED)))
|
|
@ -35,7 +35,7 @@ extern ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver();
|
|||
|
||||
#if CORDIO_ZERO_COPY_HCI
|
||||
#error [NOT_SUPPORTED] Test not relevant for zero copy hci.
|
||||
#endif
|
||||
#else
|
||||
|
||||
namespace ble {
|
||||
namespace vendor {
|
||||
|
@ -270,3 +270,4 @@ Specification specification(greentea_test_setup, cases, greentea_test_teardown_h
|
|||
int main() {
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
#endif // CORDIO_ZERO_COPY_HCI
|
|
@ -15,13 +15,10 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed. Skipping this build.
|
||||
#endif
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed & SIM pin code is needed. Skipping this build.
|
||||
#else
|
||||
|
||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||
#endif
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
|
@ -221,3 +218,4 @@ int main()
|
|||
return ret;
|
||||
}
|
||||
|
||||
#endif !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
|
@ -16,16 +16,12 @@
|
|||
*/
|
||||
|
||||
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed. Skipping this build.
|
||||
#endif
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed & SIM pin code is needed. Skipping this build.
|
||||
#else
|
||||
|
||||
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
||||
|
||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||
#endif
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
#include "utest.h"
|
||||
|
@ -118,3 +114,4 @@ int main()
|
|||
#endif
|
||||
return ret;
|
||||
}
|
||||
#endif // !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
|
@ -16,13 +16,9 @@
|
|||
*/
|
||||
|
||||
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed. Skipping this build.
|
||||
#endif
|
||||
|
||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||
#endif
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed & SIM pin code is needed. Skipping this build.
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
|
@ -252,3 +248,4 @@ int main()
|
|||
#endif
|
||||
return ret;
|
||||
}
|
||||
#endif // !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
|
|
|
@ -16,17 +16,13 @@
|
|||
*/
|
||||
|
||||
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed. Skipping this build.
|
||||
#endif
|
||||
|
||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||
#endif
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed & SIM pin code is needed. Skipping this build.
|
||||
#else
|
||||
|
||||
#if defined(TARGET_ADV_WISE_1570) || defined(TARGET_MTB_ADV_WISE_1570)
|
||||
#error [NOT_SUPPORTED] target MTB_ADV_WISE_1570 does not have SMS functionality
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
|
@ -260,3 +256,6 @@ int main()
|
|||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif //defined(TARGET_ADV_WISE_1570) || defined(TARGET_MTB_ADV_WISE_1570)
|
||||
#endif // !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
|
@ -15,16 +15,12 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed. Skipping this build.
|
||||
#endif
|
||||
#if !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
||||
#error [NOT_SUPPORTED] A json configuration file is needed & SIM pin code is needed. Skipping this build.
|
||||
#else
|
||||
|
||||
#include "CellularUtil.h" // for CELLULAR_ helper macros
|
||||
|
||||
#ifndef MBED_CONF_APP_CELLULAR_SIM_PIN
|
||||
#error [NOT_SUPPORTED] SIM pin code is needed. Skipping this build.
|
||||
#endif
|
||||
|
||||
#include "greentea-client/test_env.h"
|
||||
#include "unity.h"
|
||||
#include "utest.h"
|
||||
|
@ -218,3 +214,4 @@ int main()
|
|||
#endif
|
||||
return ret;
|
||||
}
|
||||
#endif // !defined(MBED_CONF_NSAPI_PRESENT) || !defined(MBED_CONF_APP_CELLULAR_SIM_PIN)
|
|
@ -29,7 +29,7 @@ using namespace mbed;
|
|||
|
||||
#if !DEVICEKEY_ENABLED
|
||||
#error [NOT_SUPPORTED] DeviceKey needs to be enabled for this test
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define MSG_VALUE_DUMMY "0"
|
||||
#define MSG_VALUE_LEN 32
|
||||
|
@ -499,3 +499,4 @@ int main()
|
|||
return ret;
|
||||
}
|
||||
|
||||
#endif // !DEVICEKEY_ENABLED
|
|
@ -26,7 +26,7 @@ using namespace utest::v1;
|
|||
// TODO HACK, replace with available ram/heap property
|
||||
#if defined(TARGET_MTB_MTS_XDOT)
|
||||
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define TEST_BLOCK_SIZE 128
|
||||
#define TEST_BLOCK_DEVICE_SIZE 32*TEST_BLOCK_SIZE
|
||||
|
@ -186,3 +186,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_MTB_MTS_XDOT)
|
|
@ -27,7 +27,7 @@ using namespace utest::v1;
|
|||
// TODO HACK, replace with available ram/heap property
|
||||
#if defined(TARGET_MTB_MTS_XDOT)
|
||||
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define BLOCK_COUNT 16
|
||||
#define BLOCK_SIZE 512
|
||||
|
@ -250,3 +250,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_MTB_MTS_XDOT)
|
|
@ -29,7 +29,7 @@ using namespace utest::v1;
|
|||
// TODO HACK, replace with available ram/heap property
|
||||
#if defined(TARGET_MTB_MTS_XDOT)
|
||||
#error [NOT_SUPPORTED] Insufficient heap for heap block device tests
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define BLOCK_COUNT 16
|
||||
#define BLOCK_SIZE 512
|
||||
|
@ -308,3 +308,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // defined(TARGET_MTB_MTS_XDOT)
|
|
@ -27,7 +27,7 @@ using namespace utest::v1;
|
|||
|
||||
#ifndef MBED_EXTENDED_TESTS
|
||||
#error [NOT_SUPPORTED] Filesystem tests not supported by default
|
||||
#endif
|
||||
#else
|
||||
|
||||
static const int mem_alloc_threshold = 32 * 1024;
|
||||
|
||||
|
@ -189,3 +189,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // MBED_EXTENDED_TESTS
|
|
@ -30,6 +30,7 @@
|
|||
#error [NOT_SUPPORTED] storage test not supported on this platform
|
||||
#endif
|
||||
|
||||
#if COMPONENT_SPIF || COMPONENT_SD
|
||||
using namespace utest::v1;
|
||||
using namespace mbed;
|
||||
|
||||
|
@ -2105,3 +2106,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // COMPONENT_SPIF || COMPONENT_SD
|
|
@ -29,7 +29,7 @@ using namespace utest::v1;
|
|||
|
||||
#ifndef MBED_EXTENDED_TESTS
|
||||
#error [NOT_SUPPORTED] Filesystem tests not supported by default
|
||||
#endif
|
||||
#else
|
||||
|
||||
static const int mem_alloc_threshold = 32 * 1024;
|
||||
|
||||
|
@ -304,3 +304,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // MBED_EXTENDED_TESTS
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
#ifndef COMPONENT_FLASHIAP
|
||||
#error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
|
||||
#endif
|
||||
#else
|
||||
|
||||
#include "mbed.h"
|
||||
#include <stdio.h>
|
||||
|
@ -360,3 +360,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // COMPONENT_FLASHIAP
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#if !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
||||
#error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices and Fastmodels
|
||||
#endif
|
||||
#else
|
||||
|
||||
#define FSST_TEST_NUM_OF_THREADS 5
|
||||
|
||||
|
@ -521,3 +521,4 @@ int main()
|
|||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
|
@ -31,7 +31,7 @@ using namespace mbed;
|
|||
|
||||
#if !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
||||
#error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices and Fastmodels
|
||||
#endif
|
||||
#else
|
||||
|
||||
static const char data[] = "data";
|
||||
static const char key[] = "key";
|
||||
|
@ -855,3 +855,5 @@ int main()
|
|||
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
|
@ -31,7 +31,7 @@ using namespace mbed;
|
|||
|
||||
#if !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
||||
#error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices and Fastmodels
|
||||
#endif
|
||||
#else
|
||||
|
||||
static const char data[] = "data";
|
||||
static const char key[] = "key";
|
||||
|
@ -858,3 +858,5 @@ int main()
|
|||
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
|
@ -34,13 +34,9 @@
|
|||
#include <stdio.h>
|
||||
#include <algorithm>
|
||||
|
||||
#if !defined(TARGET_K64F) && !defined(TARGET_ARM_FM)
|
||||
#error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices and Fastmodels
|
||||
#endif
|
||||
|
||||
#if !SECURESTORE_ENABLED
|
||||
#error [NOT_SUPPORTED] KVStore & SecureStore need to be enabled for this test
|
||||
#endif
|
||||
#if (!defined(TARGET_K64F) && !defined(TARGET_ARM_FM)) || !SECURESTORE_ENABLED
|
||||
#error [NOT_SUPPORTED] Kvstore API tests run only on K64F devices and Fastmodels. KVStore & SecureStore need to be enabled for this test
|
||||
#else
|
||||
|
||||
using namespace mbed;
|
||||
|
||||
|
@ -534,3 +530,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // (!defined(TARGET_K64F) && !defined(TARGET_ARM_FM)) || !SECURESTORE_ENABLED
|
|
@ -32,7 +32,7 @@ using namespace utest::v1;
|
|||
|
||||
#ifndef MBED_TEST_BLOCKDEVICE
|
||||
#error [NOT_SUPPORTED] Non-volatile block device required
|
||||
#endif
|
||||
#else
|
||||
|
||||
#ifndef MBED_TEST_BLOCKDEVICE_DECL
|
||||
#define MBED_TEST_BLOCKDEVICE_DECL MBED_TEST_BLOCKDEVICE bd
|
||||
|
@ -681,3 +681,5 @@ int main()
|
|||
{
|
||||
return !Harness::run(specification);
|
||||
}
|
||||
|
||||
#endif // MBED_TEST_BLOCKDEVICE
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue