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
@@ -91,7 +91,7 @@ namespace :test do
desc "Test cmock examples"
task :examples => [:prep_system_tests] do
run_examples()
run_examples(true)
end
#individual system tests
+2 -2
View File
@@ -395,7 +395,7 @@ module RakefileHelpers
end
end
def run_examples()
def run_examples(verbose=false, raise_on_failure=true)
report "\n"
report "-----------------\n"
report "VALIDATE EXAMPLES\n"
@@ -404,7 +404,7 @@ module RakefileHelpers
"cd #{File.join("..","examples","temp_sensor")} && rake ci"
].each do |cmd|
report "Testing '#{cmd}'"
execute(cmd, false)
execute(cmd, verbose, raise_on_failure)
end
end