ceedling 0.15.1 → 0.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +9 -13
  4. data/README.md +21 -3
  5. data/{rakefile.rb → Rakefile} +0 -0
  6. data/lib/ceedling/version.rb +4 -4
  7. data/lib/ceedling/version.rb.erb +1 -1
  8. data/release/version.info +1 -1
  9. data/vendor/c_exception/Gemfile +1 -1
  10. data/vendor/c_exception/Gemfile.lock +12 -0
  11. data/vendor/c_exception/{docs/license.txt → LICENSE.txt} +9 -9
  12. data/vendor/c_exception/README.md +146 -0
  13. data/vendor/c_exception/{rakefile.rb → Rakefile} +6 -5
  14. data/vendor/c_exception/lib/CException.c +9 -6
  15. data/vendor/c_exception/release/build.info +1 -1
  16. data/vendor/c_exception/release/version.info +1 -1
  17. data/vendor/c_exception/test/CExceptionConfig.h +2 -0
  18. data/vendor/c_exception/test/TestException.c +4 -1
  19. data/vendor/cmock/README.md +24 -0
  20. data/vendor/cmock/{rakefile.rb → Rakefile} +12 -12
  21. data/vendor/cmock/docs/CMock Summary.odt +0 -0
  22. data/vendor/cmock/docs/CMock Summary.pdf +0 -0
  23. data/vendor/cmock/docs/CMock_Summary.md +130 -111
  24. data/vendor/cmock/docs/license.txt +1 -1
  25. data/vendor/cmock/lib/cmock.rb +36 -12
  26. data/vendor/cmock/lib/cmock_config.rb +39 -36
  27. data/vendor/cmock/lib/cmock_generator.rb +33 -25
  28. data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +68 -0
  29. data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +18 -42
  30. data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +2 -2
  31. data/vendor/cmock/lib/cmock_generator_utils.rb +39 -29
  32. data/vendor/cmock/lib/cmock_header_parser.rb +46 -39
  33. data/vendor/cmock/rakefile_helper.rb +38 -38
  34. data/vendor/cmock/src/cmock.c +20 -4
  35. data/vendor/cmock/src/cmock.h +6 -1
  36. data/vendor/cmock/src/cmock_internals.h +26 -3
  37. data/vendor/cmock/targets/clang_strict.yml +85 -0
  38. data/vendor/cmock/targets/gcc.yml +4 -2
  39. data/vendor/cmock/targets/gcc_64.yml +55 -0
  40. data/vendor/cmock/test/c/TestCMockC.c +3 -3
  41. data/vendor/cmock/test/c/TestCMockCDynamic.c +11 -11
  42. data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +4 -2
  43. data/vendor/cmock/test/c/TestCMockC_Runner.c +1 -1
  44. data/vendor/cmock/test/system/systest_generator.rb +38 -26
  45. data/vendor/cmock/test/system/test_compilation/const.h +8 -3
  46. data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +92 -58
  47. data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +53 -48
  48. data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +58 -56
  49. data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +19 -18
  50. data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +13 -13
  51. data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +20 -20
  52. data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +238 -0
  53. data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +36 -34
  54. data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +24 -15
  55. data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +11 -11
  56. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +235 -0
  57. data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +22 -26
  58. data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +31 -31
  59. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +141 -109
  60. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +82 -0
  61. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +17 -81
  62. data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +10 -10
  63. data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +47 -41
  64. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +290 -227
  65. data/vendor/unity/{rakefile.rb → Rakefile} +13 -6
  66. data/vendor/unity/auto/colour_prompt.rb +33 -12
  67. data/vendor/unity/auto/generate_test_runner.rb +67 -63
  68. data/vendor/unity/auto/parseOutput.rb +189 -0
  69. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/makefile +41 -40
  70. data/vendor/unity/examples/example_1/readme.txt +5 -0
  71. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.c +24 -24
  72. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode.h +3 -3
  73. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.c +9 -9
  74. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_1}/src/ProductionCode2.h +2 -2
  75. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_1}/test/TestProductionCode.c +62 -62
  76. data/vendor/unity/examples/{test → example_1/test}/TestProductionCode2.c +31 -31
  77. data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode2_Runner.c +46 -46
  78. data/vendor/unity/examples/{test/no_ruby → example_1/test/test_runners}/TestProductionCode_Runner.c +50 -50
  79. data/vendor/unity/examples/example_2/makefile +45 -0
  80. data/vendor/unity/examples/example_2/readme.txt +5 -0
  81. data/vendor/unity/examples/{src → example_2/src}/ProductionCode.c +24 -24
  82. data/vendor/unity/examples/{src → example_2/src}/ProductionCode.h +3 -3
  83. data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.c +9 -9
  84. data/vendor/unity/examples/{src → example_2/src}/ProductionCode2.h +2 -2
  85. data/vendor/unity/examples/{test → example_2/test}/TestProductionCode.c +64 -62
  86. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_2}/test/TestProductionCode2.c +33 -31
  87. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
  88. data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
  89. data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
  90. data/vendor/unity/examples/{helper → example_3/helper}/UnityHelper.c +10 -10
  91. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/helper/UnityHelper.h +12 -12
  92. data/vendor/unity/examples/{makefile → example_3/makefile} +41 -40
  93. data/vendor/unity/examples/{rakefile.rb → example_3/rakefile.rb} +44 -43
  94. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/rakefile_helper.rb +256 -256
  95. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/readme.txt +18 -17
  96. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.c +24 -24
  97. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode.h +3 -3
  98. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.c +9 -9
  99. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/src/ProductionCode2.h +2 -2
  100. data/vendor/{c_exception/vendor/unity/targets/gcc_64.yml → unity/examples/example_3/target_gcc_32.yml} +46 -44
  101. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode.c +62 -62
  102. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/TestProductionCode2.c +31 -31
  103. data/vendor/{c_exception/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode2_Runner.c +46 -46
  104. data/vendor/{cmock/vendor/unity/examples → unity/examples/example_3}/test/no_ruby/TestProductionCode_Runner.c +50 -50
  105. data/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
  106. data/vendor/unity/extras/fixture/src/unity_fixture.c +4 -1
  107. data/vendor/unity/extras/fixture/src/unity_fixture.h +17 -16
  108. data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +7 -7
  109. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +17 -0
  110. data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +1 -0
  111. data/vendor/unity/makefile +6 -4
  112. data/vendor/unity/rakefile_helper.rb +36 -27
  113. data/vendor/unity/src/unity.c +180 -181
  114. data/vendor/unity/src/unity.h +64 -2
  115. data/vendor/unity/src/unity_internals.h +188 -102
  116. data/vendor/unity/targets/clang_strict.yml +83 -0
  117. data/vendor/unity/targets/gcc_32.yml +5 -0
  118. data/vendor/unity/targets/gcc_64.yml +5 -0
  119. data/vendor/{c_exception/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_limits.yml} +5 -2
  120. data/vendor/{cmock/vendor/unity/targets/gcc_64.yml → unity/targets/gcc_auto_sizeof.yml} +6 -3
  121. data/vendor/{cmock/vendor/unity/targets/gcc.yml → unity/targets/gcc_auto_stdint.yml} +4 -2
  122. data/vendor/unity/test/expectdata/testsample_cmd.c +57 -54
  123. data/vendor/unity/test/expectdata/testsample_def.c +53 -50
  124. data/vendor/unity/test/expectdata/testsample_mock_cmd.c +79 -76
  125. data/vendor/unity/test/expectdata/testsample_mock_def.c +75 -72
  126. data/vendor/unity/test/expectdata/testsample_mock_new1.c +88 -85
  127. data/vendor/unity/test/expectdata/testsample_mock_new2.c +88 -85
  128. data/vendor/unity/test/expectdata/testsample_mock_param.c +76 -73
  129. data/vendor/unity/test/expectdata/testsample_mock_run1.c +88 -85
  130. data/vendor/unity/test/expectdata/testsample_mock_run2.c +88 -85
  131. data/vendor/unity/test/expectdata/testsample_mock_yaml.c +89 -86
  132. data/vendor/unity/test/expectdata/testsample_new1.c +63 -60
  133. data/vendor/unity/test/expectdata/testsample_new2.c +66 -63
  134. data/vendor/unity/test/expectdata/testsample_param.c +54 -51
  135. data/vendor/unity/test/expectdata/testsample_run1.c +63 -60
  136. data/vendor/unity/test/expectdata/testsample_run2.c +66 -63
  137. data/vendor/unity/test/expectdata/testsample_yaml.c +67 -64
  138. data/vendor/unity/test/test_generate_test_runner.rb +66 -72
  139. data/vendor/unity/test/testunity.c +591 -111
  140. metadata +58 -195
  141. data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +0 -94
  142. data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +0 -39
  143. data/vendor/c_exception/vendor/unity/auto/generate_config.yml +0 -36
  144. data/vendor/c_exception/vendor/unity/auto/generate_module.rb +0 -202
  145. data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +0 -313
  146. data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +0 -23
  147. data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +0 -139
  148. data/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
  149. data/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
  150. data/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +0 -217
  151. data/vendor/c_exception/vendor/unity/docs/license.txt +0 -31
  152. data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.c +0 -10
  153. data/vendor/c_exception/vendor/unity/examples/helper/UnityHelper.h +0 -12
  154. data/vendor/c_exception/vendor/unity/examples/makefile +0 -40
  155. data/vendor/c_exception/vendor/unity/examples/rakefile.rb +0 -32
  156. data/vendor/c_exception/vendor/unity/examples/rakefile_helper.rb +0 -256
  157. data/vendor/c_exception/vendor/unity/examples/test/no_ruby/TestProductionCode_Runner.c +0 -50
  158. data/vendor/c_exception/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
  159. data/vendor/c_exception/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
  160. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +0 -37
  161. data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
  162. data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +0 -9
  163. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
  164. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
  165. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
  166. data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
  167. data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
  168. data/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
  169. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
  170. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
  171. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
  172. data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
  173. data/vendor/c_exception/vendor/unity/makefile +0 -35
  174. data/vendor/c_exception/vendor/unity/rakefile.rb +0 -59
  175. data/vendor/c_exception/vendor/unity/rakefile_helper.rb +0 -240
  176. data/vendor/c_exception/vendor/unity/release/build.info +0 -2
  177. data/vendor/c_exception/vendor/unity/release/version.info +0 -2
  178. data/vendor/c_exception/vendor/unity/src/unity.c +0 -979
  179. data/vendor/c_exception/vendor/unity/src/unity.h +0 -232
  180. data/vendor/c_exception/vendor/unity/src/unity_internals.h +0 -424
  181. data/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +0 -101
  182. data/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +0 -89
  183. data/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +0 -79
  184. data/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
  185. data/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
  186. data/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
  187. data/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +0 -94
  188. data/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
  189. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
  190. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +0 -50
  191. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
  192. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
  193. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
  194. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
  195. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
  196. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
  197. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
  198. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
  199. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +0 -60
  200. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +0 -63
  201. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +0 -51
  202. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +0 -60
  203. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +0 -63
  204. data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
  205. data/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +0 -94
  206. data/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +0 -51
  207. data/vendor/c_exception/vendor/unity/test/testdata/sample.yml +0 -9
  208. data/vendor/c_exception/vendor/unity/test/testdata/testsample.c +0 -51
  209. data/vendor/c_exception/vendor/unity/test/testparameterized.c +0 -101
  210. data/vendor/c_exception/vendor/unity/test/testunity.c +0 -2024
  211. data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
  212. data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
  213. data/vendor/cmock/vendor/c_exception/docs/license.txt +0 -30
  214. data/vendor/cmock/vendor/c_exception/docs/readme.txt +0 -236
  215. data/vendor/cmock/vendor/c_exception/lib/CException.c +0 -39
  216. data/vendor/cmock/vendor/c_exception/lib/CException.h +0 -70
  217. data/vendor/cmock/vendor/c_exception/makefile +0 -24
  218. data/vendor/cmock/vendor/c_exception/rakefile.rb +0 -41
  219. data/vendor/cmock/vendor/c_exception/release/build.info +0 -2
  220. data/vendor/cmock/vendor/c_exception/release/version.info +0 -2
  221. data/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +0 -27
  222. data/vendor/cmock/vendor/c_exception/test/TestException.c +0 -291
  223. data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -62
  224. data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +0 -94
  225. data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +0 -39
  226. data/vendor/cmock/vendor/unity/auto/generate_config.yml +0 -36
  227. data/vendor/cmock/vendor/unity/auto/generate_module.rb +0 -202
  228. data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +0 -313
  229. data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +0 -23
  230. data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +0 -139
  231. data/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
  232. data/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
  233. data/vendor/cmock/vendor/unity/docs/Unity Summary.txt +0 -217
  234. data/vendor/cmock/vendor/unity/docs/license.txt +0 -31
  235. data/vendor/cmock/vendor/unity/examples/helper/UnityHelper.c +0 -10
  236. data/vendor/cmock/vendor/unity/examples/rakefile.rb +0 -32
  237. data/vendor/cmock/vendor/unity/examples/readme.txt +0 -18
  238. data/vendor/cmock/vendor/unity/examples/test/no_ruby/TestProductionCode2_Runner.c +0 -46
  239. data/vendor/cmock/vendor/unity/extras/fixture/build/MakefileWorker.mk +0 -331
  240. data/vendor/cmock/vendor/unity/extras/fixture/build/filterGcov.sh +0 -61
  241. data/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +0 -37
  242. data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
  243. data/vendor/cmock/vendor/unity/extras/fixture/readme.txt +0 -9
  244. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +0 -381
  245. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +0 -81
  246. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -44
  247. data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -16
  248. data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +0 -21
  249. data/vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c +0 -39
  250. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -321
  251. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -40
  252. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -56
  253. data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
  254. data/vendor/cmock/vendor/unity/makefile +0 -35
  255. data/vendor/cmock/vendor/unity/rakefile.rb +0 -48
  256. data/vendor/cmock/vendor/unity/rakefile_helper.rb +0 -240
  257. data/vendor/cmock/vendor/unity/release/build.info +0 -2
  258. data/vendor/cmock/vendor/unity/release/version.info +0 -2
  259. data/vendor/cmock/vendor/unity/src/unity.c +0 -979
  260. data/vendor/cmock/vendor/unity/src/unity.h +0 -232
  261. data/vendor/cmock/vendor/unity/src/unity_internals.h +0 -424
  262. data/vendor/cmock/vendor/unity/targets/hitech_picc18.yml +0 -101
  263. data/vendor/cmock/vendor/unity/targets/iar_arm_v4.yml +0 -89
  264. data/vendor/cmock/vendor/unity/targets/iar_arm_v5.yml +0 -79
  265. data/vendor/cmock/vendor/unity/targets/iar_arm_v5_3.yml +0 -79
  266. data/vendor/cmock/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -93
  267. data/vendor/cmock/vendor/unity/targets/iar_cortexm3_v5.yml +0 -83
  268. data/vendor/cmock/vendor/unity/targets/iar_msp430.yml +0 -94
  269. data/vendor/cmock/vendor/unity/targets/iar_sh2a_v6.yml +0 -85
  270. data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +0 -54
  271. data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +0 -50
  272. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -76
  273. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +0 -72
  274. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -85
  275. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -85
  276. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +0 -73
  277. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -85
  278. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -85
  279. data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -86
  280. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +0 -60
  281. data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +0 -63
  282. data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +0 -51
  283. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +0 -60
  284. data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +0 -63
  285. data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +0 -64
  286. data/vendor/cmock/vendor/unity/test/test_generate_test_runner.rb +0 -94
  287. data/vendor/cmock/vendor/unity/test/testdata/mocksample.c +0 -51
  288. data/vendor/cmock/vendor/unity/test/testdata/sample.yml +0 -9
  289. data/vendor/cmock/vendor/unity/test/testdata/testsample.c +0 -51
  290. data/vendor/cmock/vendor/unity/test/testparameterized.c +0 -101
  291. data/vendor/cmock/vendor/unity/test/testunity.c +0 -2024
  292. data/vendor/unity/Gemfile +0 -4
  293. data/vendor/unity/examples/helper/UnityHelper.h +0 -12
  294. data/vendor/unity/examples/rakefile_helper.rb +0 -256
  295. data/vendor/unity/examples/readme.txt +0 -18
@@ -1,50 +1,50 @@
1
- /* AUTOGENERATED FILE. DO NOT EDIT. */
2
- #include "unity.h"
3
- #include <setjmp.h>
4
- #include <stdio.h>
5
-
6
- char MessageBuffer[50];
7
-
8
- extern void setUp(void);
9
- extern void tearDown(void);
10
-
11
- extern void test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode(void);
12
- extern void test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken(void);
13
- extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue(void);
14
- extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain(void);
15
- extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed(void);
16
-
17
- static void runTest(UnityTestFunction test)
18
- {
19
- if (TEST_PROTECT())
20
- {
21
- setUp();
22
- test();
23
- }
24
- if (TEST_PROTECT() && !TEST_IS_IGNORED)
25
- {
26
- tearDown();
27
- }
28
- }
29
- void resetTest()
30
- {
31
- tearDown();
32
- setUp();
33
- }
34
-
35
-
36
- int main(void)
37
- {
38
- Unity.TestFile = "test/TestProductionCode.c";
39
- UnityBegin();
40
-
41
- // RUN_TEST calls runTest
42
- RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode, 20);
43
- RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken, 30);
44
- RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue, 41);
45
- RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain, 51);
46
- RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed, 57);
47
-
48
- UnityEnd();
49
- return 0;
50
- }
1
+ /* AUTOGENERATED FILE. DO NOT EDIT. */
2
+ #include "unity.h"
3
+ #include <setjmp.h>
4
+ #include <stdio.h>
5
+
6
+ char MessageBuffer[50];
7
+
8
+ extern void setUp(void);
9
+ extern void tearDown(void);
10
+
11
+ extern void test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode(void);
12
+ extern void test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken(void);
13
+ extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue(void);
14
+ extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain(void);
15
+ extern void test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed(void);
16
+
17
+ static void runTest(UnityTestFunction test)
18
+ {
19
+ if (TEST_PROTECT())
20
+ {
21
+ setUp();
22
+ test();
23
+ }
24
+ if (TEST_PROTECT() && !TEST_IS_IGNORED)
25
+ {
26
+ tearDown();
27
+ }
28
+ }
29
+ void resetTest()
30
+ {
31
+ tearDown();
32
+ setUp();
33
+ }
34
+
35
+
36
+ int main(void)
37
+ {
38
+ Unity.TestFile = "test/TestProductionCode.c";
39
+ UnityBegin();
40
+
41
+ // RUN_TEST calls runTest
42
+ RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode, 20);
43
+ RUN_TEST(test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken, 30);
44
+ RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue, 41);
45
+ RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain, 51);
46
+ RUN_TEST(test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed, 57);
47
+
48
+ UnityEnd();
49
+ return 0;
50
+ }
@@ -0,0 +1,26 @@
1
+ Eclipse error parsers
2
+ =====================
3
+
4
+ These are a godsend for extracting & quickly navigating to
5
+ warnings & error messages from console output. Unforunately
6
+ I don't know how to write an Eclipse plugin so you'll have
7
+ to add them manually.
8
+
9
+ To add a console parser to Eclipse, go to Window --> Preferences
10
+ --> C/C++ --> Build --> Settings. Click on the 'Error Parsers'
11
+ tab and then click the 'Add...' button. See the table below for
12
+ the parser fields to add.
13
+
14
+ Eclipse will only parse the console output during a build, so
15
+ running your unit tests must be part of your build process.
16
+ Either add this to your make/rakefile, or add it as a post-
17
+ build step in your Eclipse project settings.
18
+
19
+
20
+ Unity unit test error parsers
21
+ -----------------------------
22
+ Severity Pattern File Line Description
23
+ -------------------------------------------------------------------------------
24
+ Error (\.+)(.*?):(\d+):(.*?):FAIL: (.*) $2 $3 $5
25
+ Warning (\.+)(.*?):(\d+):(.*?):IGNORE: (.*) $2 $3 $5
26
+ Warning (\.+)(.*?):(\d+):(.*?):IGNORE\s*$ $2 $3 Ignored test
@@ -28,7 +28,7 @@ void announceTestRun(unsigned int runNumber)
28
28
  UNITY_OUTPUT_CHAR('\n');
29
29
  }
30
30
 
31
- int UnityMain(int argc, char* argv[], void (*runAllTests)())
31
+ int UnityMain(int argc, char* argv[], void (*runAllTests)(void))
32
32
  {
33
33
  int result = UnityGetCommandLineOptions(argc, argv);
34
34
  unsigned int r;
@@ -351,6 +351,9 @@ int UnityGetCommandLineOptions(int argc, char* argv[])
351
351
  i++;
352
352
  }
353
353
  }
354
+ } else {
355
+ // ignore unknown parameter
356
+ i++;
354
357
  }
355
358
  }
356
359
  return 0;
@@ -13,40 +13,40 @@
13
13
  #include "unity_fixture_malloc_overrides.h"
14
14
  #include "unity_fixture_internals.h"
15
15
 
16
- int UnityMain(int argc, char* argv[], void (*runAllTests)());
16
+ int UnityMain(int argc, char* argv[], void (*runAllTests)(void));
17
17
 
18
18
 
19
19
  #define TEST_GROUP(group)\
20
- int TEST_GROUP_##group = 0
20
+ static const char* TEST_GROUP_##group = #group
21
21
 
22
- #define TEST_SETUP(group) void TEST_##group##_SETUP()
22
+ #define TEST_SETUP(group) void TEST_##group##_SETUP(void)
23
23
 
24
- #define TEST_TEAR_DOWN(group) void TEST_##group##_TEAR_DOWN()
24
+ #define TEST_TEAR_DOWN(group) void TEST_##group##_TEAR_DOWN(void)
25
25
 
26
26
 
27
27
  #define TEST(group, name) \
28
- void TEST_##group##_##name##_();\
29
- void TEST_##group##_##name##_run()\
28
+ void TEST_##group##_##name##_(void);\
29
+ void TEST_##group##_##name##_run(void)\
30
30
  {\
31
31
  UnityTestRunner(TEST_##group##_SETUP,\
32
- TEST_##group##_##name##_,\
32
+ TEST_##group##_##name##_,\
33
33
  TEST_##group##_TEAR_DOWN,\
34
34
  "TEST(" #group ", " #name ")",\
35
- #group, #name,\
35
+ TEST_GROUP_##group, #name,\
36
36
  __FILE__, __LINE__);\
37
37
  }\
38
- void TEST_##group##_##name##_()
38
+ void TEST_##group##_##name##_(void)
39
39
 
40
40
  #define IGNORE_TEST(group, name) \
41
- void TEST_##group##_##name##_();\
42
- void TEST_##group##_##name##_run()\
41
+ void TEST_##group##_##name##_(void);\
42
+ void TEST_##group##_##name##_run(void)\
43
43
  {\
44
44
  UnityIgnoreTest("IGNORE_TEST(" #group ", " #name ")");\
45
45
  }\
46
- void TEST_##group##_##name##_()
46
+ void TEST_##group##_##name##_(void)
47
47
 
48
48
  #define DECLARE_TEST_CASE(group, name) \
49
- void TEST_##group##_##name##_run()
49
+ void TEST_##group##_##name##_run(void)
50
50
 
51
51
  #define RUN_TEST_CASE(group, name) \
52
52
  { DECLARE_TEST_CASE(group, name);\
@@ -54,8 +54,9 @@ int UnityMain(int argc, char* argv[], void (*runAllTests)());
54
54
 
55
55
  //This goes at the bottom of each test file or in a separate c file
56
56
  #define TEST_GROUP_RUNNER(group)\
57
- void TEST_##group##_GROUP_RUNNER_runAll();\
58
- void TEST_##group##_GROUP_RUNNER()\
57
+ void TEST_##group##_GROUP_RUNNER_runAll(void);\
58
+ void TEST_##group##_GROUP_RUNNER(void);\
59
+ void TEST_##group##_GROUP_RUNNER(void)\
59
60
  {\
60
61
  TEST_##group##_GROUP_RUNNER_runAll();\
61
62
  }\
@@ -63,7 +64,7 @@ int UnityMain(int argc, char* argv[], void (*runAllTests)());
63
64
 
64
65
  //Call this from main
65
66
  #define RUN_TEST_GROUP(group)\
66
- { void TEST_##group##_GROUP_RUNNER();\
67
+ { void TEST_##group##_GROUP_RUNNER(void);\
67
68
  TEST_##group##_GROUP_RUNNER(); }
68
69
 
69
70
  //CppUTest Compatibility Macros
@@ -16,7 +16,7 @@ typedef struct _UNITY_FIXTURE_T
16
16
  const char* GroupFilter;
17
17
  } UNITY_FIXTURE_T;
18
18
 
19
- typedef void unityfunction();
19
+ typedef void unityfunction(void);
20
20
  void UnityTestRunner(unityfunction * setup,
21
21
  unityfunction * body,
22
22
  unityfunction * teardown,
@@ -26,15 +26,15 @@ void UnityTestRunner(unityfunction * setup,
26
26
  const char * file, int line);
27
27
 
28
28
  void UnityIgnoreTest(const char * printableName);
29
- void UnityMalloc_StartTest();
30
- void UnityMalloc_EndTest();
31
- int UnityFailureCount();
29
+ void UnityMalloc_StartTest(void);
30
+ void UnityMalloc_EndTest(void);
31
+ int UnityFailureCount(void);
32
32
  int UnityGetCommandLineOptions(int argc, char* argv[]);
33
- void UnityConcludeFixtureTest();
33
+ void UnityConcludeFixtureTest(void);
34
34
 
35
35
  void UnityPointer_Set(void ** ptr, void * newValue);
36
- void UnityPointer_UndoAllSets();
37
- void UnityPointer_Init();
36
+ void UnityPointer_UndoAllSets(void);
37
+ void UnityPointer_Init(void);
38
38
 
39
39
  void UnityAssertEqualPointer(const void * expected,
40
40
  const void * actual,
@@ -255,6 +255,23 @@ TEST(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified)
255
255
  TEST_ASSERT_EQUAL(2, UnityFixture.RepeatCount);
256
256
  }
257
257
 
258
+ static char* unknownCommand[] = {
259
+ "testrunner.exe",
260
+ "-v",
261
+ "-g", "groupname",
262
+ "-n", "testname",
263
+ "-r", "98",
264
+ "-z"
265
+ };
266
+ TEST(UnityCommandOptions, UnknownCommandIsIgnored)
267
+ {
268
+ TEST_ASSERT_EQUAL(0, UnityGetCommandLineOptions(9, unknownCommand));
269
+ TEST_ASSERT_EQUAL(1, UnityFixture.Verbose);
270
+ STRCMP_EQUAL("groupname", UnityFixture.GroupFilter);
271
+ STRCMP_EQUAL("testname", UnityFixture.NameFilter);
272
+ TEST_ASSERT_EQUAL(98, UnityFixture.RepeatCount);
273
+ }
274
+
258
275
 
259
276
  //------------------------------------------------------------
260
277
 
@@ -30,6 +30,7 @@ TEST_GROUP_RUNNER(UnityCommandOptions)
30
30
  RUN_TEST_CASE(UnityCommandOptions, OptionSelectRepeatTestsSpecificCount);
31
31
  RUN_TEST_CASE(UnityCommandOptions, MultipleOptions);
32
32
  RUN_TEST_CASE(UnityCommandOptions, MultipleOptionsDashRNotLastAndNoValueSpecified);
33
+ RUN_TEST_CASE(UnityCommandOptions, UnknownCommandIsIgnored);
33
34
  }
34
35
 
35
36
  TEST_GROUP_RUNNER(LeakDetection)
@@ -2,7 +2,7 @@
2
2
  # Unity Project - A Test Framework for C
3
3
  # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4
4
  # [Released under MIT License. Please refer to license.txt for details]
5
- # ==========================================
5
+ # ==========================================
6
6
 
7
7
  C_COMPILER=gcc
8
8
  TARGET_BASE = testunity
@@ -15,9 +15,11 @@ TARGET = $(TARGET_BASE)$(TARGET_EXTENSION)
15
15
  OUT_FILE=-o $(TARGET)
16
16
  SRC_FILES=src/unity.c test/testunity.c build/testunity_Runner.c
17
17
  INC_DIRS=-Isrc
18
- SYMBOLS=-DTEST -DUNITY_SUPPORT_64
18
+ SYMBOLS=-DTEST -DUNITY_SUPPORT_64 -DUNITY_INCLUDE_DOUBLE
19
19
 
20
- ifeq ($(OS),Windows_NT)
20
+ ifeq ($(OSTYPE),cygwin)
21
+ CLEANUP = rm -f build/*.o ; rm -f $(TARGET) ; mkdir -p build
22
+ else ifeq ($(OS),Windows_NT)
21
23
  CLEANUP = del /F /Q build\* && del /F /Q $(TARGET)
22
24
  else
23
25
  CLEANUP = rm -f build/*.o ; rm -f $(TARGET) ; mkdir -p build
@@ -32,4 +34,4 @@ default:
32
34
 
33
35
  clean:
34
36
  $(CLEANUP)
35
-
37
+
@@ -2,7 +2,7 @@
2
2
  # Unity Project - A Test Framework for C
3
3
  # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4
4
  # [Released under MIT License. Please refer to license.txt for details]
5
- # ==========================================
5
+ # ==========================================
6
6
 
7
7
  require 'yaml'
8
8
  require 'fileutils'
@@ -13,7 +13,7 @@ require UNITY_ROOT + 'auto/colour_reporter'
13
13
  module RakefileHelpers
14
14
 
15
15
  C_EXTENSION = '.c'
16
-
16
+
17
17
  def load_configuration(config_file)
18
18
  unless ($configured)
19
19
  $cfg_file = "targets/#{config_file}" unless (config_file =~ /[\\|\/]/)
@@ -22,24 +22,24 @@ module RakefileHelpers
22
22
  $configured = true if (config_file != DEFAULT_CONFIG_FILE)
23
23
  end
24
24
  end
25
-
25
+
26
26
  def configure_clean
27
27
  CLEAN.include($cfg['compiler']['build_path'] + '*.*') unless $cfg['compiler']['build_path'].nil?
28
28
  end
29
-
29
+
30
30
  def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
31
31
  config_file += '.yml' unless config_file =~ /\.yml$/
32
32
  config_file = config_file unless config_file =~ /[\\|\/]/
33
33
  load_configuration(config_file)
34
34
  configure_clean
35
35
  end
36
-
36
+
37
37
  def get_unit_test_files
38
38
  path = $cfg['compiler']['unit_tests_path'] + 'test*' + C_EXTENSION
39
39
  path.gsub!(/\\/, '/')
40
40
  FileList.new(path)
41
41
  end
42
-
42
+
43
43
  def get_local_include_dirs
44
44
  include_dirs = $cfg['compiler']['includes']['items'].dup
45
45
  include_dirs.delete_if {|dir| dir.is_a?(Array)}
@@ -67,7 +67,7 @@ module RakefileHelpers
67
67
  end
68
68
  return nil
69
69
  end
70
-
70
+
71
71
  def tackit(strings)
72
72
  if strings.is_a?(Array)
73
73
  result = "\"#{strings.join}\""
@@ -76,13 +76,22 @@ module RakefileHelpers
76
76
  end
77
77
  return result
78
78
  end
79
-
79
+
80
80
  def squash(prefix, items)
81
81
  result = ''
82
82
  items.each { |item| result += " #{prefix}#{tackit(item)}" }
83
83
  return result
84
84
  end
85
85
 
86
+ def should(behave, &block)
87
+ if block
88
+ puts "Should " + behave
89
+ yield block
90
+ else
91
+ puts "UNIMPLEMENTED CASE: Should #{behave}"
92
+ end
93
+ end
94
+
86
95
  def build_compiler_fields
87
96
  command = tackit($cfg['compiler']['path'])
88
97
  if $cfg['compiler']['defines']['items'].nil?
@@ -104,7 +113,7 @@ module RakefileHelpers
104
113
  execute(cmd_str + obj_file)
105
114
  return obj_file
106
115
  end
107
-
116
+
108
117
  def build_linker_fields
109
118
  command = tackit($cfg['linker']['path'])
110
119
  if $cfg['linker']['options'].nil?
@@ -120,7 +129,7 @@ module RakefileHelpers
120
129
  includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
121
130
  return {:command => command, :options => options, :includes => includes}
122
131
  end
123
-
132
+
124
133
  def link_it(exe_name, obj_list)
125
134
  linker = build_linker_fields
126
135
  cmd_str = "#{linker[:command]}#{linker[:options]}#{linker[:includes]} " +
@@ -130,7 +139,7 @@ module RakefileHelpers
130
139
  exe_name + $cfg['linker']['bin_files']['extension']
131
140
  execute(cmd_str)
132
141
  end
133
-
142
+
134
143
  def build_simulator_fields
135
144
  return nil if $cfg['simulator'].nil?
136
145
  if $cfg['simulator']['path'].nil?
@@ -150,7 +159,7 @@ module RakefileHelpers
150
159
  end
151
160
  return {:command => command, :pre_support => pre_support, :post_support => post_support}
152
161
  end
153
-
162
+
154
163
  def execute(command_string, verbose=true)
155
164
  report command_string
156
165
  output = `#{command_string}`.chomp
@@ -160,32 +169,32 @@ module RakefileHelpers
160
169
  end
161
170
  return output
162
171
  end
163
-
172
+
164
173
  def report_summary
165
174
  summary = UnityTestSummary.new
166
- summary.set_root_path(UNITY_ROOT )
175
+ summary.set_root_path(UNITY_ROOT )
167
176
  results_glob = "#{$cfg['compiler']['build_path']}*.test*"
168
177
  results_glob.gsub!(/\\/, '/')
169
178
  results = Dir[results_glob]
170
179
  summary.set_targets(results)
171
180
  summary.run
172
181
  end
173
-
182
+
174
183
  def run_tests(test_files)
175
184
  report 'Running Unity system tests...'
176
-
185
+
177
186
  # Tack on TEST define for compiling unit tests
178
187
  load_configuration($cfg_file)
179
188
  test_defines = ['TEST']
180
189
  $cfg['compiler']['defines']['items'] = [] if $cfg['compiler']['defines']['items'].nil?
181
190
  $cfg['compiler']['defines']['items'] << 'TEST'
182
-
191
+
183
192
  include_dirs = get_local_include_dirs
184
-
193
+
185
194
  # Build and execute each unit test
186
195
  test_files.each do |test|
187
196
  obj_list = []
188
-
197
+
189
198
  # Detect dependencies and build required modules
190
199
  extract_headers(test).each do |header|
191
200
  # Compile corresponding source file if it exists
@@ -194,30 +203,30 @@ module RakefileHelpers
194
203
  obj_list << compile(src_file, test_defines)
195
204
  end
196
205
  end
197
-
206
+
198
207
  # Build the test runner (generate if configured to do so)
199
208
  test_base = File.basename(test, C_EXTENSION)
200
-
209
+
201
210
  runner_name = test_base + '_Runner.c'
202
211
  runner_path = ''
203
-
212
+
204
213
  if $cfg['compiler']['runner_path'].nil?
205
214
  runner_path = $cfg['compiler']['build_path'] + runner_name
206
215
  else
207
216
  runner_path = $cfg['compiler']['runner_path'] + runner_name
208
217
  end
209
-
218
+
210
219
  options = $cfg[:unity]
211
220
  options[:use_param_tests] = (test =~ /parameterized/) ? true : false
212
221
  UnityTestRunnerGenerator.new(options).run(test, runner_path)
213
222
  obj_list << compile(runner_path, test_defines)
214
-
223
+
215
224
  # Build the test module
216
225
  obj_list << compile(test, test_defines)
217
-
226
+
218
227
  # Link the test executable
219
228
  link_it(test_base, obj_list)
220
-
229
+
221
230
  # Execute unit test and generate results file
222
231
  simulator = build_simulator_fields
223
232
  executable = $cfg['linker']['bin_files']['destination'] + test_base + $cfg['linker']['bin_files']['extension']
@@ -234,7 +243,7 @@ module RakefileHelpers
234
243
  test_results += '.testpass'
235
244
  end
236
245
  File.open(test_results, 'w') { |f| f.print output }
237
-
246
+
238
247
  end
239
248
  end
240
249
  end