mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-06 02:09:59 +00:00
- Moved function to rakefile_helper.rb
git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@33 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
+3
-28
@@ -23,8 +23,8 @@ namespace :tests do
|
||||
task :all => [ 'units', 'system' ]
|
||||
|
||||
Rake::TestTask.new('units') do |t|
|
||||
t.pattern = 'test//unit/*_test.rb'
|
||||
t.verbose = true
|
||||
t.pattern = 'test//unit/*_test.rb'
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
desc "Run system tests"
|
||||
@@ -34,29 +34,4 @@ namespace :tests do
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
def run_systests(config, test_files)
|
||||
|
||||
test_files.each do |test|
|
||||
obj_list = []
|
||||
test_base = File.basename(test, C_EXTENSION)
|
||||
headers = extract_headers(test)
|
||||
|
||||
headers.each do |header|
|
||||
compile(config, find_source_file(header))
|
||||
obj_list << header.ext(OBJ_EXTENSION)
|
||||
end
|
||||
|
||||
compile(config, test)
|
||||
obj_list << test_base.ext(OBJ_EXTENSION)
|
||||
|
||||
link(config, test_base, obj_list)
|
||||
|
||||
execute(SYSTEST_BUILD_DIR + test_base + EXE_EXTENSION)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
@@ -96,5 +96,25 @@ module RakefileHelpers
|
||||
return output
|
||||
end
|
||||
|
||||
def run_systests(config, test_files)
|
||||
test_files.each do |test|
|
||||
obj_list = []
|
||||
test_base = File.basename(test, C_EXTENSION)
|
||||
headers = extract_headers(test)
|
||||
|
||||
headers.each do |header|
|
||||
compile(config, find_source_file(header))
|
||||
obj_list << header.ext(OBJ_EXTENSION)
|
||||
end
|
||||
|
||||
compile(config, test)
|
||||
obj_list << test_base.ext(OBJ_EXTENSION)
|
||||
|
||||
link(config, test_base, obj_list)
|
||||
|
||||
execute(SYSTEST_BUILD_DIR + test_base + EXE_EXTENSION)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user