CI(pico-sensor): added dummy test that always passes (to test if test run works)
This commit is contained in:
@@ -52,8 +52,13 @@ add_test(
|
||||
COMMAND ${JRUN_CTEST_COMMAND} --args "dns" ${TEST_EXECUTABLE}
|
||||
)
|
||||
|
||||
add_test(
|
||||
NAME DUMMY
|
||||
COMMAND ${JRUN_CTEST_COMMAND} --args "dummy" ${TEST_EXECUTABLE}
|
||||
)
|
||||
|
||||
set_tests_properties(
|
||||
Led Sensor DNS
|
||||
PROPERTIES
|
||||
TIMEOUT 15
|
||||
TIMEOUT 30
|
||||
)
|
||||
|
||||
@@ -22,6 +22,11 @@ static void TestArgFailed(void) {
|
||||
TEST_ASSERT_MESSAGE(false, "wrong test_arg value");
|
||||
}
|
||||
|
||||
static void TestDummy(void) {
|
||||
TEST_ASSERT_TRUE_MESSAGE(true, "Dummy test always passes");
|
||||
}
|
||||
|
||||
|
||||
void Tests_Run(void) {
|
||||
int nofFailures;
|
||||
uint32_t test_arg = -1;
|
||||
@@ -40,7 +45,11 @@ void Tests_Run(void) {
|
||||
//RUN_TEST(TestSensor_Both);
|
||||
} else if (McuUtility_strcmp(buf, "dns")==0) {
|
||||
RUN_TEST(TestDnsResolver_Test);
|
||||
} else {
|
||||
}
|
||||
else if (McuUtility_strcmp(buf, "dummy")==0) {
|
||||
RUN_TEST(TestDummy);
|
||||
}
|
||||
else {
|
||||
RUN_TEST(TestArgFailed);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user