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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 815958f80bc12e86b6441872fe5822ec2f2f9ddb
|
4
|
+
data.tar.gz: 6a6e083623424fc18b14c582f5b8c749271c2c76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 830683a53aa10672251438c079224bb00c53aa776c3722ea87b476b68a223440d1677441596244448561a4ff8461e2081ee4df90bd22de4cd85c154b816cefc7
|
7
|
+
data.tar.gz: f7db6b3fc409f5a49e5587d12d6d69870e8cfd1873a4f54e3ab183df64ae4026239f88aba673daabc3b034696cefb874b7a126be912adfb0b2338a37e71c999c
|
data/Gemfile.lock
CHANGED
@@ -5,21 +5,22 @@ GEM
|
|
5
5
|
diff-lcs (1.2.5)
|
6
6
|
diy (1.1.2)
|
7
7
|
constructor (>= 1.0.0)
|
8
|
-
rake (10.
|
9
|
-
require_all (1.3.
|
8
|
+
rake (10.5.0)
|
9
|
+
require_all (1.3.3)
|
10
10
|
rr (1.1.2)
|
11
|
-
rspec (3.
|
12
|
-
rspec-core (~> 3.
|
13
|
-
rspec-expectations (~> 3.
|
14
|
-
rspec-mocks (~> 3.
|
15
|
-
rspec-core (3.
|
16
|
-
rspec-support (~> 3.
|
17
|
-
rspec-expectations (3.0
|
11
|
+
rspec (3.4.0)
|
12
|
+
rspec-core (~> 3.4.0)
|
13
|
+
rspec-expectations (~> 3.4.0)
|
14
|
+
rspec-mocks (~> 3.4.0)
|
15
|
+
rspec-core (3.4.2)
|
16
|
+
rspec-support (~> 3.4.0)
|
17
|
+
rspec-expectations (3.4.0)
|
18
18
|
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.
|
20
|
-
rspec-mocks (3.
|
21
|
-
|
22
|
-
|
19
|
+
rspec-support (~> 3.4.0)
|
20
|
+
rspec-mocks (3.4.1)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.4.0)
|
23
|
+
rspec-support (3.4.1)
|
23
24
|
thor (0.19.1)
|
24
25
|
|
25
26
|
PLATFORMS
|
@@ -34,3 +35,6 @@ DEPENDENCIES
|
|
34
35
|
rr
|
35
36
|
rspec (~> 3.0)
|
36
37
|
thor
|
38
|
+
|
39
|
+
BUNDLED WITH
|
40
|
+
1.11.2
|
data/ceedling-0.18.0.gem
ADDED
Binary file
|
data/docs/CeedlingPacket.md
CHANGED
@@ -202,11 +202,13 @@ Alternatively, from scratch:
|
|
202
202
|
(tasks available to tie to `default` are listed in the next
|
203
203
|
section):
|
204
204
|
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
205
|
+
```ruby
|
206
|
+
load '<path>/ceedling/lib/rakefile.rb'
|
207
|
+
# ex. run all tests & build release artifact
|
208
|
+
task :default => ['test:all', :release]
|
209
|
+
# namespaced tasks must be quoted
|
210
|
+
# top-level tasks are Ruby symbols denoted by a leading ':'`
|
211
|
+
```
|
210
212
|
|
211
213
|
6. Create your project YAML file (more on this later in this document).
|
212
214
|
`project.yml` is the default file name Ceedling recognizes
|
@@ -162,19 +162,6 @@ class ConfiguratorBuilder
|
|
162
162
|
end
|
163
163
|
|
164
164
|
|
165
|
-
def set_library_build_info_filepaths(hash)
|
166
|
-
# Notes:
|
167
|
-
# - Dependency on a change to our input configuration hash is handled elsewhere as it is
|
168
|
-
# dynamically formed during ceedling's execution
|
169
|
-
# - Compiled vendor dependencies like cmock.o, unity.o, cexception.o are handled below;
|
170
|
-
# here we're interested only in ceedling-based code generation dependencies
|
171
|
-
out_hash = {
|
172
|
-
:cmock_build_info_filepath => FilePathUtils::form_ceedling_vendor_path('cmock/release', 'build.info')
|
173
|
-
}
|
174
|
-
return out_hash
|
175
|
-
end
|
176
|
-
|
177
|
-
|
178
165
|
def set_release_target(in_hash)
|
179
166
|
return {} if (not in_hash[:project_release_build])
|
180
167
|
|
@@ -231,7 +218,7 @@ class ConfiguratorBuilder
|
|
231
218
|
|
232
219
|
def collect_source_include_vendor_paths(in_hash)
|
233
220
|
extra_paths = []
|
234
|
-
extra_paths <<
|
221
|
+
extra_paths << File.join(in_hash[:cexception_path], CEXCEPTION_LIB_PATH) if (in_hash[:project_use_exceptions])
|
235
222
|
|
236
223
|
return {
|
237
224
|
:collection_paths_source_include_vendor =>
|
@@ -336,10 +323,10 @@ class ConfiguratorBuilder
|
|
336
323
|
in_hash[:collection_paths_support] +
|
337
324
|
in_hash[:collection_paths_source] +
|
338
325
|
in_hash[:collection_paths_include] +
|
339
|
-
[
|
326
|
+
[File.join(in_hash[:unity_vendor_path], UNITY_LIB_PATH)]
|
340
327
|
|
341
|
-
paths <<
|
342
|
-
paths <<
|
328
|
+
paths << File.join(in_hash[:cexception_vendor_path], CEXCEPTION_LIB_PATH) if (in_hash[:project_use_exceptions])
|
329
|
+
paths << File.join(in_hash[:cmock_vendor_path], CMOCK_LIB_PATH) if (in_hash[:project_use_mocks])
|
343
330
|
|
344
331
|
paths.each do |path|
|
345
332
|
all_input.include( File.join(path, "*#{in_hash[:extension_header]}") )
|
@@ -396,6 +383,8 @@ class ConfiguratorBuilder
|
|
396
383
|
|
397
384
|
objects = [UNITY_C_FILE]
|
398
385
|
|
386
|
+
in_hash[:files_support].each { |file| objects << File.basename(file) }
|
387
|
+
|
399
388
|
# we don't include paths here because use of plugins or mixing different compilers may require different build paths
|
400
389
|
objects << CEXCEPTION_C_FILE if (in_hash[:project_use_exceptions])
|
401
390
|
objects << CMOCK_C_FILE if (in_hash[:project_use_mocks])
|
@@ -419,10 +408,10 @@ class ConfiguratorBuilder
|
|
419
408
|
|
420
409
|
def get_vendor_paths(in_hash)
|
421
410
|
vendor_paths = []
|
422
|
-
vendor_paths <<
|
423
|
-
vendor_paths <<
|
424
|
-
vendor_paths <<
|
425
|
-
vendor_paths << in_hash[:cmock_mock_path]
|
411
|
+
vendor_paths << File.join(in_hash[:unity_vendor_path], UNITY_LIB_PATH)
|
412
|
+
vendor_paths << File.join(in_hash[:cexception_vendor_path], CEXCEPTION_LIB_PATH) if (in_hash[:project_use_exceptions])
|
413
|
+
vendor_paths << File.join(in_hash[:cmock_vendor_path], CMOCK_LIB_PATH) if (in_hash[:project_use_mocks])
|
414
|
+
vendor_paths << in_hash[:cmock_mock_path] if (in_hash[:project_use_mocks])
|
426
415
|
|
427
416
|
return vendor_paths
|
428
417
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
# add sort-ability to symbol so we can order keys array in hash for test-ability
|
2
|
+
# add sort-ability to symbol so we can order keys array in hash for test-ability
|
3
3
|
class Symbol
|
4
4
|
include Comparable
|
5
5
|
|
@@ -10,25 +10,24 @@ end
|
|
10
10
|
|
11
11
|
|
12
12
|
class ConfiguratorSetup
|
13
|
-
|
13
|
+
|
14
14
|
constructor :configurator_builder, :configurator_validator, :configurator_plugins, :stream_wrapper
|
15
|
-
|
16
|
-
|
15
|
+
|
16
|
+
|
17
17
|
def build_project_config(config, flattened_config)
|
18
18
|
### flesh out config
|
19
19
|
@configurator_builder.clean(flattened_config)
|
20
|
-
|
20
|
+
|
21
21
|
### add to hash values we build up from configuration & file system contents
|
22
22
|
flattened_config.merge!(@configurator_builder.set_build_paths(flattened_config))
|
23
23
|
flattened_config.merge!(@configurator_builder.set_force_build_filepaths(flattened_config))
|
24
24
|
flattened_config.merge!(@configurator_builder.set_rakefile_components(flattened_config))
|
25
|
-
flattened_config.merge!(@configurator_builder.set_library_build_info_filepaths(flattened_config))
|
26
25
|
flattened_config.merge!(@configurator_builder.set_release_target(flattened_config))
|
27
26
|
flattened_config.merge!(@configurator_builder.collect_project_options(flattened_config))
|
28
|
-
|
27
|
+
|
29
28
|
### iterate through all entries in paths section and expand any & all globs to actual paths
|
30
29
|
flattened_config.merge!(@configurator_builder.expand_all_path_globs(flattened_config))
|
31
|
-
|
30
|
+
|
32
31
|
flattened_config.merge!(@configurator_builder.collect_vendor_paths(flattened_config))
|
33
32
|
flattened_config.merge!(@configurator_builder.collect_source_and_include_paths(flattened_config))
|
34
33
|
flattened_config.merge!(@configurator_builder.collect_source_include_vendor_paths(flattened_config))
|
@@ -47,13 +46,13 @@ class ConfiguratorSetup
|
|
47
46
|
return flattened_config
|
48
47
|
end
|
49
48
|
|
50
|
-
|
49
|
+
|
51
50
|
def build_constants_and_accessors(config, context)
|
52
51
|
@configurator_builder.build_global_constants(config)
|
53
52
|
@configurator_builder.build_accessor_methods(config, context)
|
54
53
|
end
|
55
|
-
|
56
|
-
|
54
|
+
|
55
|
+
|
57
56
|
def validate_required_sections(config)
|
58
57
|
validation = []
|
59
58
|
validation << @configurator_validator.exists?(config, :project)
|
@@ -94,7 +93,7 @@ class ConfiguratorSetup
|
|
94
93
|
return false if (validation.include?(false))
|
95
94
|
return true
|
96
95
|
end
|
97
|
-
|
96
|
+
|
98
97
|
def validate_tools(config)
|
99
98
|
validation = []
|
100
99
|
|
@@ -109,15 +108,15 @@ class ConfiguratorSetup
|
|
109
108
|
end
|
110
109
|
|
111
110
|
def validate_plugins(config)
|
112
|
-
missing_plugins =
|
113
|
-
Set.new( config[:plugins][:enabled] ) -
|
114
|
-
Set.new( @configurator_plugins.rake_plugins ) -
|
111
|
+
missing_plugins =
|
112
|
+
Set.new( config[:plugins][:enabled] ) -
|
113
|
+
Set.new( @configurator_plugins.rake_plugins ) -
|
115
114
|
Set.new( @configurator_plugins.script_plugins )
|
116
|
-
|
115
|
+
|
117
116
|
missing_plugins.each do |plugin|
|
118
117
|
@stream_wrapper.stderr_puts("ERROR: Ceedling plugin '#{plugin}' contains no rake or ruby class entry point. (Misspelled or missing files?)")
|
119
118
|
end
|
120
|
-
|
119
|
+
|
121
120
|
return ( (missing_plugins.size > 0) ? false : true )
|
122
121
|
end
|
123
122
|
|
data/lib/ceedling/constants.rb
CHANGED
@@ -79,14 +79,15 @@ UTILS_ROOT_NAME = 'utils' unless defined?(UTILS_ROOT_NAME)
|
|
79
79
|
UTILS_TASK_ROOT = UTILS_ROOT_NAME + ':' unless defined?(UTILS_TASK_ROOT)
|
80
80
|
UTILS_SYM = UTILS_ROOT_NAME.to_sym unless defined?(UTILS_SYM)
|
81
81
|
|
82
|
-
OPERATION_COMPILE_SYM
|
83
|
-
|
82
|
+
OPERATION_COMPILE_SYM = :compile unless defined?(OPERATION_COMPILE_SYM)
|
83
|
+
OPERATION_ASSEMBLE_SYM = :assemble unless defined?(OPERATION_ASSEMBLE_SYM)
|
84
|
+
OPERATION_LINK_SYM = :link unless defined?(OPERATION_LINK_SYM)
|
84
85
|
|
85
86
|
|
86
87
|
RUBY_STRING_REPLACEMENT_PATTERN = /#\{.+\}/
|
87
88
|
RUBY_EVAL_REPLACEMENT_PATTERN = /^\{(.+)\}$/
|
88
89
|
TOOL_EXECUTOR_ARGUMENT_REPLACEMENT_PATTERN = /(\$\{(\d+)\})/
|
89
|
-
TEST_STDOUT_STATISTICS_PATTERN = /-+\s
|
90
|
+
TEST_STDOUT_STATISTICS_PATTERN = /-+\s*(\d+)\s+Tests\s+(\d+)\s+Failures\s+(\d+)\s+Ignored\s+(OK|FAIL)\s*/i
|
90
91
|
|
91
92
|
NULL_FILE_PATH = '/dev/null'
|
92
93
|
|
data/lib/ceedling/defaults.rb
CHANGED
@@ -2,6 +2,8 @@ require 'ceedling/constants'
|
|
2
2
|
require 'ceedling/system_wrapper'
|
3
3
|
require 'ceedling/file_path_utils'
|
4
4
|
|
5
|
+
#this should be defined already, but not always during system specs
|
6
|
+
CEEDLING_VENDOR = File.expand_path(File.dirname(__FILE__) + '/../../vendor') unless defined? CEEDLING_VENDOR
|
5
7
|
|
6
8
|
DEFAULT_TEST_COMPILER_TOOL = {
|
7
9
|
:executable => FilePathUtils.os_executable_ext('gcc').freeze,
|
@@ -55,8 +57,8 @@ DEFAULT_TEST_INCLUDES_PREPROCESSOR_TOOL = {
|
|
55
57
|
# avoid some possibility of deep system lib header file complications by omitting vendor paths
|
56
58
|
# if cpp is run on *nix system, escape spaces in paths; if cpp on windows just use the paths collection as is
|
57
59
|
# {"-I\"$\"" => "{SystemWrapper.windows? ? COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE : COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE.map{|path| path.gsub(\/ \/, \'\\\\ \') }}"}.freeze,
|
58
|
-
{"-I
|
59
|
-
{"-I
|
60
|
+
{"-I\"$\"" => 'COLLECTION_PATHS_TEST_SUPPORT_SOURCE_INCLUDE_VENDOR'}.freeze,
|
61
|
+
{"-I\"$\"" => 'COLLECTION_PATHS_TEST_TOOLCHAIN_INCLUDE'}.freeze,
|
60
62
|
{"-D$" => 'COLLECTION_DEFINES_TEST_AND_VENDOR'}.freeze,
|
61
63
|
{"-D$" => 'DEFINES_TEST_PREPROCESS'}.freeze,
|
62
64
|
"-DGNU_COMPILER".freeze, # OSX clang
|
@@ -107,7 +109,7 @@ DEFAULT_TEST_DEPENDENCIES_GENERATOR_TOOL = {
|
|
107
109
|
"-DGNU_COMPILER".freeze,
|
108
110
|
"-MT \"${3}\"".freeze,
|
109
111
|
'-MM'.freeze,
|
110
|
-
MD_FLAG.freeze,
|
112
|
+
MD_FLAG.freeze,
|
111
113
|
'-MG'.freeze,
|
112
114
|
"-MF \"${2}\"".freeze,
|
113
115
|
"-c \"${1}\"".freeze,
|
@@ -130,7 +132,7 @@ DEFAULT_RELEASE_DEPENDENCIES_GENERATOR_TOOL = {
|
|
130
132
|
"-DGNU_COMPILER".freeze,
|
131
133
|
"-MT \"${3}\"".freeze,
|
132
134
|
'-MM'.freeze,
|
133
|
-
MD_FLAG.freeze,
|
135
|
+
MD_FLAG.freeze,
|
134
136
|
'-MG'.freeze,
|
135
137
|
"-MF \"${2}\"".freeze,
|
136
138
|
"-c \"${1}\"".freeze,
|
@@ -292,14 +294,17 @@ DEFAULT_CEEDLING_CONFIG = {
|
|
292
294
|
},
|
293
295
|
|
294
296
|
:unity => {
|
297
|
+
:vendor_path => CEEDLING_VENDOR,
|
295
298
|
:defines => []
|
296
299
|
},
|
297
300
|
|
298
301
|
:cmock => {
|
302
|
+
:vendor_path => CEEDLING_VENDOR,
|
299
303
|
:defines => []
|
300
304
|
},
|
301
305
|
|
302
306
|
:cexception => {
|
307
|
+
:vendor_path => CEEDLING_VENDOR,
|
303
308
|
:defines => []
|
304
309
|
},
|
305
310
|
|
@@ -53,7 +53,6 @@ class Dependinator
|
|
53
53
|
mocks_list.each do |mock_filepath|
|
54
54
|
@rake_wrapper[mock_filepath].enhance( [@configurator.project_test_force_rebuild_filepath] ) if (@project_config_manager.test_config_changed)
|
55
55
|
@rake_wrapper[mock_filepath].enhance( [@configurator.cmock_unity_helper] ) if (@configurator.cmock_unity_helper)
|
56
|
-
@rake_wrapper[mock_filepath].enhance( [@configurator.cmock_build_info_filepath] )
|
57
56
|
end
|
58
57
|
end
|
59
58
|
|
@@ -37,20 +37,20 @@ class FilePathUtils
|
|
37
37
|
# note: slightly different than File.dirname in that /files/foo remains /files/foo and does not become /files
|
38
38
|
def self.extract_path(path)
|
39
39
|
path = path.sub(/^(\+|-):/, '')
|
40
|
-
|
40
|
+
|
41
41
|
# find first occurrence of path separator followed by directory glob specifier: *, ?, {, }, [, ]
|
42
42
|
find_index = (path =~ GLOB_MATCHER)
|
43
|
-
|
43
|
+
|
44
44
|
# no changes needed (lop off final path separator)
|
45
45
|
return path.chomp('/') if (find_index.nil?)
|
46
|
-
|
46
|
+
|
47
47
|
# extract up to first glob specifier
|
48
48
|
path = path[0..(find_index-1)]
|
49
|
-
|
49
|
+
|
50
50
|
# lop off everything up to and including final path separator
|
51
51
|
find_index = path.rindex('/')
|
52
52
|
return path[0..(find_index-1)] if (not find_index.nil?)
|
53
|
-
|
53
|
+
|
54
54
|
# return string up to first glob specifier if no path separator found
|
55
55
|
return path
|
56
56
|
end
|
@@ -59,12 +59,12 @@ class FilePathUtils
|
|
59
59
|
def self.add_path?(path)
|
60
60
|
return (path =~ /^-:/).nil?
|
61
61
|
end
|
62
|
-
|
62
|
+
|
63
63
|
# get path (and glob) lopping off optional +: / -: prefixed aggregation modifiers
|
64
64
|
def self.extract_path_no_aggregation_operators(path)
|
65
65
|
return path.sub(/^(\+|-):/, '')
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
# all the globs that may be in a path string work fine with one exception;
|
69
69
|
# to recurse through all subdirectories, the glob is dir/**/** but our paths use
|
70
70
|
# convention of only dir/**
|
@@ -73,25 +73,21 @@ class FilePathUtils
|
|
73
73
|
return path + '/**'
|
74
74
|
end
|
75
75
|
|
76
|
-
def self.form_ceedling_vendor_path(*filepaths)
|
77
|
-
return File.join( CEEDLING_VENDOR, filepaths )
|
78
|
-
end
|
79
|
-
|
80
76
|
######### instance methods ##########
|
81
77
|
|
82
78
|
def form_temp_path(filepath, prefix='')
|
83
|
-
return File.join( @configurator.project_temp_path, prefix + File.basename(filepath) )
|
79
|
+
return File.join( @configurator.project_temp_path, prefix + File.basename(filepath) )
|
84
80
|
end
|
85
|
-
|
81
|
+
|
86
82
|
### release ###
|
87
83
|
def form_release_build_cache_path(filepath)
|
88
|
-
return File.join( @configurator.project_release_build_cache_path, File.basename(filepath) )
|
84
|
+
return File.join( @configurator.project_release_build_cache_path, File.basename(filepath) )
|
89
85
|
end
|
90
|
-
|
86
|
+
|
91
87
|
def form_release_dependencies_filepath(filepath)
|
92
88
|
return File.join( @configurator.project_release_dependencies_path, File.basename(filepath).ext(@configurator.extension_dependencies) )
|
93
89
|
end
|
94
|
-
|
90
|
+
|
95
91
|
def form_release_build_c_object_filepath(filepath)
|
96
92
|
return File.join( @configurator.project_release_build_output_c_path, File.basename(filepath).ext(@configurator.extension_object) )
|
97
93
|
end
|
@@ -111,16 +107,16 @@ class FilePathUtils
|
|
111
107
|
def form_release_build_c_list_filepath(filepath)
|
112
108
|
return File.join( @configurator.project_release_build_output_c_path, File.basename(filepath).ext(@configurator.extension_list) )
|
113
109
|
end
|
114
|
-
|
110
|
+
|
115
111
|
def form_release_dependencies_filelist(files)
|
116
112
|
return (@file_wrapper.instantiate_file_list(files)).pathmap("#{@configurator.project_release_dependencies_path}/%n#{@configurator.extension_dependencies}")
|
117
113
|
end
|
118
|
-
|
114
|
+
|
119
115
|
### tests ###
|
120
116
|
def form_test_build_cache_path(filepath)
|
121
|
-
return File.join( @configurator.project_test_build_cache_path, File.basename(filepath) )
|
117
|
+
return File.join( @configurator.project_test_build_cache_path, File.basename(filepath) )
|
122
118
|
end
|
123
|
-
|
119
|
+
|
124
120
|
def form_pass_results_filepath(filepath)
|
125
121
|
return File.join( @configurator.project_test_results_path, File.basename(filepath).ext(@configurator.extension_testpass) )
|
126
122
|
end
|
@@ -146,7 +142,7 @@ class FilePathUtils
|
|
146
142
|
end
|
147
143
|
|
148
144
|
def form_test_executable_filepath(filepath)
|
149
|
-
return File.join( @configurator.project_test_build_output_path, File.basename(filepath).ext(@configurator.extension_executable) )
|
145
|
+
return File.join( @configurator.project_test_build_output_path, File.basename(filepath).ext(@configurator.extension_executable) )
|
150
146
|
end
|
151
147
|
|
152
148
|
def form_test_build_map_filepath(filepath)
|
@@ -158,17 +154,17 @@ class FilePathUtils
|
|
158
154
|
end
|
159
155
|
|
160
156
|
def form_preprocessed_file_filepath(filepath)
|
161
|
-
return File.join( @configurator.project_test_preprocess_files_path, File.basename(filepath) )
|
157
|
+
return File.join( @configurator.project_test_preprocess_files_path, File.basename(filepath) )
|
162
158
|
end
|
163
159
|
|
164
160
|
def form_preprocessed_includes_list_filepath(filepath)
|
165
|
-
return File.join( @configurator.project_test_preprocess_includes_path, File.basename(filepath) )
|
161
|
+
return File.join( @configurator.project_test_preprocess_includes_path, File.basename(filepath) )
|
166
162
|
end
|
167
163
|
|
168
164
|
def form_test_build_objects_filelist(sources)
|
169
165
|
return (@file_wrapper.instantiate_file_list(sources)).pathmap("#{@configurator.project_test_build_output_path}/%n#{@configurator.extension_object}")
|
170
166
|
end
|
171
|
-
|
167
|
+
|
172
168
|
def form_preprocessed_mockable_headers_filelist(mocks)
|
173
169
|
list = @file_wrapper.instantiate_file_list(mocks)
|
174
170
|
headers = list.map do |file|
|
@@ -186,12 +182,12 @@ class FilePathUtils
|
|
186
182
|
|
187
183
|
def form_test_dependencies_filelist(files)
|
188
184
|
list = @file_wrapper.instantiate_file_list(files)
|
189
|
-
return list.pathmap("#{@configurator.project_test_dependencies_path}/%n#{@configurator.extension_dependencies}")
|
185
|
+
return list.pathmap("#{@configurator.project_test_dependencies_path}/%n#{@configurator.extension_dependencies}")
|
190
186
|
end
|
191
187
|
|
192
188
|
def form_pass_results_filelist(path, files)
|
193
189
|
list = @file_wrapper.instantiate_file_list(files)
|
194
|
-
return list.pathmap("#{path}/%n#{@configurator.extension_testpass}")
|
190
|
+
return list.pathmap("#{path}/%n#{@configurator.extension_testpass}")
|
195
191
|
end
|
196
192
|
|
197
193
|
end
|
data/lib/ceedling/flaginator.rb
CHANGED
@@ -25,22 +25,22 @@ class Flaginator
|
|
25
25
|
def flag_down( operation, context, file )
|
26
26
|
# create configurator accessor method
|
27
27
|
accessor = ('flags_' + context.to_s).to_sym
|
28
|
-
|
28
|
+
|
29
29
|
# create simple filename key from whatever filename provided
|
30
30
|
file_key = File.basename( file ).ext('').to_sym
|
31
|
-
|
31
|
+
|
32
32
|
# if no entry in configuration for flags for this context, bail out
|
33
33
|
return [] if not @configurator.respond_to?( accessor )
|
34
|
-
|
34
|
+
|
35
35
|
# get flags sub hash associated with this context
|
36
36
|
flags = @configurator.send( accessor )
|
37
37
|
|
38
38
|
# if operation not represented in flags hash, bail out
|
39
39
|
return [] if not flags.include?( operation )
|
40
|
-
|
40
|
+
|
41
41
|
# redefine flags to sub hash associated with the operation
|
42
42
|
flags = flags[operation]
|
43
|
-
|
43
|
+
|
44
44
|
# if our file is in the flags hash, extract the array of flags
|
45
45
|
if (flags.include?( file_key )) then return flags[file_key]
|
46
46
|
# if our file isn't in the flags hash, but there is default for all other files, extract array of flags
|