Further cleanup based on server results

This commit is contained in:
mvandervoord
2020-03-19 11:29:17 -04:00
parent 1bdb299566
commit 13ee7c9eec
8 changed files with 21 additions and 14 deletions
+6 -1
View File
@@ -32,7 +32,7 @@ configure_clean
configure_toolchain(DEFAULT_CONFIG_FILE)
task :default => [:test]
task :ci => [:no_color, :default, 'style:check', 'style:c']
task :ci => [:no_color, :default, 'test:examples', 'style:check', 'style:c']
task :cruise => :ci
desc "Load configuration"
@@ -89,6 +89,11 @@ namespace :test do
run_system_test_compilations(compile_tests_to_run)
end
desc "Test cmock examples"
task :examples => [:prep_system_tests] do
run_examples()
end
#individual system tests
FileList['system/test_interactions/*.yml'].each do |test|
basename = File.basename(test,'.*')
+9
View File
@@ -386,6 +386,15 @@ module RakefileHelpers
end
end
def run_examples()
[ "cd #{File.join("..","examples","make_example")} && make clean && make setup && make test",
"cd #{File.join("..","examples","temp_sensor")} && rake ci"
].each do |cmd|
report "Testing '#{cmd}'"
execute(cmd, false)
end
end
def fail_out(msg)
puts msg
exit(-1)