Lines Matching +full:- +full:- +full:test +full:- +full:dir
2 # Unity Project - A Test Framework for C
36 path = 'tests/test*' + C_EXTENSION
44 include_dirs += $cfg[:paths][:test] || []
46 include_dirs.delete_if { |dir| dir.is_a?(Array) }
61 paths.each do |dir|
62 src_file = dir + header.ext(C_EXTENSION)
112 [ $cfg[:defines][:test], defines ].flatten.uniq.compact.each do |f|
117 i = $1.to_i - 1
164 …"--style=allman --indent=spaces=4 --indent-switches --indent-preproc-define --indent-preproc-block…
165 "--pad-oper --pad-comma --unpad-paren --pad-header " \
166 "--align-pointer=type --align-reference=name " \
167 "--add-brackets --mode=c --suffix=none " \
184 results_glob = File.join('build','*.test*')
186 results = Dir[results_glob]
206 src_files = Dir[File.join('..','extras','fixture','src','*.c')]
207 src_files += Dir[File.join('..','extras','fixture','test','*.c')]
208 src_files += Dir[File.join('..','extras','fixture','test','main','*.c')]
209 src_files += Dir[File.join('..','extras','memory','src','*.c')]
216 # Link the test executable
221 output = runtest(test_base + " -v -r")
232 src_files = Dir[File.join('..','extras','memory','src','*.c')]
233 src_files += Dir[File.join('..','extras','memory','test','*.c')]
234 src_files += Dir[File.join('..','extras','memory','test','main','*.c')]
241 # Link the test executable
256 # Build and execute each unit test
257 test_files.each do |test|
259 # Drop Out if we're skipping this type of test
261 if $cfg[:skip_tests].include?(:parameterized) && test.match(/parameterized/)
267 report "\nRunning Tests in #{test}"
272 extract_headers(test).each do |header|
279 # Build the test runner (generate if configured to do so)
280 test_base = File.basename(test, C_EXTENSION)
285 options[:use_param_tests] = test =~ /parameterized/ ? true : false
286 UnityTestRunnerGenerator.new(options).run(test, runner_path)
289 # Build the test module
290 obj_list << compile(test, test_defines)
292 # Link the test executable
295 # Execute unit test and generate results file
302 [ "make -s", # test with all defaults
303 #"make -s DEBUG=-m32", # test 32-bit architecture with 64-bit support
304 #"make -s DEBUG=-m32 UNITY_SUPPORT_64=", # test 32-bit build without 64-bit types
305 "make -s UNITY_INCLUDE_DOUBLE= ", # test without double
306 "cd #{File.join("..","extras","fixture",'test')} && make -s default noStdlibMalloc",
307 "cd #{File.join("..","extras","fixture",'test')} && make -s C89",
308 "cd #{File.join("..","extras","memory",'test')} && make -s default noStdlibMalloc",
309 "cd #{File.join("..","extras","memory",'test')} && make -s C89",