ceedling 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -13
- data/ceedling-0.18.0.gem +0 -0
- data/docs/CeedlingPacket.md +7 -5
- data/lib/ceedling/configurator_builder.rb +10 -21
- data/lib/ceedling/configurator_setup.rb +16 -17
- data/lib/ceedling/constants.rb +4 -3
- data/lib/ceedling/defaults.rb +9 -4
- data/lib/ceedling/dependinator.rb +0 -1
- data/lib/ceedling/file_path_utils.rb +22 -26
- data/lib/ceedling/flaginator.rb +5 -5
- data/lib/ceedling/generator.rb +8 -7
- data/lib/ceedling/preprocessinator_file_handler.rb +6 -6
- data/lib/ceedling/preprocessinator_includes_handler.rb +1 -1
- data/lib/ceedling/rules_release.rake +5 -3
- data/lib/ceedling/rules_tests.rake +2 -1
- data/lib/ceedling/tasks_base.rake +1 -1
- data/lib/ceedling/tasks_vendor.rake +9 -10
- data/lib/ceedling/tool_executor.rb +23 -22
- data/lib/ceedling/version.rb +3 -3
- data/plugins/module_generator/lib/module_generator.rb +3 -3
- data/plugins/xml_tests_report/xml_tests_report.rb +1 -1
- data/spec/preprocessinator_includes_handler_spec.rb +1 -1
- data/spec/spec_system_helper.rb +192 -192
- data/vendor/c_exception/vendor/unity/Gemfile +4 -0
- data/vendor/c_exception/vendor/unity/Gemfile.lock +12 -0
- data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +115 -0
- data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
- data/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
- data/vendor/c_exception/vendor/unity/auto/generate_module.rb +202 -0
- data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +320 -0
- data/vendor/c_exception/vendor/unity/auto/parseOutput.rb +189 -0
- data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +23 -0
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +139 -0
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +216 -0
- data/vendor/c_exception/vendor/unity/docs/license.txt +31 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/makefile +41 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +5 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +9 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/{unity/examples/example_3/test/no_ruby → c_exception/vendor/unity/examples/example_1/test/test_runners}/TestProductionCode2_Runner.c +16 -3
- data/vendor/{unity/examples/example_3/test/no_ruby → c_exception/vendor/unity/examples/example_1/test/test_runners}/TestProductionCode_Runner.c +16 -3
- data/vendor/c_exception/vendor/unity/examples/example_2/makefile +45 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +9 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/makefile +41 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +44 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +256 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +19 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +9 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/vendor/c_exception/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +179 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +387 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +82 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +341 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +41 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/c_exception/vendor/unity/makefile +37 -0
- data/vendor/c_exception/vendor/unity/rakefile.rb +61 -0
- data/vendor/c_exception/vendor/unity/rakefile_helper.rb +249 -0
- data/vendor/c_exception/vendor/unity/release/build.info +2 -0
- data/vendor/c_exception/vendor/unity/release/version.info +2 -0
- data/vendor/c_exception/vendor/unity/src/unity.c +1145 -0
- data/vendor/c_exception/vendor/unity/src/unity.h +307 -0
- data/vendor/c_exception/vendor/unity/src/unity_internals.h +620 -0
- data/vendor/c_exception/vendor/unity/targets/clang_strict.yml +83 -0
- data/vendor/c_exception/vendor/unity/targets/gcc_32.yml +44 -0
- data/vendor/c_exception/vendor/unity/targets/gcc_64.yml +45 -0
- data/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +94 -0
- data/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +57 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +53 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +79 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +75 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +88 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +88 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +76 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +88 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +88 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +89 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +63 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +66 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +54 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +63 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +66 -0
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +67 -0
- data/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +88 -0
- data/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +51 -0
- data/vendor/c_exception/vendor/unity/test/testdata/sample.yml +9 -0
- data/vendor/c_exception/vendor/unity/test/testdata/testsample.c +51 -0
- data/vendor/c_exception/vendor/unity/test/testparameterized.c +101 -0
- data/vendor/c_exception/vendor/unity/test/testunity.c +3447 -0
- data/vendor/cmock/README.md +1 -1
- data/vendor/cmock/Rakefile +106 -104
- data/vendor/cmock/config/production_environment.rb +14 -14
- data/vendor/cmock/config/test_environment.rb +16 -16
- data/vendor/cmock/docs/CMock_Summary.md +9 -0
- data/vendor/cmock/docs/license.txt +2 -2
- data/vendor/cmock/examples/make_example/Makefile +30 -0
- data/vendor/cmock/examples/make_example/src/foo.c +5 -0
- data/vendor/cmock/examples/make_example/src/foo.h +5 -0
- data/vendor/cmock/examples/make_example/src/main.c +15 -0
- data/vendor/cmock/examples/make_example/test/test_foo.c +17 -0
- data/vendor/cmock/examples/make_example/test/test_main.c +15 -0
- data/vendor/cmock/examples/{gcc.yml → temp_sensor/gcc.yml} +43 -43
- data/vendor/cmock/examples/{iar_v4.yml → temp_sensor/iar_v4.yml} +91 -91
- data/vendor/cmock/examples/{iar_v5.yml → temp_sensor/iar_v5.yml} +80 -80
- data/vendor/cmock/examples/{rakefile.rb → temp_sensor/rakefile.rb} +32 -32
- data/vendor/cmock/examples/{rakefile_helper.rb → temp_sensor/rakefile_helper.rb} +270 -270
- data/vendor/cmock/examples/{src → temp_sensor/src}/AT91SAM7X256.h +2556 -2556
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcConductor.c +42 -42
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcConductor.h +11 -11
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcHardware.c +27 -27
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcHardware.h +9 -9
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcHardwareConfigurator.c +18 -18
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcHardwareConfigurator.h +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcModel.c +33 -33
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcModel.h +13 -13
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcTemperatureSensor.c +51 -51
- data/vendor/cmock/examples/{src → temp_sensor/src}/AdcTemperatureSensor.h +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/Executor.c +25 -25
- data/vendor/cmock/examples/{src → temp_sensor/src}/Executor.h +9 -9
- data/vendor/cmock/examples/{src → temp_sensor/src}/IntrinsicsWrapper.c +18 -18
- data/vendor/cmock/examples/{src → temp_sensor/src}/IntrinsicsWrapper.h +7 -7
- data/vendor/cmock/examples/{src → temp_sensor/src}/Main.c +46 -46
- data/vendor/cmock/examples/{src → temp_sensor/src}/Main.h +7 -7
- data/vendor/cmock/examples/{src → temp_sensor/src}/Model.c +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/Model.h +8 -8
- data/vendor/cmock/examples/{src → temp_sensor/src}/ModelConfig.h +7 -7
- data/vendor/cmock/examples/{src → temp_sensor/src}/TaskScheduler.c +72 -72
- data/vendor/cmock/examples/{src → temp_sensor/src}/TaskScheduler.h +11 -11
- data/vendor/cmock/examples/{src → temp_sensor/src}/TemperatureCalculator.c +27 -27
- data/vendor/cmock/examples/{src → temp_sensor/src}/TemperatureCalculator.h +6 -6
- data/vendor/cmock/examples/{src → temp_sensor/src}/TemperatureFilter.c +39 -39
- data/vendor/cmock/examples/{src → temp_sensor/src}/TemperatureFilter.h +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerConductor.c +15 -15
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerConductor.h +9 -9
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerConfigurator.c +51 -51
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerConfigurator.h +15 -15
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerHardware.c +15 -15
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerHardware.h +8 -8
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerInterruptConfigurator.c +55 -55
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerInterruptConfigurator.h +13 -13
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerInterruptHandler.c +25 -25
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerInterruptHandler.h +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerModel.c +9 -9
- data/vendor/cmock/examples/{src → temp_sensor/src}/TimerModel.h +8 -8
- data/vendor/cmock/examples/{src → temp_sensor/src}/Types.h +103 -103
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartBaudRateRegisterCalculator.c +18 -18
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartBaudRateRegisterCalculator.h +6 -6
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartConductor.c +21 -21
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartConductor.h +7 -7
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartConfigurator.c +39 -39
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartConfigurator.h +13 -13
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartHardware.c +22 -22
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartHardware.h +9 -9
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartModel.c +34 -34
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartModel.h +10 -10
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartPutChar.c +16 -16
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartPutChar.h +8 -8
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartTransmitBufferStatus.c +7 -7
- data/vendor/cmock/examples/{src → temp_sensor/src}/UsartTransmitBufferStatus.h +8 -8
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestAdcConductor.c +121 -121
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestAdcHardware.c +44 -44
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestAdcHardwareConfigurator.c +43 -43
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestAdcModel.c +33 -33
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestAdcTemperatureSensor.c +47 -47
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestExecutor.c +36 -36
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestMain.c +24 -24
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestModel.c +20 -20
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTaskScheduler.c +104 -104
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTemperatureCalculator.c +33 -33
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTemperatureFilter.c +69 -69
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerConductor.c +32 -32
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerConfigurator.c +112 -112
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerHardware.c +26 -26
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerInterruptConfigurator.c +78 -78
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerInterruptHandler.c +66 -66
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestTimerModel.c +18 -18
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartBaudRateRegisterCalculator.c +21 -21
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartConductor.c +40 -40
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartConfigurator.c +77 -77
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartHardware.c +37 -37
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartModel.c +36 -36
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartPutChar.c +43 -43
- data/vendor/cmock/examples/{test → temp_sensor/test}/TestUsartTransmitBufferStatus.c +22 -22
- data/vendor/cmock/iar/iar_v4/Resource/at91SAM7X256_FLASH.xcl +185 -185
- data/vendor/cmock/iar/iar_v4/Resource/at91SAM7X256_RAM.xcl +185 -185
- data/vendor/cmock/iar/iar_v4/Resource/ioat91sam7x256.ddf +2259 -2259
- data/vendor/cmock/iar/iar_v4/cmock_demo.dep +3691 -3691
- data/vendor/cmock/iar/iar_v4/cmock_demo.ewp +2581 -2581
- data/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X-EK.h +61 -61
- data/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.inc +2314 -2314
- data/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.rdf +4704 -4704
- data/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256.tcl +3407 -3407
- data/vendor/cmock/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +2268 -2268
- data/vendor/cmock/iar/iar_v4/incIAR/ioat91sam7x256.h +4380 -4380
- data/vendor/cmock/iar/iar_v4/incIAR/lib_AT91SAM7X256.h +4211 -4211
- data/vendor/cmock/iar/iar_v4/settings/cmock_demo.cspy.bat +32 -32
- data/vendor/cmock/iar/iar_v4/srcIAR/Cstartup.s79 +265 -265
- data/vendor/cmock/iar/iar_v4/srcIAR/Cstartup_SAM7.c +98 -98
- data/vendor/cmock/iar/iar_v5/Resource/at91SAM7X256_FLASH.icf +43 -43
- data/vendor/cmock/iar/iar_v5/Resource/at91SAM7X256_RAM.icf +42 -42
- data/vendor/cmock/iar/iar_v5/cmock_demo.dep +4204 -4204
- data/vendor/cmock/iar/iar_v5/cmock_demo.ewp +2426 -2426
- data/vendor/cmock/iar/iar_v5/incIAR/AT91SAM7X-EK.h +61 -61
- data/vendor/cmock/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +2268 -2268
- data/vendor/cmock/iar/iar_v5/incIAR/lib_AT91SAM7X256.h +4211 -4211
- data/vendor/cmock/iar/iar_v5/incIAR/project.h +30 -30
- data/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X.cspy.bat +33 -33
- data/vendor/cmock/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink +12 -12
- data/vendor/cmock/iar/iar_v5/settings/cmock_demo.cspy.bat +33 -33
- data/vendor/cmock/iar/iar_v5/settings/cmock_demo_Binary.jlink +12 -12
- data/vendor/cmock/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink +12 -12
- data/vendor/cmock/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink +12 -12
- data/vendor/cmock/iar/iar_v5/srcIAR/Cstartup.s +299 -299
- data/vendor/cmock/iar/iar_v5/srcIAR/Cstartup_SAM7.c +98 -98
- data/vendor/cmock/lib/cmock.rb +89 -89
- data/vendor/cmock/lib/cmock_config.rb +134 -133
- data/vendor/cmock/lib/cmock_file_writer.rb +40 -33
- data/vendor/cmock/lib/cmock_generator.rb +234 -215
- data/vendor/cmock/lib/cmock_generator_plugin_array.rb +63 -63
- data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +96 -78
- data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +52 -51
- data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +104 -86
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +68 -68
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +72 -71
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +1 -1
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +2 -2
- data/vendor/cmock/lib/cmock_generator_utils.rb +228 -213
- data/vendor/cmock/lib/cmock_header_parser.rb +1 -1
- data/vendor/cmock/lib/cmock_plugin_manager.rb +40 -40
- data/vendor/cmock/lib/cmock_unityhelper_parser.rb +75 -75
- data/vendor/cmock/rakefile_helper.rb +381 -381
- data/vendor/cmock/release/build.info +1 -1
- data/vendor/cmock/release/version.info +1 -1
- data/vendor/cmock/scripts/create_makefile.rb +161 -0
- data/vendor/cmock/scripts/create_mock.rb +8 -0
- data/vendor/cmock/scripts/create_runner.rb +20 -0
- data/vendor/cmock/scripts/test_summary.rb +11 -0
- data/vendor/cmock/src/cmock.c +203 -192
- data/vendor/cmock/src/cmock.h +38 -36
- data/vendor/cmock/src/cmock_internals.h +11 -1
- data/vendor/cmock/targets/clang_strict.yml +90 -85
- data/vendor/cmock/targets/gcc.yml +58 -55
- data/vendor/cmock/targets/gcc_64.yml +58 -55
- data/vendor/cmock/targets/gcc_tiny.yml +80 -0
- data/vendor/cmock/targets/iar_arm_v4.yml +110 -108
- data/vendor/cmock/targets/iar_arm_v5.yml +95 -93
- data/vendor/cmock/test/c/TestCMockC.c +323 -323
- data/vendor/cmock/test/c/TestCMockC.yml +1 -0
- data/vendor/cmock/test/c/TestCMockCDynamic.c +186 -186
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +36 -36
- data/vendor/cmock/test/c/TestCMockC_Runner.c +39 -39
- data/vendor/cmock/test/system/systest_generator.rb +194 -194
- data/vendor/cmock/test/system/test_compilation/callingconv.h +11 -11
- data/vendor/cmock/test/system/test_compilation/osek.h +275 -275
- data/vendor/cmock/test/system/test_compilation/parsing.h +2 -0
- data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +375 -375
- data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +459 -389
- data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +62 -0
- data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +308 -0
- data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +23 -23
- data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +65 -0
- data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +38 -20
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +280 -0
- data/vendor/cmock/test/test_helper.rb +47 -47
- data/vendor/cmock/test/unit/cmock_config_test.rb +118 -118
- data/vendor/cmock/test/unit/cmock_config_test.yml +5 -5
- data/vendor/cmock/test/unit/cmock_file_writer_test.rb +27 -27
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +507 -489
- data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +133 -133
- data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +257 -189
- data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +96 -93
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +186 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +60 -81
- data/vendor/cmock/test/unit/{cmock_generator_plugin_expect_test.rb → cmock_generator_plugin_expect_b_test.rb} +202 -205
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +116 -116
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +105 -103
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +134 -134
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +377 -334
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +1381 -1337
- data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +95 -95
- data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +223 -223
- data/vendor/cmock/vendor/c_exception/Gemfile +4 -0
- data/vendor/cmock/vendor/c_exception/Gemfile.lock +12 -0
- data/vendor/cmock/vendor/c_exception/LICENSE.txt +30 -0
- data/vendor/cmock/vendor/c_exception/README.md +146 -0
- data/vendor/cmock/vendor/c_exception/Rakefile +42 -0
- data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.odt +0 -0
- data/vendor/cmock/vendor/c_exception/docs/CExceptionSummary.pdf +0 -0
- data/vendor/cmock/vendor/c_exception/docs/readme.txt +242 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.c +46 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.h +86 -0
- data/vendor/cmock/vendor/c_exception/makefile +24 -0
- data/vendor/cmock/vendor/c_exception/release/build.info +2 -0
- data/vendor/cmock/vendor/c_exception/release/version.info +2 -0
- data/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +46 -0
- data/vendor/cmock/vendor/c_exception/test/TestException.c +342 -0
- data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +74 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/Gemfile +4 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/Gemfile.lock +12 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +115 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +39 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_config.yml +36 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +202 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +320 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/parseOutput.rb +189 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +23 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +139 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/Unity Summary.txt +216 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/license.txt +31 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/makefile +41 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +5 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +46 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +50 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile +45 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/makefile +41 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +44 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +256 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +19 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c +46 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode_Runner.c +50 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +37 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +179 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +387 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +82 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +44 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +16 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +341 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +41 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +56 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/makefile +37 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/rakefile.rb +61 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/rakefile_helper.rb +249 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/build.info +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +2 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +1145 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +307 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +620 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/clang_strict.yml +83 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/gcc_32.yml +44 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/gcc_64.yml +45 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/hitech_picc18.yml +101 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v4.yml +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v5.yml +79 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_arm_v5_3.yml +79 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_cortexm3_v5.yml +83 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_msp430.yml +94 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/targets/iar_sh2a_v6.yml +85 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +57 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +53 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +79 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +75 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +88 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +88 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +76 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +88 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +88 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +89 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +63 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +66 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +54 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +63 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +66 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +67 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/test_generate_test_runner.rb +88 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mocksample.c +51 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/sample.yml +9 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testsample.c +51 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testparameterized.c +101 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testunity.c +3447 -0
- data/vendor/cmock/vendor/unity/README.md +211 -0
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +115 -0
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +39 -0
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +36 -0
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +202 -0
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +374 -0
- data/vendor/cmock/vendor/unity/auto/parseOutput.rb +191 -0
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +23 -0
- data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +8 -0
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +135 -0
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +148 -0
- data/vendor/cmock/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/cmock/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/cmock/vendor/unity/docs/Unity Summary.txt +224 -0
- data/vendor/cmock/vendor/unity/docs/license.txt +21 -0
- data/vendor/{unity/examples/example_3 → cmock/vendor/unity/examples/example_1}/makefile +9 -5
- data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +5 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/cmock/vendor/unity/examples/example_2/makefile +71 -0
- data/vendor/cmock/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +64 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +33 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +9 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +11 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +12 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +10 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +12 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +43 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +256 -0
- data/vendor/cmock/vendor/unity/examples/example_3/readme.txt +19 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +24 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +3 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +11 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +2 -0
- data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +46 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +62 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +31 -0
- data/vendor/cmock/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +48 -0
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +179 -0
- data/vendor/cmock/vendor/unity/extras/fixture/readme.txt +9 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +423 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +78 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +46 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +45 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/Makefile +19 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +21 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c +39 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +373 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +43 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +57 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +17 -0
- data/vendor/cmock/vendor/unity/release/build.info +2 -0
- data/vendor/cmock/vendor/unity/release/version.info +2 -0
- data/vendor/cmock/vendor/unity/src/unity.c +1324 -0
- data/vendor/cmock/vendor/unity/src/unity.h +285 -0
- data/vendor/cmock/vendor/unity/src/unity_internals.h +758 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +57 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +53 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +51 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.h +12 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +76 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.h +11 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +77 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +63 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +66 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +54 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +63 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +66 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +67 -0
- data/vendor/cmock/vendor/unity/test/rakefile +60 -0
- data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +255 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +84 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +84 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +50 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +51 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +47 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_sizeof.yml +48 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +59 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +47 -0
- data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +101 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +89 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +79 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +79 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +83 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +94 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +85 -0
- data/vendor/cmock/vendor/unity/test/testdata/mocksample.c +51 -0
- data/vendor/cmock/vendor/unity/test/testdata/sample.yml +9 -0
- data/vendor/cmock/vendor/unity/test/testdata/testsample.c +51 -0
- data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +102 -0
- data/vendor/cmock/vendor/unity/test/tests/testparameterized.c +104 -0
- data/vendor/cmock/vendor/unity/test/tests/testunity.c +3656 -0
- data/vendor/unity/README.md +211 -203
- data/vendor/unity/auto/colour_reporter.rb +38 -38
- data/vendor/unity/auto/generate_config.yml +36 -36
- data/vendor/unity/auto/generate_module.rb +202 -202
- data/vendor/unity/auto/generate_test_runner.rb +389 -347
- data/vendor/unity/auto/parseOutput.rb +2 -0
- data/vendor/unity/auto/unity_test_summary.py +135 -135
- data/vendor/unity/auto/unity_test_summary.rb +148 -139
- data/vendor/unity/docs/Unity Summary.odt +0 -0
- data/vendor/unity/docs/Unity Summary.pdf +0 -0
- data/vendor/unity/docs/Unity Summary.txt +224 -216
- data/vendor/unity/docs/license.txt +21 -21
- data/vendor/unity/examples/example_1/makefile +7 -3
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +29 -9
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +26 -6
- data/vendor/unity/examples/example_2/makefile +7 -4
- data/vendor/unity/extras/fixture/rakefile.rb +48 -48
- data/vendor/unity/extras/fixture/rakefile_helper.rb +179 -179
- data/vendor/unity/extras/fixture/src/unity_fixture.c +123 -78
- data/vendor/unity/extras/fixture/src/unity_fixture.h +6 -14
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +12 -15
- data/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +25 -0
- data/vendor/unity/extras/fixture/test/Makefile +35 -0
- data/vendor/unity/extras/fixture/test/main/AllTests.c +2 -1
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +99 -4
- data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +10 -0
- data/vendor/unity/extras/fixture/test/unity_output_Spy.c +3 -1
- data/vendor/unity/release/build.info +1 -1
- data/vendor/unity/release/version.info +1 -1
- data/vendor/unity/src/unity.c +1324 -1177
- data/vendor/unity/src/unity.h +285 -272
- data/vendor/unity/src/unity_internals.h +758 -692
- data/vendor/unity/test/expectdata/testsample_head1.c +51 -0
- data/vendor/unity/test/expectdata/testsample_head1.h +12 -0
- data/vendor/unity/test/expectdata/testsample_mock_cmd.c +1 -0
- data/vendor/unity/test/expectdata/testsample_mock_def.c +1 -0
- data/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/unity/test/expectdata/testsample_mock_head1.h +11 -0
- data/vendor/unity/test/expectdata/testsample_mock_new1.c +3 -2
- data/vendor/unity/test/expectdata/testsample_mock_new2.c +1 -0
- data/vendor/unity/test/expectdata/testsample_mock_param.c +1 -0
- data/vendor/unity/test/expectdata/testsample_mock_run1.c +3 -2
- data/vendor/unity/test/expectdata/testsample_mock_run2.c +1 -0
- data/vendor/unity/test/expectdata/testsample_mock_yaml.c +4 -3
- data/vendor/unity/test/expectdata/testsample_new1.c +2 -2
- data/vendor/unity/test/expectdata/testsample_run1.c +2 -2
- data/vendor/unity/test/expectdata/testsample_yaml.c +3 -3
- data/vendor/unity/test/rakefile +60 -60
- data/vendor/unity/test/rakefile_helper.rb +255 -249
- data/vendor/unity/test/targets/clang_file.yml +83 -0
- data/vendor/unity/test/targets/clang_strict.yml +83 -83
- data/vendor/unity/test/targets/gcc_32.yml +49 -49
- data/vendor/unity/test/targets/gcc_64.yml +50 -50
- data/vendor/unity/test/targets/gcc_auto_limits.yml +46 -46
- data/vendor/unity/test/targets/gcc_auto_sizeof.yml +47 -47
- data/vendor/unity/test/targets/gcc_auto_stdint.yml +58 -58
- data/vendor/unity/test/targets/gcc_manual_math.yml +46 -0
- data/vendor/unity/test/targets/hitech_picc18.yml +101 -101
- data/vendor/unity/test/targets/iar_arm_v4.yml +89 -89
- data/vendor/unity/test/targets/iar_arm_v5.yml +79 -79
- data/vendor/unity/test/targets/iar_arm_v5_3.yml +79 -79
- data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +93 -93
- data/vendor/unity/test/targets/iar_cortexm3_v5.yml +83 -83
- data/vendor/unity/test/targets/iar_msp430.yml +94 -94
- data/vendor/unity/test/targets/iar_sh2a_v6.yml +85 -85
- data/vendor/unity/test/testdata/mocksample.c +51 -51
- data/vendor/unity/test/testdata/sample.yml +8 -8
- data/vendor/unity/test/testdata/testsample.c +51 -51
- data/vendor/unity/test/tests/test_generate_test_runner.rb +102 -88
- data/vendor/unity/test/tests/testparameterized.c +104 -101
- data/vendor/unity/test/tests/testunity.c +3676 -3447
- metadata +549 -191
data/lib/ceedling/generator.rb
CHANGED
@@ -33,6 +33,7 @@ class Generator
|
|
33
33
|
command =
|
34
34
|
@tool_executor.build_command_line(
|
35
35
|
tool,
|
36
|
+
[], # extra per-file command line parameters
|
36
37
|
source,
|
37
38
|
dependencies,
|
38
39
|
object)
|
@@ -77,18 +78,18 @@ class Generator
|
|
77
78
|
end
|
78
79
|
end
|
79
80
|
|
80
|
-
def generate_object_file(tool, context, source, object, list='')
|
81
|
+
def generate_object_file(tool, operation, context, source, object, list='')
|
81
82
|
shell_result = {}
|
82
|
-
arg_hash = {:tool => tool, :context => context, :source => source, :object => object, :list => list}
|
83
|
+
arg_hash = {:tool => tool, :operation => operation, :context => context, :source => source, :object => object, :list => list}
|
83
84
|
@plugin_manager.pre_compile_execute(arg_hash)
|
84
85
|
|
85
86
|
@streaminator.stdout_puts("Compiling #{File.basename(arg_hash[:source])}...", Verbosity::NORMAL)
|
86
87
|
command =
|
87
88
|
@tool_executor.build_command_line( arg_hash[:tool],
|
89
|
+
@flaginator.flag_down( operation, context, source ),
|
88
90
|
arg_hash[:source],
|
89
91
|
arg_hash[:object],
|
90
|
-
arg_hash[:list]
|
91
|
-
@flaginator.flag_down( OPERATION_COMPILE_SYM, context, source ) )
|
92
|
+
arg_hash[:list])
|
92
93
|
|
93
94
|
begin
|
94
95
|
shell_result = @tool_executor.exec( command[:line], command[:options] )
|
@@ -109,10 +110,10 @@ class Generator
|
|
109
110
|
@streaminator.stdout_puts("Linking #{File.basename(arg_hash[:executable])}...", Verbosity::NORMAL)
|
110
111
|
command =
|
111
112
|
@tool_executor.build_command_line( arg_hash[:tool],
|
113
|
+
@flaginator.flag_down( OPERATION_LINK_SYM, context, executable ),
|
112
114
|
arg_hash[:objects],
|
113
115
|
arg_hash[:executable],
|
114
|
-
arg_hash[:map]
|
115
|
-
@flaginator.flag_down( OPERATION_LINK_SYM, context, executable ) )
|
116
|
+
arg_hash[:map])
|
116
117
|
|
117
118
|
begin
|
118
119
|
shell_result = @tool_executor.exec( command[:line], command[:options] )
|
@@ -145,7 +146,7 @@ class Generator
|
|
145
146
|
|
146
147
|
# Unity's exit code is equivalent to the number of failed tests, so we tell @tool_executor not to fail out if there are failures
|
147
148
|
# so that we can run all tests and collect all results
|
148
|
-
command = @tool_executor.build_command_line(arg_hash[:tool], arg_hash[:executable])
|
149
|
+
command = @tool_executor.build_command_line(arg_hash[:tool], [], arg_hash[:executable])
|
149
150
|
command[:options][:boom] = false
|
150
151
|
shell_result = @tool_executor.exec( command[:line], command[:options] )
|
151
152
|
|
@@ -1,21 +1,21 @@
|
|
1
1
|
|
2
2
|
|
3
3
|
class PreprocessinatorFileHandler
|
4
|
-
|
4
|
+
|
5
5
|
constructor :preprocessinator_extractor, :configurator, :tool_executor, :file_path_utils, :file_wrapper
|
6
6
|
|
7
|
-
|
7
|
+
|
8
8
|
def preprocess_file(filepath, includes)
|
9
9
|
preprocessed_filepath = @file_path_utils.form_preprocessed_file_filepath(filepath)
|
10
|
-
|
11
|
-
command = @tool_executor.build_command_line(@configurator.tools_test_file_preprocessor, filepath, preprocessed_filepath)
|
10
|
+
|
11
|
+
command = @tool_executor.build_command_line(@configurator.tools_test_file_preprocessor, [], filepath, preprocessed_filepath)
|
12
12
|
@tool_executor.exec(command[:line], command[:options])
|
13
|
-
|
13
|
+
|
14
14
|
contents = @preprocessinator_extractor.extract_base_file_from_preprocessed_expansion(preprocessed_filepath)
|
15
15
|
|
16
16
|
includes.each{|include| contents.unshift("#include \"#{include}\"")}
|
17
17
|
|
18
|
-
@file_wrapper.write(preprocessed_filepath, contents.join("\n"))
|
18
|
+
@file_wrapper.write(preprocessed_filepath, contents.join("\n"))
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -35,7 +35,7 @@ class PreprocessinatorIncludesHandler
|
|
35
35
|
|
36
36
|
# extract the make-style dependency rule telling the preprocessor to
|
37
37
|
# ignore the fact that it can't find the included files
|
38
|
-
command = @tool_executor.build_command_line(@configurator.tools_test_includes_preprocessor, temp_filepath)
|
38
|
+
command = @tool_executor.build_command_line(@configurator.tools_test_includes_preprocessor, [], temp_filepath)
|
39
39
|
shell_result = @tool_executor.exec(command[:line], command[:options])
|
40
40
|
|
41
41
|
return shell_result[:output]
|
@@ -7,10 +7,11 @@ if (RELEASE_BUILD_USE_ASSEMBLY)
|
|
7
7
|
rule(/#{PROJECT_RELEASE_BUILD_OUTPUT_ASM_PATH}\/#{'.+\\'+EXTENSION_OBJECT}$/ => [
|
8
8
|
proc do |task_name|
|
9
9
|
@ceedling[:file_finder].find_assembly_file(task_name)
|
10
|
-
end
|
10
|
+
end
|
11
11
|
]) do |object|
|
12
12
|
@ceedling[:generator].generate_object_file(
|
13
13
|
TOOLS_RELEASE_ASSEMBLER,
|
14
|
+
OPERATION_ASSEMBLE_SYM,
|
14
15
|
RELEASE_SYM,
|
15
16
|
object.source,
|
16
17
|
object.name )
|
@@ -21,10 +22,11 @@ end
|
|
21
22
|
rule(/#{PROJECT_RELEASE_BUILD_OUTPUT_C_PATH}\/#{'.+\\'+EXTENSION_OBJECT}$/ => [
|
22
23
|
proc do |task_name|
|
23
24
|
@ceedling[:file_finder].find_compilation_input_file(task_name)
|
24
|
-
end
|
25
|
+
end
|
25
26
|
]) do |object|
|
26
27
|
@ceedling[:generator].generate_object_file(
|
27
28
|
TOOLS_RELEASE_COMPILER,
|
29
|
+
OPERATION_COMPILE_SYM,
|
28
30
|
RELEASE_SYM,
|
29
31
|
object.source,
|
30
32
|
object.name,
|
@@ -59,7 +61,7 @@ namespace RELEASE_SYM do
|
|
59
61
|
@ceedling[:release_invoker].setup_and_invoke_c_objects( [compile.source] )
|
60
62
|
end
|
61
63
|
end
|
62
|
-
|
64
|
+
|
63
65
|
if (RELEASE_BUILD_USE_ASSEMBLY)
|
64
66
|
namespace :assemble do
|
65
67
|
rule(/^#{RELEASE_ASSEMBLE_TASK_ROOT}\S+#{'\\'+EXTENSION_ASSEMBLY}$/ => [ # assemble task names by regex
|
@@ -16,6 +16,7 @@ rule(/#{PROJECT_TEST_BUILD_OUTPUT_PATH}\/#{'.+\\'+EXTENSION_OBJECT}$/ => [
|
|
16
16
|
]) do |object|
|
17
17
|
@ceedling[:generator].generate_object_file(
|
18
18
|
TOOLS_TEST_COMPILER,
|
19
|
+
OPERATION_COMPILE_SYM,
|
19
20
|
TEST_SYM,
|
20
21
|
object.source,
|
21
22
|
object.name,
|
@@ -44,7 +45,7 @@ end
|
|
44
45
|
|
45
46
|
namespace TEST_SYM do
|
46
47
|
# use rules to increase efficiency for large projects (instead of iterating through all sources and creating defined tasks)
|
47
|
-
|
48
|
+
|
48
49
|
rule(/^#{TEST_TASK_ROOT}\S+$/ => [ # test task names by regex
|
49
50
|
proc do |task_name|
|
50
51
|
test = task_name.sub(/#{TEST_TASK_ROOT}/, '')
|
@@ -4,7 +4,7 @@ require 'ceedling/version'
|
|
4
4
|
|
5
5
|
desc "Display build environment version info."
|
6
6
|
task :version do
|
7
|
-
puts " Ceedling:: #{Ceedling::
|
7
|
+
puts " Ceedling:: #{Ceedling::Version::CEEDLING}"
|
8
8
|
|
9
9
|
[
|
10
10
|
['CException', File.join( CEEDLING_VENDOR, CEXCEPTION_ROOT_PATH)],
|
@@ -5,32 +5,31 @@ require 'ceedling/file_path_utils'
|
|
5
5
|
# forming these explicitly rather than depend on auxiliary dependencies so all scenarios are explicitly covered
|
6
6
|
|
7
7
|
file( @ceedling[:file_path_utils].form_test_build_object_filepath( UNITY_C_FILE ) => [
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
File.join( UNITY_VENDOR_PATH, UNITY_LIB_PATH, UNITY_C_FILE ),
|
9
|
+
File.join( UNITY_VENDOR_PATH, UNITY_LIB_PATH, UNITY_H_FILE ),
|
10
|
+
File.join( UNITY_VENDOR_PATH, UNITY_LIB_PATH, UNITY_INTERNALS_H_FILE ) ]
|
11
11
|
)
|
12
12
|
|
13
13
|
|
14
14
|
if (PROJECT_USE_MOCKS)
|
15
15
|
file( @ceedling[:file_path_utils].form_test_build_object_filepath( CMOCK_C_FILE ) => [
|
16
|
-
|
17
|
-
|
16
|
+
File.join( CMOCK_VENDOR_PATH, CMOCK_LIB_PATH, CMOCK_C_FILE ),
|
17
|
+
File.join( CMOCK_VENDOR_PATH, CMOCK_LIB_PATH, CMOCK_H_FILE ) ]
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
22
|
if (PROJECT_USE_EXCEPTIONS)
|
23
23
|
file( @ceedling[:file_path_utils].form_test_build_object_filepath( CEXCEPTION_C_FILE ) => [
|
24
|
-
|
25
|
-
|
24
|
+
File.join( CEXCEPTION_VENDOR_PATH, CEXCEPTION_LIB_PATH, CEXCEPTION_C_FILE ),
|
25
|
+
File.join( CEXCEPTION_VENDOR_PATH, CEXCEPTION_LIB_PATH, CEXCEPTION_H_FILE ) ]
|
26
26
|
)
|
27
27
|
end
|
28
28
|
|
29
29
|
|
30
30
|
if (PROJECT_USE_EXCEPTIONS and PROJECT_RELEASE_BUILD)
|
31
31
|
file( @ceedling[:file_path_utils].form_release_build_c_object_filepath( CEXCEPTION_C_FILE ) => [
|
32
|
-
|
33
|
-
|
32
|
+
File.join( CEXCEPTION_VENDOR_PATH, CEXCEPTION_LIB_PATH, CEXCEPTION_C_FILE ),
|
33
|
+
File.join( CEXCEPTION_VENDOR_PATH, CEXCEPTION_LIB_PATH, CEXCEPTION_H_FILE ) ]
|
34
34
|
)
|
35
35
|
end
|
36
|
-
|
@@ -17,13 +17,13 @@ class ToolExecutor
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# build up a command line from yaml provided config
|
20
|
-
def build_command_line(tool_config, *args)
|
20
|
+
def build_command_line(tool_config, extra_params, *args)
|
21
21
|
@tool_name = tool_config[:name]
|
22
22
|
@executable = tool_config[:executable]
|
23
23
|
|
24
24
|
command = {}
|
25
25
|
|
26
|
-
# basic premise is to iterate top to bottom through arguments using '$' as
|
26
|
+
# basic premise is to iterate top to bottom through arguments using '$' as
|
27
27
|
# a string replacement indicator to expand globals or inline yaml arrays
|
28
28
|
# into command line arguments via substitution strings
|
29
29
|
# executable must be quoted if it includes spaces (common on windows)
|
@@ -31,14 +31,15 @@ class ToolExecutor
|
|
31
31
|
executable = "\"#{executable}\"" if executable.include?(' ')
|
32
32
|
command[:line] = [
|
33
33
|
executable,
|
34
|
+
extra_params.join(' ').strip,
|
34
35
|
build_arguments(tool_config[:arguments], *args),
|
35
|
-
].join(' ').strip
|
36
|
+
].reject{|s| s.nil? || s.empty?}.join(' ').strip
|
36
37
|
|
37
38
|
command[:options] = {
|
38
39
|
:stderr_redirect => @tool_executor_helper.stderr_redirection(tool_config, @configurator.project_logging),
|
39
40
|
:background_exec => tool_config[:background_exec]
|
40
41
|
}
|
41
|
-
|
42
|
+
|
42
43
|
return command
|
43
44
|
end
|
44
45
|
|
@@ -59,32 +60,32 @@ class ToolExecutor
|
|
59
60
|
].flatten.compact.join(' ')
|
60
61
|
|
61
62
|
shell_result = {}
|
62
|
-
|
63
|
+
|
63
64
|
# depending on background exec option, we shell out differently
|
64
65
|
if (options[:background_exec] != BackgroundExec::NONE)
|
65
66
|
shell_result = @system_wrapper.shell_system( command_line )
|
66
67
|
else
|
67
68
|
shell_result = @system_wrapper.shell_backticks( command_line )
|
68
69
|
end
|
69
|
-
|
70
|
+
|
70
71
|
@tool_executor_helper.print_happy_results( command_line, shell_result, options[:boom] )
|
71
72
|
@tool_executor_helper.print_error_results( command_line, shell_result, options[:boom] )
|
72
|
-
|
73
|
+
|
73
74
|
# go boom if exit code isn't 0 (but in some cases we don't want a non-0 exit code to raise)
|
74
75
|
raise ShellExecutionException.new(shell_result) if ((shell_result[:exit_code] != 0) and options[:boom])
|
75
|
-
|
76
|
+
|
76
77
|
return shell_result
|
77
78
|
end
|
78
79
|
|
79
|
-
|
80
|
+
|
80
81
|
private #############################
|
81
82
|
|
82
|
-
|
83
|
+
|
83
84
|
def build_arguments(config, *args)
|
84
85
|
build_string = ''
|
85
|
-
|
86
|
+
|
86
87
|
return nil if (config.nil?)
|
87
|
-
|
88
|
+
|
88
89
|
# iterate through each argument
|
89
90
|
|
90
91
|
# the yaml blob array needs to be flattened so that yaml substitution
|
@@ -92,7 +93,7 @@ class ToolExecutor
|
|
92
93
|
# dereferenced
|
93
94
|
config.flatten.each do |element|
|
94
95
|
argument = ''
|
95
|
-
|
96
|
+
|
96
97
|
case(element)
|
97
98
|
# if we find a simple string then look for string replacement operators
|
98
99
|
# and expand with the parameters in this method's argument list
|
@@ -104,7 +105,7 @@ class ToolExecutor
|
|
104
105
|
|
105
106
|
build_string.concat("#{argument} ") if (argument.length > 0)
|
106
107
|
end
|
107
|
-
|
108
|
+
|
108
109
|
build_string.strip!
|
109
110
|
return build_string if (build_string.length > 0)
|
110
111
|
return nil
|
@@ -129,7 +130,7 @@ class ToolExecutor
|
|
129
130
|
match = /#{Regexp.escape($1)}/
|
130
131
|
to_process = args[args_index]
|
131
132
|
end
|
132
|
-
|
133
|
+
|
133
134
|
# simple string argument: replace escaped '\$' and strip
|
134
135
|
element.sub!(/\\\$/, '$')
|
135
136
|
element.strip!
|
@@ -151,11 +152,11 @@ class ToolExecutor
|
|
151
152
|
if (build_string =~ RUBY_STRING_REPLACEMENT_PATTERN)
|
152
153
|
build_string.replace(@system_wrapper.module_eval(build_string))
|
153
154
|
end
|
154
|
-
|
155
|
+
|
155
156
|
return build_string.strip
|
156
157
|
end
|
157
158
|
|
158
|
-
|
159
|
+
|
159
160
|
# handle argument hash: keys are substitution strings, values are data to be expanded within substitution strings
|
160
161
|
def dehashify_argument_elements(hash)
|
161
162
|
build_string = ''
|
@@ -170,10 +171,10 @@ class ToolExecutor
|
|
170
171
|
@streaminator.stderr_puts("ERROR: Tool '#{@tool_name}' could not expand nil elements for substitution string '#{substitution}'.", Verbosity::ERRORS)
|
171
172
|
raise
|
172
173
|
end
|
173
|
-
|
174
|
+
|
174
175
|
# array-ify expansion input if only a single string
|
175
176
|
expansion = ((expand.class == String) ? [expand] : expand)
|
176
|
-
|
177
|
+
|
177
178
|
expansion.each do |item|
|
178
179
|
# code eval substitution
|
179
180
|
if (item =~ RUBY_EVAL_REPLACEMENT_PATTERN)
|
@@ -194,13 +195,13 @@ class ToolExecutor
|
|
194
195
|
elements << item
|
195
196
|
elsif (item.class == String)
|
196
197
|
@streaminator.stderr_puts("ERROR: Tool '#{@tool_name}' cannot expand nonexistent value '#{item}' for substitution string '#{substitution}'.", Verbosity::ERRORS)
|
197
|
-
raise
|
198
|
+
raise
|
198
199
|
else
|
199
200
|
@streaminator.stderr_puts("ERROR: Tool '#{@tool_name}' cannot expand value having type '#{item.class}' for substitution string '#{substitution}'.", Verbosity::ERRORS)
|
200
|
-
raise
|
201
|
+
raise
|
201
202
|
end
|
202
203
|
end
|
203
|
-
|
204
|
+
|
204
205
|
# expand elements (whether string or array) into substitution string & replace escaped '\$'
|
205
206
|
elements.flatten!
|
206
207
|
elements.each do |element|
|
data/lib/ceedling/version.rb
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
module Ceedling
|
3
3
|
module Version
|
4
4
|
# @private
|
5
|
-
GEM = "0.
|
5
|
+
GEM = "0.19.0"
|
6
6
|
# @private
|
7
7
|
CEEDLING = GEM
|
8
8
|
# @private
|
9
9
|
CEXCEPTION = "1.3.17"
|
10
10
|
# @private
|
11
|
-
CMOCK = "2.
|
11
|
+
CMOCK = "2.4.0"
|
12
12
|
# @private
|
13
|
-
UNITY = "2.
|
13
|
+
UNITY = "2.3.0"
|
14
14
|
end
|
15
15
|
end
|
@@ -117,9 +117,9 @@ class ModuleGenerator < Plugin
|
|
117
117
|
}
|
118
118
|
|
119
119
|
location = File.dirname(path.gsub('\\', '/'))
|
120
|
-
location.sub!(/^\/?#{@context[:paths][:base]}\/?/i, '')
|
121
|
-
location.sub!(/^\/?#{@context[:paths][:src]}\/?/i, '')
|
122
|
-
location.sub!(/^\/?#{@context[:paths][:test]}\/?/i, '')
|
120
|
+
location.sub!(/^\/?#{Regexp.escape(@context[:paths][:base])}\/?/i, '')
|
121
|
+
location.sub!(/^\/?#{Regexp.escape(@context[:paths][:src])}\/?/i, '')
|
122
|
+
location.sub!(/^\/?#{Regexp.escape(@context[:paths][:test])}\/?/i, '')
|
123
123
|
|
124
124
|
@context[:location] = location
|
125
125
|
|
@@ -57,7 +57,7 @@ class XmlTestsReport < Plugin
|
|
57
57
|
result[:collection].each do |item|
|
58
58
|
filename = File.join( result[:source][:path], result[:source][:file] )
|
59
59
|
|
60
|
-
stream.puts "\t\t<
|
60
|
+
stream.puts "\t\t<Test id=\"#{@test_counter}\">"
|
61
61
|
stream.puts "\t\t\t<Name>#{filename}::#{item[:test]}</Name>"
|
62
62
|
stream.puts "\t\t\t<FailureType>Assertion</FailureType>"
|
63
63
|
stream.puts "\t\t\t<Location>"
|
@@ -46,7 +46,7 @@ describe PreprocessinatorIncludesHandler do
|
|
46
46
|
expect(@file_wrapper).to receive(:write).with('_some_source_file.c', contents_double)
|
47
47
|
expect(@configurator).to receive(:tools_test_includes_preprocessor).and_return('cpp')
|
48
48
|
command_double = double('command-double')
|
49
|
-
expect(@tool_executor).to receive(:build_command_line).with('cpp', '_some_source_file.c').and_return(command_double)
|
49
|
+
expect(@tool_executor).to receive(:build_command_line).with('cpp', [], '_some_source_file.c').and_return(command_double)
|
50
50
|
expect(command_double).to receive(:[]).with(:line).and_return('cpp')
|
51
51
|
expect(command_double).to receive(:[]).with(:options).and_return(['arg1','arg2'])
|
52
52
|
output_double = double('output-double')
|
data/spec/spec_system_helper.rb
CHANGED
@@ -1,192 +1,192 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'tmpdir'
|
3
|
-
require 'yaml'
|
4
|
-
|
5
|
-
def test_asset_path(asset_file_name)
|
6
|
-
File.join(File.dirname(__FILE__), '..', 'assets', asset_file_name)
|
7
|
-
end
|
8
|
-
|
9
|
-
def convert_slashes(path)
|
10
|
-
if RUBY_PLATFORM.downcase.match(/mingw|win32/)
|
11
|
-
path.gsub("/","\\")
|
12
|
-
else
|
13
|
-
path
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
class GemDirLayout
|
18
|
-
attr_reader :gem_dir_base_name
|
19
|
-
|
20
|
-
def initialize(install_dir)
|
21
|
-
@gem_dir_base_name = "gems"
|
22
|
-
@d = File.join install_dir, @gem_dir_base_name
|
23
|
-
FileUtils.mkdir_p @d
|
24
|
-
end
|
25
|
-
|
26
|
-
def install_dir; convert_slashes(@d) end
|
27
|
-
def bin; File.join(@d, 'bin') end
|
28
|
-
def lib; File.join(@d, 'lib') end
|
29
|
-
end
|
30
|
-
|
31
|
-
class SystemContext
|
32
|
-
class VerificationFailed < Exception; end
|
33
|
-
class InvalidBackupEnv < Exception; end
|
34
|
-
|
35
|
-
attr_reader :dir, :gem
|
36
|
-
|
37
|
-
def initialize
|
38
|
-
@dir = Dir.mktmpdir
|
39
|
-
@gem = GemDirLayout.new(@dir)
|
40
|
-
end
|
41
|
-
|
42
|
-
def done!
|
43
|
-
FileUtils.rm_rf(@dir)
|
44
|
-
end
|
45
|
-
|
46
|
-
def deploy_gem
|
47
|
-
git_repo = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
48
|
-
bundler_gem_file_data = [ %Q{source "http://rubygems.org/"},
|
49
|
-
%Q{gem "rake"},
|
50
|
-
%Q{gem "ceedling", :path => '#{git_repo.to_s}'}
|
51
|
-
].join("\n")
|
52
|
-
|
53
|
-
File.open(File.join(@dir, "Gemfile"), "w+") do |f|
|
54
|
-
f.write(bundler_gem_file_data)
|
55
|
-
end
|
56
|
-
|
57
|
-
Dir.chdir @dir do
|
58
|
-
with_constrained_env do
|
59
|
-
`bundle install --path #{@gem.install_dir}`
|
60
|
-
checks = ["bundle exec ruby -S ceedling 2>&1"]
|
61
|
-
checks.each do |c|
|
62
|
-
`#{c}`
|
63
|
-
raise VerificationFailed.new(c) unless $?.success?
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
# Does a few things:
|
70
|
-
# - Configures the environment.
|
71
|
-
# - Runs the command from the temporary context directory.
|
72
|
-
# - Restores everything to where it was when finished.
|
73
|
-
def context_exec(cmd, *args)
|
74
|
-
with_context do
|
75
|
-
`#{args.unshift(cmd).join(" ")}`
|
76
|
-
end
|
77
|
-
end
|
78
|
-
|
79
|
-
def with_context
|
80
|
-
Dir.chdir @dir do |current_dir|
|
81
|
-
with_constrained_env do
|
82
|
-
ENV['RUBYLIB'] = @gem.lib
|
83
|
-
ENV['RUBYPATH'] = @gem.bin
|
84
|
-
|
85
|
-
yield
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
def backup_env
|
91
|
-
# Force a deep clone. Hacktacular, but works.
|
92
|
-
@_env = YAML.load(ENV.to_hash.to_yaml)
|
93
|
-
end
|
94
|
-
|
95
|
-
def reduce_env(destroy_keys=[])
|
96
|
-
ENV.keys.each {|k| ENV.delete(k) if destroy_keys.include?(k) }
|
97
|
-
end
|
98
|
-
|
99
|
-
def constrain_env
|
100
|
-
destroy_keys = %w{BUNDLE_GEMFILE BUNDLE_BIN_PATH RUBYOPT}
|
101
|
-
reduce_env(destroy_keys)
|
102
|
-
end
|
103
|
-
|
104
|
-
def restore_env
|
105
|
-
if @_env
|
106
|
-
@_env.each_pair {|k,v| ENV[k] = v}
|
107
|
-
else
|
108
|
-
raise InvalidBackupEnv.new
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
def with_constrained_env
|
113
|
-
begin
|
114
|
-
backup_env
|
115
|
-
constrain_env
|
116
|
-
yield
|
117
|
-
ensure
|
118
|
-
restore_env
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
module CeedlingTestCases
|
124
|
-
def can_create_projects
|
125
|
-
@c.with_context do
|
126
|
-
Dir.chdir @proj_name do
|
127
|
-
expect(File.exists?("project.yml")).to eq true
|
128
|
-
expect(File.exists?("rakefile.rb")).to eq true
|
129
|
-
expect(File.exists?("src")).to eq true
|
130
|
-
expect(File.exists?("test")).to eq true
|
131
|
-
end
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
def contains_a_vendor_directory
|
136
|
-
@c.with_context do
|
137
|
-
Dir.chdir @proj_name do
|
138
|
-
expect(File.exists?("vendor/ceedling")).to eq true
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
|
-
def does_not_contain_a_vendor_directory
|
144
|
-
@c.with_context do
|
145
|
-
Dir.chdir @proj_name do
|
146
|
-
expect(File.exists?("vendor/ceedling")).to eq false
|
147
|
-
end
|
148
|
-
end
|
149
|
-
end
|
150
|
-
|
151
|
-
def contains_documentation
|
152
|
-
@c.with_context do
|
153
|
-
Dir.chdir @proj_name do
|
154
|
-
expect(Dir["vendor/ceedling/docs/*.pdf"].length).to eq 4
|
155
|
-
end
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
def does_not_contain_documentation
|
160
|
-
@c.with_context do
|
161
|
-
Dir.chdir @proj_name do
|
162
|
-
expect(File.exists?("vendor/ceedling/docs")).to eq false
|
163
|
-
expect(Dir["vendor/ceedling/**/*.pdf"].length).to eq 0
|
164
|
-
end
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
def can_test_projects
|
169
|
-
@c.with_context do
|
170
|
-
Dir.chdir @proj_name do
|
171
|
-
FileUtils.cp test_asset_path("example_file.h"), 'src'
|
172
|
-
FileUtils.cp test_asset_path("example_file.c"), 'src'
|
173
|
-
FileUtils.cp test_asset_path("test_example_file.c"), 'test'
|
174
|
-
|
175
|
-
output = `bundle exec ruby -S rake test:all 2>&1`
|
176
|
-
expect(output).to match(/TESTED:\s+2/)
|
177
|
-
expect(output).to match(/PASSED:\s+1/)
|
178
|
-
expect(output).to match(/IGNORED:\s+0/)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
end
|
182
|
-
|
183
|
-
def can_use_the_module_plugin
|
184
|
-
@c.with_context do
|
185
|
-
Dir.chdir @proj_name do
|
186
|
-
`bundle exec ruby -S rake module:create[ponies] 2>&1`
|
187
|
-
output = `bundle exec ruby -S rake test:all 2>&1`
|
188
|
-
expect(output).to match(/IGNORED:\s+1/)
|
189
|
-
end
|
190
|
-
end
|
191
|
-
end
|
192
|
-
end
|
1
|
+
require 'fileutils'
|
2
|
+
require 'tmpdir'
|
3
|
+
require 'yaml'
|
4
|
+
|
5
|
+
def test_asset_path(asset_file_name)
|
6
|
+
File.join(File.dirname(__FILE__), '..', 'assets', asset_file_name)
|
7
|
+
end
|
8
|
+
|
9
|
+
def convert_slashes(path)
|
10
|
+
if RUBY_PLATFORM.downcase.match(/mingw|win32/)
|
11
|
+
path.gsub("/","\\")
|
12
|
+
else
|
13
|
+
path
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
class GemDirLayout
|
18
|
+
attr_reader :gem_dir_base_name
|
19
|
+
|
20
|
+
def initialize(install_dir)
|
21
|
+
@gem_dir_base_name = "gems"
|
22
|
+
@d = File.join install_dir, @gem_dir_base_name
|
23
|
+
FileUtils.mkdir_p @d
|
24
|
+
end
|
25
|
+
|
26
|
+
def install_dir; convert_slashes(@d) end
|
27
|
+
def bin; File.join(@d, 'bin') end
|
28
|
+
def lib; File.join(@d, 'lib') end
|
29
|
+
end
|
30
|
+
|
31
|
+
class SystemContext
|
32
|
+
class VerificationFailed < Exception; end
|
33
|
+
class InvalidBackupEnv < Exception; end
|
34
|
+
|
35
|
+
attr_reader :dir, :gem
|
36
|
+
|
37
|
+
def initialize
|
38
|
+
@dir = Dir.mktmpdir
|
39
|
+
@gem = GemDirLayout.new(@dir)
|
40
|
+
end
|
41
|
+
|
42
|
+
def done!
|
43
|
+
FileUtils.rm_rf(@dir)
|
44
|
+
end
|
45
|
+
|
46
|
+
def deploy_gem
|
47
|
+
git_repo = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
48
|
+
bundler_gem_file_data = [ %Q{source "http://rubygems.org/"},
|
49
|
+
%Q{gem "rake"},
|
50
|
+
%Q{gem "ceedling", :path => '#{git_repo.to_s}'}
|
51
|
+
].join("\n")
|
52
|
+
|
53
|
+
File.open(File.join(@dir, "Gemfile"), "w+") do |f|
|
54
|
+
f.write(bundler_gem_file_data)
|
55
|
+
end
|
56
|
+
|
57
|
+
Dir.chdir @dir do
|
58
|
+
with_constrained_env do
|
59
|
+
`bundle install --path #{@gem.install_dir}`
|
60
|
+
checks = ["bundle exec ruby -S ceedling 2>&1"]
|
61
|
+
checks.each do |c|
|
62
|
+
`#{c}`
|
63
|
+
raise VerificationFailed.new(c) unless $?.success?
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# Does a few things:
|
70
|
+
# - Configures the environment.
|
71
|
+
# - Runs the command from the temporary context directory.
|
72
|
+
# - Restores everything to where it was when finished.
|
73
|
+
def context_exec(cmd, *args)
|
74
|
+
with_context do
|
75
|
+
`#{args.unshift(cmd).join(" ")}`
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
def with_context
|
80
|
+
Dir.chdir @dir do |current_dir|
|
81
|
+
with_constrained_env do
|
82
|
+
ENV['RUBYLIB'] = @gem.lib
|
83
|
+
ENV['RUBYPATH'] = @gem.bin
|
84
|
+
|
85
|
+
yield
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def backup_env
|
91
|
+
# Force a deep clone. Hacktacular, but works.
|
92
|
+
@_env = YAML.load(ENV.to_hash.to_yaml)
|
93
|
+
end
|
94
|
+
|
95
|
+
def reduce_env(destroy_keys=[])
|
96
|
+
ENV.keys.each {|k| ENV.delete(k) if destroy_keys.include?(k) }
|
97
|
+
end
|
98
|
+
|
99
|
+
def constrain_env
|
100
|
+
destroy_keys = %w{BUNDLE_GEMFILE BUNDLE_BIN_PATH RUBYOPT}
|
101
|
+
reduce_env(destroy_keys)
|
102
|
+
end
|
103
|
+
|
104
|
+
def restore_env
|
105
|
+
if @_env
|
106
|
+
@_env.each_pair {|k,v| ENV[k] = v}
|
107
|
+
else
|
108
|
+
raise InvalidBackupEnv.new
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
def with_constrained_env
|
113
|
+
begin
|
114
|
+
backup_env
|
115
|
+
constrain_env
|
116
|
+
yield
|
117
|
+
ensure
|
118
|
+
restore_env
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
module CeedlingTestCases
|
124
|
+
def can_create_projects
|
125
|
+
@c.with_context do
|
126
|
+
Dir.chdir @proj_name do
|
127
|
+
expect(File.exists?("project.yml")).to eq true
|
128
|
+
expect(File.exists?("rakefile.rb")).to eq true
|
129
|
+
expect(File.exists?("src")).to eq true
|
130
|
+
expect(File.exists?("test")).to eq true
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
def contains_a_vendor_directory
|
136
|
+
@c.with_context do
|
137
|
+
Dir.chdir @proj_name do
|
138
|
+
expect(File.exists?("vendor/ceedling")).to eq true
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
def does_not_contain_a_vendor_directory
|
144
|
+
@c.with_context do
|
145
|
+
Dir.chdir @proj_name do
|
146
|
+
expect(File.exists?("vendor/ceedling")).to eq false
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
def contains_documentation
|
152
|
+
@c.with_context do
|
153
|
+
Dir.chdir @proj_name do
|
154
|
+
expect(Dir["vendor/ceedling/docs/*.pdf"].length).to eq 4
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
def does_not_contain_documentation
|
160
|
+
@c.with_context do
|
161
|
+
Dir.chdir @proj_name do
|
162
|
+
expect(File.exists?("vendor/ceedling/docs")).to eq false
|
163
|
+
expect(Dir["vendor/ceedling/**/*.pdf"].length).to eq 0
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
def can_test_projects
|
169
|
+
@c.with_context do
|
170
|
+
Dir.chdir @proj_name do
|
171
|
+
FileUtils.cp test_asset_path("example_file.h"), 'src'
|
172
|
+
FileUtils.cp test_asset_path("example_file.c"), 'src'
|
173
|
+
FileUtils.cp test_asset_path("test_example_file.c"), 'test'
|
174
|
+
|
175
|
+
output = `bundle exec ruby -S rake test:all 2>&1`
|
176
|
+
expect(output).to match(/TESTED:\s+2/)
|
177
|
+
expect(output).to match(/PASSED:\s+1/)
|
178
|
+
expect(output).to match(/IGNORED:\s+0/)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
def can_use_the_module_plugin
|
184
|
+
@c.with_context do
|
185
|
+
Dir.chdir @proj_name do
|
186
|
+
`bundle exec ruby -S rake module:create[ponies] 2>&1`
|
187
|
+
output = `bundle exec ruby -S rake test:all 2>&1`
|
188
|
+
expect(output).to match(/IGNORED:\s+1/)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|