ceedling 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -0,0 +1,24 @@
1
+ CMock - Mock/stub generator for C
2
+ =================================
3
+
4
+ [![CMock Build Status](https://api.travis-ci.org/ThrowTheSwitch/CMock.png?branch=master)](https://travis-ci.org/ThrowTheSwitch/CMock)
5
+
6
+ Getting Started
7
+ ================
8
+
9
+ > git clone --recursive https://github.com/throwtheswitch/cmock.git
10
+ > cd cmock
11
+ > bundle install # Ensures you have all RubyGems needed
12
+ > bundle execute rake # Run all CMock library tests
13
+
14
+ API Documentation
15
+ =================
16
+
17
+ * Not sure what you're doing?
18
+ * [View docs/CMock_Summary.md](docs/CMock_Summary.md)
19
+ * Interested in our MIT-style license?
20
+ * [View docs/license.txt](docs/license.txt)
21
+ * Are there examples?
22
+ * They are all in [/examples](examples/)
23
+ * Any other resources to check out?
24
+ * Definitely! Check out our developer portal on [ThrowTheSwitch.org](http://throwtheswitch.org)
@@ -1,8 +1,8 @@
1
- # ==========================================
1
+ # ==============================================================================
2
2
  # CMock Project - Automatic Mock Generation for C
3
- # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
3
+ # Copyright (c) 2007-2014 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 './config/test_environment'
8
8
  require 'rake'
@@ -23,7 +23,6 @@ SYSTEM_TEST_SUPPORT_DIRS = [
23
23
  ]
24
24
 
25
25
  SYSTEM_TEST_SUPPORT_DIRS.each do |dir|
26
- p dir
27
26
  directory(dir)
28
27
  CLOBBER.include(dir)
29
28
  end
@@ -35,7 +34,8 @@ configure_clean
35
34
  configure_toolchain(DEFAULT_CONFIG_FILE)
36
35
 
37
36
  task :default => ['test:all']
38
- task :cruise => [:no_color, :default]
37
+ task :ci => [:no_color, :default]
38
+ task :cruise => :ci
39
39
 
40
40
  desc "Load configuration"
41
41
  task :config, :config_file do |t, args|
@@ -53,7 +53,7 @@ namespace :test do
53
53
  t.pattern = 'test/unit/*_test.rb'
54
54
  t.verbose = true
55
55
  end
56
-
56
+
57
57
  #individual unit tests
58
58
  FileList['test/unit/*_test.rb'].each do |test|
59
59
  Rake::TestTask.new(File.basename(test,'.*')) do |t|
@@ -61,12 +61,12 @@ namespace :test do
61
61
  t.verbose = true
62
62
  end
63
63
  end
64
-
64
+
65
65
  desc "Run C Unit Tests"
66
66
  task :c => [:prep_system_tests] do
67
67
  build_and_test_c_files
68
68
  end
69
-
69
+
70
70
  desc "Run System Tests"
71
71
  task :system => [:clobber, :prep_system_tests] do
72
72
  #get a list of all system tests, removing unsupported tests for this compiler
@@ -82,10 +82,10 @@ namespace :test do
82
82
  report "\nRunning system tests..."
83
83
  tests_failed = run_system_test_interactions(sys_tests_to_run)
84
84
  raise "System tests failed." if (tests_failed > 0)
85
-
85
+
86
86
  run_system_test_compilations(compile_tests_to_run)
87
87
  end
88
-
88
+
89
89
  #individual system tests
90
90
  FileList['test/system/test_interactions/*.yml'].each do |test|
91
91
  desc "Run system test #{File.basename(test,'.*')}"
@@ -93,7 +93,7 @@ namespace :test do
93
93
  run_system_test_interactions([test])
94
94
  end
95
95
  end
96
-
96
+
97
97
  desc "Profile Mock Generation"
98
98
  task :profile => [:clobber, :prep_system_tests] do
99
99
  run_system_test_profiles(FileList[SYSTEST_COMPILE_MOCKABLES_PATH + '*.h'])
@@ -108,4 +108,4 @@ RSpec::Core::RakeTask.new(:spec) do |t|
108
108
  spec_path = File.join(CMOCK_ROOT, 'test/spec')
109
109
  t.pattern = spec_path + '/*_spec.rb'
110
110
  end
111
-
111
+
Binary file
Binary file
@@ -1,82 +1,82 @@
1
- [All code is copyright © 2007-2010 Cmock Project
1
+ [All code is copyright © 2007-2014 Cmock Project
2
2
  by Mike Karlesky, Mark VanderVoord, and Greg Williams.
3
3
 
4
- This Documentation Is Released Under a Creative Commons 3.0
5
- Attribution Share-Alike License]
4
+ This Documentation Is Released Under a Creative Commons 3.0
5
+ Attribution Share-Alike License]
6
6
 
7
7
 
8
8
  What the What?
9
9
  ==============
10
10
 
11
- CMock is a nice little tool which takes your header files and creates
12
- a Mock interface for it so that you can more easily Unit test modules
13
- that touch other modules. For each function prototype in your
14
- header, like this one:
11
+ CMock is a nice little tool which takes your header files and creates
12
+ a Mock interface for it so that you can more easily Unit test modules
13
+ that touch other modules. For each function prototype in your
14
+ header, like this one:
15
15
 
16
16
  int DoesSomething(int a, int b);
17
-
18
17
 
19
- ...you get an automatically generated DoesSomething function
20
- that you can link to instead of your real DoesSomething function.
21
- By using this Mocked version, you can then verify that it receives
22
- the data you want, and make it return whatever data you desire,
23
- make it throw errors when you want, and more... Create these for
24
- everything your latest real module touches, and you're suddenly
25
- in a position of power: You can control and verify every detail
26
- of your latest creation.
27
18
 
28
- To make that easier, CMock also gives you a bunch of functions
29
- like the ones below, so you can tell that generated DoesSomething
30
- function how to behave for each test:
19
+ ...you get an automatically generated DoesSomething function
20
+ that you can link to instead of your real DoesSomething function.
21
+ By using this Mocked version, you can then verify that it receives
22
+ the data you want, and make it return whatever data you desire,
23
+ make it throw errors when you want, and more... Create these for
24
+ everything your latest real module touches, and you're suddenly
25
+ in a position of power: You can control and verify every detail
26
+ of your latest creation.
27
+
28
+ To make that easier, CMock also gives you a bunch of functions
29
+ like the ones below, so you can tell that generated DoesSomething
30
+ function how to behave for each test:
31
31
 
32
32
  void DoesSomething_ExpectAndReturn(int a, int b, int toReturn);
33
33
  void DoesSomething_ExpectAndThrow(int a, int b, EXCEPTION_T error);
34
34
  void DoesSomething_StubWithCallback(CMOCK_DoesSomething_CALLBACK YourCallback);
35
35
  void DoesSomething_IgnoreAndReturn(int toReturn);
36
-
37
36
 
38
- You can pile a bunch of these back to back, and it remembers what
39
- you wanted to pass when, like so:
37
+
38
+ You can pile a bunch of these back to back, and it remembers what
39
+ you wanted to pass when, like so:
40
40
 
41
41
  test_CallsDoesSomething_ShouldDoJustThat(void)
42
42
  {
43
43
  DoesSomething_ExpectAndReturn(1,2,3);
44
44
  DoesSomething_ExpectAndReturn(4,5,6);
45
45
  DoesSomething_ExpectAndThrow(7,8, STATUS_ERROR_OOPS);
46
-
46
+
47
47
  CallsDoesSomething( );
48
48
  }
49
-
50
49
 
51
- This test will call CallsDoesSomething, which is the function
52
- we are testing. We are expecting that function to call DoesSomething
53
- three times. The first time, we check to make sure it's called
54
- as DoesSomething(1, 2) and we'll magically return a 3. The second
55
- time we check for DoesSomething(4, 5) and we'll return a 6. The
56
- third time we verify DoesSomething(7, 8) and we'll throw an error
57
- instead of returning anything. If CallsDoesSomething gets
58
- any of this wrong, it fails the test. It will fail if you didn't
59
- call DoesSomething enough, or too much, or with the wrong arguments,
60
- or in the wrong order.
61
50
 
62
- CMock is based on Unity, which it uses for all internal testing.
63
- It uses Ruby to do all the main work (versions 1.8.6 through 1.9.2).
51
+ This test will call CallsDoesSomething, which is the function
52
+ we are testing. We are expecting that function to call DoesSomething
53
+ three times. The first time, we check to make sure it's called
54
+ as DoesSomething(1, 2) and we'll magically return a 3. The second
55
+ time we check for DoesSomething(4, 5) and we'll return a 6. The
56
+ third time we verify DoesSomething(7, 8) and we'll throw an error
57
+ instead of returning anything. If CallsDoesSomething gets
58
+ any of this wrong, it fails the test. It will fail if you didn't
59
+ call DoesSomething enough, or too much, or with the wrong arguments,
60
+ or in the wrong order.
61
+
62
+ CMock is based on Unity, which it uses for all internal testing.
63
+ It uses Ruby to do all the main work (versions 1.8.6 through 1.9.2).
64
64
 
65
65
 
66
66
  Generated Mock Module Summary
67
67
  =============================
68
68
 
69
- In addition to the mocks themselves, CMock will generate the
70
- following functions for use in your tests. The expect functions
71
- are always generated. The other functions are only generated
72
- if those plugins are enabled:
69
+ In addition to the mocks themselves, CMock will generate the
70
+ following functions for use in your tests. The expect functions
71
+ are always generated. The other functions are only generated
72
+ if those plugins are enabled:
73
73
 
74
74
 
75
75
  Expect:
76
76
  -------
77
77
 
78
- Your basic staple Expects which will be used for most of your day
79
- to day CMock work.
78
+ Your basic staple Expects which will be used for most of your day
79
+ to day CMock work.
80
80
 
81
81
  * `void func(void)` => `void func_Expect(void)`
82
82
  * `void func(params)` => `void func_Expect(expected_params)`
@@ -87,9 +87,9 @@ to day CMock work.
87
87
  Array:
88
88
  ------
89
89
 
90
- An ExpectWithArray will check as many elements as you specify.
91
- If you specify zero elements, it will check just the pointer if
92
- `:smart` mode is configured or fail if `:compare_data` is set.
90
+ An ExpectWithArray will check as many elements as you specify.
91
+ If you specify zero elements, it will check just the pointer if
92
+ `:smart` mode is configured or fail if `:compare_data` is set.
93
93
 
94
94
  * `void func(void)` => (nothing. In fact, an additional function is only generated if the params list contains pointers)
95
95
  * `void func(ptr * param, other)` => `void func_ExpectWithArray(ptr* param, int param_depth, other)`
@@ -100,11 +100,11 @@ If you specify zero elements, it will check just the pointer if
100
100
  Callback:
101
101
  ---------
102
102
 
103
- As soon as you stub a callback in a test, it will call the callback
104
- whenever the mock is encountered and return the retval returned
105
- from the callback (if any) instead of performing the usual expect
106
- checks. It can be configured to check the arguments first (like
107
- expects) or just jump directly to the callback.
103
+ As soon as you stub a callback in a test, it will call the callback
104
+ whenever the mock is encountered and return the retval returned
105
+ from the callback (if any) instead of performing the usual expect
106
+ checks. It can be configured to check the arguments first (like
107
+ expects) or just jump directly to the callback.
108
108
 
109
109
  * `void func(void)` => `void func_StubWithCallback(CMOCK_func_CALLBACK callback)`
110
110
  where `CMOCK_func_CALLBACK` looks like: `void func(int NumCalls)`
@@ -119,10 +119,10 @@ where `CMOCK_func_CALLBACK` looks like: `retval func(params, int NumCalls)`
119
119
  Cexception:
120
120
  -----------
121
121
 
122
- If you are using Cexception for error handling, you can use this
123
- to throw errors from inside mocks. Like Expects, it remembers
124
- which call was supposed to throw the error, and it still checks
125
- parameters.
122
+ If you are using Cexception for error handling, you can use this
123
+ to throw errors from inside mocks. Like Expects, it remembers
124
+ which call was supposed to throw the error, and it still checks
125
+ parameters.
126
126
 
127
127
  * `void func(void)` => `void func_ExpectAndThrow(value_to_throw)`
128
128
  * `void func(params)` => `void func_ExpectAndThrow(expected_params, value_to_throw)`
@@ -133,10 +133,10 @@ parameters.
133
133
  Ignore:
134
134
  -------
135
135
 
136
- This plugin supports two modes. You can use it to force CMock to
137
- ignore calls to specific functions or to just ignore the arguments
138
- passed to those functions. Either way you can specify multiple
139
- returns or a single value to always return, whichever you prefer.
136
+ This plugin supports two modes. You can use it to force CMock to
137
+ ignore calls to specific functions or to just ignore the arguments
138
+ passed to those functions. Either way you can specify multiple
139
+ returns or a single value to always return, whichever you prefer.
140
140
 
141
141
  * `void func(void)` => `void func_Ignore(void)`
142
142
  * `void func(params)` => `void func_Ignore(void)`
@@ -144,62 +144,86 @@ returns or a single value to always return, whichever you prefer.
144
144
  * `retval func(params)` => `void func_IgnoreAndReturn(retval_to_return)`
145
145
 
146
146
 
147
+ Ignore Args:
148
+ ------------
149
+
150
+ This plugin adds the ability to specify specifc arguments to ignore
151
+ for a function, instead of ignoring all the arguments or the entire
152
+ function call, as the Ignore plugin supports. This will create a function
153
+ for each argument and each function.
154
+
155
+ * `void func(params)` => `void func_IgnoreArg_paramName(void)`
156
+
157
+
158
+ ReturnThruPtr:
159
+ --------------
160
+
161
+ This plugin adds a number of options for returning data through arguments
162
+ that are pointers. This is fled separately from the Expect/Ignore call, so
163
+ you will want to issue one of those calls each time as well. This will only
164
+ create an extra call for arguments that are pointers. It will create one per
165
+ pointer argument.
166
+
167
+ * `void func(param1)` => `void func_ReturnThruPtr_paramName(val_to_return)`
168
+ * => `void func_ReturnArrayThruPtr_paramName(cal_to_return, len)`
169
+ * => `void func_ReturnMemThruPtr_paramName(val_to_return, size)`
170
+
147
171
  Running CMock
148
172
  =============
149
173
 
150
- CMock is a Ruby script and class. You can therefore use it directly
151
- from the command line, or include it in your own scripts or rakefiles.
174
+ CMock is a Ruby script and class. You can therefore use it directly
175
+ from the command line, or include it in your own scripts or rakefiles.
152
176
 
153
177
  Mocking from the Command Line
154
178
  -----------------------------
155
179
 
156
- After unpacking CMock, you will find CMock.rb in the 'lib' directory.
157
- This is the file that you want to run. It takes a list of header files
158
- to be mocked, as well as an optional yaml file for a more detailed
159
- configuration (see config options below).
180
+ After unpacking CMock, you will find CMock.rb in the 'lib' directory.
181
+ This is the file that you want to run. It takes a list of header files
182
+ to be mocked, as well as an optional yaml file for a more detailed
183
+ configuration (see config options below).
160
184
 
161
- For example, this will create three mocks using the configuration
162
- specified in MyConfig.yml:
185
+ For example, this will create three mocks using the configuration
186
+ specified in MyConfig.yml:
163
187
 
164
188
  ruby cmock.rb -oMyConfig.yml super.h duper.h awesome.h
165
189
 
166
- And this will create two mocks using the default configuration:
190
+ And this will create two mocks using the default configuration:
167
191
 
168
192
  ruby cmock.rb ../mocking/stuff/is/fun.h ../try/it/yourself.h
169
193
 
170
194
  Mocking From Scripts or Rake
171
195
  ----------------------------
172
196
 
173
- CMock can be used directly from your own scripts or from a rakefile.
174
- Start by including cmock.rb, then create an instance of CMock.
175
- When you create your instance, you may initialize it in one of
176
- three ways.
197
+ CMock can be used directly from your own scripts or from a rakefile.
198
+ Start by including cmock.rb, then create an instance of CMock.
199
+ When you create your instance, you may initialize it in one of
200
+ three ways.
177
201
 
178
- You may specify nothing, allowing it to run with default settings:
202
+ You may specify nothing, allowing it to run with default settings:
179
203
 
180
204
  cmock = CMock.new
181
205
 
182
- You may specify a YAML file containing the configuration options
183
- you desire:
206
+ You may specify a YAML file containing the configuration options
207
+ you desire:
184
208
 
185
209
  cmock = CMock.new('../MyConfig.yml')
186
210
 
187
- You may specify the options explicitly:
211
+ You may specify the options explicitly:
188
212
 
189
213
  cmock = Cmock.new(:plugins => [:cexception, :ignore], :mock_path => 'my/mocks/')
190
214
 
191
- Config Options:
215
+ Config Options:
192
216
 
193
- The following configuration options can be specified in the
194
- yaml file or directly when instantiating.
217
+ The following configuration options can be specified in the
218
+ yaml file or directly when instantiating.
195
219
 
196
- Passed as Ruby, they look like this:
220
+ Passed as Ruby, they look like this:
197
221
 
198
222
  { :attributes => [“__funky”, “__intrinsic”], :when_ptr => :compare }
199
223
 
200
- Defined in the yaml file, they look more like this:
224
+ Defined in the yaml file, they look more like this:
201
225
 
202
- :cmock:
226
+ :cmock:
203
227
  :attributes:
204
228
  - __funky
205
229
  - __intrinsic
@@ -238,11 +262,6 @@ Defined in the yaml file, they look more like this:
238
262
  unity test frameworks (or if you write one for us), they'll get added
239
263
  here.
240
264
 
241
- * `:ignore`:
242
- Tell `:ignore` plugin to ignore `:args_only` or `:args_and_calls`
243
- (default) where it doesn't even care how many times the mock was
244
- called
245
-
246
265
  * `:includes`:
247
266
  An array of additional include files which should be added to the
248
267
  mocks. Useful for global types and definitions used in your project.
@@ -267,8 +286,8 @@ Defined in the yaml file, they look more like this:
267
286
 
268
287
  * `:plugins`:
269
288
  An array of which plugins to enable. 'expect' is always active. Also
270
- available currently are `:ignore,` `:array,` `:cexception,` and
271
- `:callback:
289
+ available currently are `:ignore,` `:ignore_args,` `:array,`
290
+ `:cexception,` `:callback,` and `:return_thru_ptr`
272
291
 
273
292
  * `:treat_as`:
274
293
  The `:treat_as` list is a shortcut for when you have created typedefs
@@ -320,37 +339,37 @@ Defined in the yaml file, they look more like this:
320
339
  Compiled Options:
321
340
  -----------------
322
341
 
323
- A number of #defines also exist for customizing the cmock experience.
342
+ A number of #defines also exist for customizing the cmock experience.
324
343
 
325
- CMOCK_MEM_STATIC or CMOCK_MEM_DYNAMIC
344
+ CMOCK_MEM_STATIC or CMOCK_MEM_DYNAMIC
326
345
 
327
- Define one of these to determine if you want to dynamically add
328
- memory during tests as required from the heap. If static, you
329
- can control the total footprint of Cmock. If dynamic, you will
330
- need to make sure you make some heap space available for Cmock.
346
+ Define one of these to determine if you want to dynamically add
347
+ memory during tests as required from the heap. If static, you
348
+ can control the total footprint of Cmock. If dynamic, you will
349
+ need to make sure you make some heap space available for Cmock.
331
350
 
332
- CMOCK_MEM_SIZE
351
+ CMOCK_MEM_SIZE
333
352
 
334
- In static mode this is the total amount of memory you are allocating
335
- to Cmock. In Dynamic mode this is the size of each chunk allocated
336
- at once (larger numbers grab more memory but require less mallocs).
353
+ In static mode this is the total amount of memory you are allocating
354
+ to Cmock. In Dynamic mode this is the size of each chunk allocated
355
+ at once (larger numbers grab more memory but require less mallocs).
337
356
 
338
- CMOCK_MEM_ALIGN
357
+ CMOCK_MEM_ALIGN
339
358
 
340
- The way to align your data to. Not everything is as flexible as
341
- a PC, as most embedded designers know. This defaults to 2, meaning
342
- align to the closest 2^2 -> 4 bytes (32 bits). You can turn off alignment
343
- by setting 0, force alignment to the closest uint16 with 1 or even
344
- to the closest uint64 with 3.
359
+ The way to align your data to. Not everything is as flexible as
360
+ a PC, as most embedded designers know. This defaults to 2, meaning
361
+ align to the closest 2^2 -> 4 bytes (32 bits). You can turn off alignment
362
+ by setting 0, force alignment to the closest uint16 with 1 or even
363
+ to the closest uint64 with 3.
345
364
 
346
- CMOCK_MEM_PTR_AS_INT
365
+ CMOCK_MEM_PTR_AS_INT
347
366
 
348
- This is used internally to hold pointers... it needs to be big
349
- enough. On most processors a pointer is the same as an unsigned
350
- long... but maybe that's not true for yours?
367
+ This is used internally to hold pointers... it needs to be big
368
+ enough. On most processors a pointer is the same as an unsigned
369
+ long... but maybe that's not true for yours?
351
370
 
352
- CMOCK_MEM_INDEX_TYPE
371
+ CMOCK_MEM_INDEX_TYPE
353
372
 
354
- This needs to be something big enough to point anywhere in Cmock's
355
- memory space... usually it's an unsigned int.
373
+ This needs to be something big enough to point anywhere in Cmock's
374
+ memory space... usually it's an unsigned int.
356
375