mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Added NOT-EQUAL int variants.
Organized Unit Tests
This commit is contained in:
@@ -31,7 +31,7 @@ DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
|
||||
configure_toolchain(DEFAULT_CONFIG_FILE)
|
||||
|
||||
############# ALL THE SELF-TESTS WE CAN PERFORM
|
||||
namespace :test do
|
||||
namespace :test do
|
||||
desc "Build and test Unity"
|
||||
task :all => [:clean, :prepare_for_tests, 'test:scripts', 'test:unit', :style, 'test:fixture', 'test:memory', 'test:summary']
|
||||
task :ci => [:clean, :prepare_for_tests, 'test:scripts', 'test:unit', :style, 'test:make', 'test:fixture', 'test:memory', 'test:summary']
|
||||
@@ -41,6 +41,15 @@ namespace :test do
|
||||
run_tests unit_test_files
|
||||
end
|
||||
|
||||
namespace :unit do
|
||||
unit_test_files.each do |f|
|
||||
desc "test this unit only"
|
||||
task File.basename(f,'.c').sub('test_unity_','') => [:prepare_for_tests] do
|
||||
run_tests [f]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
desc "Test unity's helper scripts"
|
||||
task :scripts => [:prepare_for_tests] do
|
||||
Dir['tests/test_*.rb'].each do |scriptfile|
|
||||
@@ -54,17 +63,17 @@ namespace :test do
|
||||
end
|
||||
|
||||
desc "Test unity fixture addon"
|
||||
task :fixture => [:prepare_for_tests] do
|
||||
task :fixture => [:prepare_for_tests] do
|
||||
test_fixtures()
|
||||
end
|
||||
|
||||
desc "Test unity memory addon"
|
||||
task :memory => [:prepare_for_tests] do
|
||||
task :memory => [:prepare_for_tests] do
|
||||
test_memory()
|
||||
end
|
||||
|
||||
desc "Test unity examples"
|
||||
task :examples => [:prepare_for_tests] do
|
||||
task :examples => [:prepare_for_tests] do
|
||||
execute("cd ../examples/example_1 && make -s ci", false)
|
||||
execute("cd ../examples/example_2 && make -s ci", false)
|
||||
execute("cd ../examples/example_3 && rake", false)
|
||||
|
||||
Reference in New Issue
Block a user