Let's enable validation of examples. failures should trip errors.

Also make them verbose so we can see what is going on.
This commit is contained in:
Mark VanderVoord
2024-04-02 18:44:35 -04:00
parent 93e2f528cc
commit 9cc8fb5302
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ ${BUILD_DIR}/main: ${SRC_DIR}/main.c ${SRC_DIR}/foo.c
${CC} $< -o $@
run:
./build/main || true
./build/main
test: setup
+1 -1
View File
@@ -13,5 +13,5 @@ void test_foo_init_should_initialize_multiplier()
{
foo_init();
TEST_ASSERT_FALSE(1);
TEST_ASSERT_FALSE(0);
}
+1 -1
View File
@@ -236,7 +236,7 @@ module RakefileHelpers
else
"#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
end
output = execute(cmd_str, true, true)
output = execute(cmd_str, true)
test_results = $cfg['compiler']['build_path'] + test_base
test_results += if output.match(/OK$/m).nil?
'.testfail'