mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-07-31 16:27:49 +00:00
Further cleanup based on server results
This commit is contained in:
+6
-1
@@ -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,'.*')
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user