ceedling 0.9.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/GIT_COMMIT_SHA +1 -0
- data/Gemfile +23 -2
- data/Gemfile.lock +50 -0
- data/README.md +728 -42
- data/Rakefile +21 -75
- data/assets/ceedling +9 -0
- data/assets/ceedling.cmd +1 -0
- data/assets/default_gitignore +7 -0
- data/assets/example_file.c +16 -0
- data/assets/example_file.h +15 -0
- data/assets/example_file_call.c +13 -0
- data/assets/example_file_call.h +13 -0
- data/assets/project.yml +402 -0
- data/assets/test_example_file.c +20 -0
- data/assets/test_example_file_boom.c +20 -0
- data/assets/test_example_file_crash.c +25 -0
- data/assets/test_example_file_success.c +21 -0
- data/assets/test_example_file_unity_printf.c +19 -0
- data/assets/test_example_file_verbose.c +19 -0
- data/assets/test_example_file_with_mock.c +20 -0
- data/assets/test_example_with_parameterized_tests.c +28 -0
- data/assets/tests_with_defines/src/adc_hardware.c +18 -0
- data/assets/tests_with_defines/src/adc_hardware.h +13 -0
- data/assets/tests_with_defines/src/adc_hardware_configurator.c +18 -0
- data/assets/tests_with_defines/src/adc_hardware_configurator.h +17 -0
- data/assets/tests_with_defines/test/test_adc_hardware.c +28 -0
- data/assets/tests_with_defines/test/test_adc_hardware_special.c +28 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareA.c +17 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareA.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareB.c +14 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareB.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareC.c +14 -0
- data/assets/tests_with_preprocessing/src/adc_hardwareC.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorA.h +13 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorB.h +15 -0
- data/assets/tests_with_preprocessing/src/adc_hardware_configuratorC.h +15 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareA.c +41 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareB.c +25 -0
- data/assets/tests_with_preprocessing/test/test_adc_hardwareC.c +29 -0
- data/assets/uncovered_example_file.c +12 -0
- data/bin/actions_wrapper.rb +50 -0
- data/bin/app_cfg.rb +134 -0
- data/bin/ceedling +146 -57
- data/bin/cli.rb +542 -0
- data/bin/cli_handler.rb +480 -0
- data/bin/cli_helper.rb +512 -0
- data/bin/configinator.rb +111 -0
- data/bin/mixinator.rb +136 -0
- data/bin/mixins.rb +12 -0
- data/bin/objects.yml +80 -0
- data/bin/path_validator.rb +54 -0
- data/bin/projectinator.rb +244 -0
- data/bin/versionator.rb +81 -0
- data/ceedling.gemspec +54 -14
- data/config/test_environment.rb +14 -0
- data/docs/BreakingChanges.md +260 -0
- data/docs/CODE_OF_CONDUCT.md +138 -0
- data/docs/CONTRIBUTING.md +240 -0
- data/docs/Ceedling Basic Porting.pdf +0 -0
- data/docs/Ceedling Managing Release Code.pdf +0 -0
- data/docs/Ceedling Working with IDEs.pdf +0 -0
- data/docs/CeedlingPacket.md +5651 -0
- data/docs/CeedlingPullRequestChecklist.md +24 -0
- data/docs/CeedlingUpgrade.md +83 -0
- data/docs/Changelog.md +493 -0
- data/docs/PluginDevelopmentGuide.md +764 -0
- data/docs/ReleaseNotes.md +353 -0
- data/docs/SECURITY.md +41 -0
- data/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/examples/temp_sensor/README.md +18 -0
- data/examples/temp_sensor/mixin/add_gcov.yml +51 -0
- data/examples/temp_sensor/mixin/add_unity_helper.yml +26 -0
- data/examples/temp_sensor/project.yml +355 -70
- data/examples/temp_sensor/src/AdcConductor.c +49 -42
- data/examples/temp_sensor/src/AdcConductor.h +20 -11
- data/examples/temp_sensor/src/AdcHardware.c +34 -27
- data/examples/temp_sensor/src/AdcHardware.h +18 -11
- data/examples/temp_sensor/src/AdcHardwareConfigurator.c +25 -18
- data/examples/temp_sensor/src/AdcHardwareConfigurator.h +17 -10
- data/examples/temp_sensor/src/AdcModel.c +40 -33
- data/examples/temp_sensor/src/AdcModel.h +20 -13
- data/examples/temp_sensor/src/AdcTemperatureSensor.c +58 -51
- data/examples/temp_sensor/src/AdcTemperatureSensor.h +17 -10
- data/examples/temp_sensor/src/Executor.c +32 -25
- data/examples/temp_sensor/src/Executor.h +16 -9
- data/examples/temp_sensor/src/IntrinsicsWrapper.c +25 -18
- data/examples/temp_sensor/src/IntrinsicsWrapper.h +14 -7
- data/examples/temp_sensor/src/Main.c +53 -46
- data/examples/temp_sensor/src/Main.h +14 -7
- data/examples/temp_sensor/src/Model.c +17 -10
- data/examples/temp_sensor/src/Model.h +15 -8
- data/examples/temp_sensor/src/ModelConfig.h +14 -7
- data/examples/temp_sensor/src/TaskScheduler.c +79 -72
- data/examples/temp_sensor/src/TaskScheduler.h +18 -11
- data/examples/temp_sensor/src/TemperatureCalculator.c +38 -27
- data/examples/temp_sensor/src/TemperatureCalculator.h +15 -6
- data/examples/temp_sensor/src/TemperatureFilter.c +45 -39
- data/examples/temp_sensor/src/TemperatureFilter.h +17 -10
- data/examples/temp_sensor/src/TimerConductor.c +22 -15
- data/examples/temp_sensor/src/TimerConductor.h +16 -9
- data/examples/temp_sensor/src/TimerConfigurator.c +58 -51
- data/examples/temp_sensor/src/TimerConfigurator.h +22 -15
- data/examples/temp_sensor/src/TimerHardware.c +22 -15
- data/examples/temp_sensor/src/TimerHardware.h +15 -8
- data/examples/temp_sensor/src/TimerInterruptConfigurator.c +62 -55
- data/examples/temp_sensor/src/TimerInterruptConfigurator.h +20 -13
- data/examples/temp_sensor/src/TimerInterruptHandler.c +32 -25
- data/examples/temp_sensor/src/TimerInterruptHandler.h +17 -10
- data/examples/temp_sensor/src/TimerModel.c +16 -9
- data/examples/temp_sensor/src/TimerModel.h +15 -8
- data/examples/temp_sensor/src/Types.h +97 -103
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +25 -18
- data/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +15 -6
- data/examples/temp_sensor/src/UsartConductor.c +28 -21
- data/examples/temp_sensor/src/UsartConductor.h +14 -7
- data/examples/temp_sensor/src/UsartConfigurator.c +46 -39
- data/examples/temp_sensor/src/UsartConfigurator.h +20 -13
- data/examples/temp_sensor/src/UsartHardware.c +29 -34
- data/examples/temp_sensor/src/UsartHardware.h +16 -10
- data/examples/temp_sensor/src/UsartModel.c +41 -34
- data/examples/temp_sensor/src/UsartModel.h +17 -10
- data/examples/temp_sensor/src/UsartPutChar.c +23 -16
- data/examples/temp_sensor/src/UsartPutChar.h +15 -8
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.c +14 -7
- data/examples/temp_sensor/src/UsartTransmitBufferStatus.h +15 -8
- data/examples/temp_sensor/test/TestExecutor.c +43 -0
- data/examples/temp_sensor/test/TestMain.c +31 -0
- data/examples/temp_sensor/test/TestModel.c +27 -0
- data/examples/temp_sensor/test/TestTaskScheduler.c +111 -0
- data/examples/temp_sensor/test/TestTemperatureCalculator.c +43 -0
- data/examples/temp_sensor/test/TestTemperatureFilter.c +86 -0
- data/examples/temp_sensor/test/TestTimerConductor.c +39 -0
- data/examples/temp_sensor/test/TestTimerHardware.c +33 -0
- data/examples/temp_sensor/test/TestTimerIntegrated.c +53 -0
- data/examples/temp_sensor/test/TestTimerModel.c +25 -0
- data/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +28 -0
- data/examples/temp_sensor/test/TestUsartConductor.c +47 -0
- data/examples/temp_sensor/test/TestUsartHardware.c +43 -0
- data/examples/temp_sensor/test/TestUsartIntegrated.c +63 -0
- data/examples/temp_sensor/test/TestUsartModel.c +47 -0
- data/examples/temp_sensor/test/adc/TestAdcConductor.c +128 -0
- data/examples/temp_sensor/test/adc/TestAdcHardware.c +51 -0
- data/examples/temp_sensor/test/adc/TestAdcModel.c +40 -0
- data/examples/temp_sensor/test/support/UnityHelper.c +19 -10
- data/examples/temp_sensor/test/support/UnityHelper.h +17 -12
- data/lib/ceedling/application.rb +26 -0
- data/lib/ceedling/backtrace.gdb +5 -0
- data/lib/ceedling/build_batchinator.rb +113 -0
- data/lib/ceedling/cacheinator.rb +53 -0
- data/lib/ceedling/cacheinator_helper.rb +41 -0
- data/lib/ceedling/config_matchinator.rb +192 -0
- data/lib/ceedling/config_walkinator.rb +35 -0
- data/lib/ceedling/configurator.rb +735 -0
- data/lib/ceedling/configurator_builder.rb +558 -0
- data/lib/ceedling/configurator_plugins.rb +165 -0
- data/lib/ceedling/configurator_setup.rb +799 -0
- data/lib/ceedling/configurator_validator.rb +203 -0
- data/lib/ceedling/constants.rb +160 -0
- data/lib/ceedling/defaults.rb +477 -0
- data/lib/ceedling/defineinator.rb +90 -0
- data/lib/ceedling/dependinator.rb +31 -0
- data/lib/ceedling/encodinator.rb +26 -0
- data/lib/ceedling/erb_wrapper.rb +16 -0
- data/lib/ceedling/exceptions.rb +47 -0
- data/lib/ceedling/file_finder.rb +183 -0
- data/lib/ceedling/file_finder_helper.rb +116 -0
- data/lib/ceedling/file_path_collection_utils.rb +137 -0
- data/lib/ceedling/file_path_utils.rb +190 -0
- data/lib/ceedling/file_system_wrapper.rb +16 -0
- data/lib/ceedling/file_wrapper.rb +122 -0
- data/lib/ceedling/flaginator.rb +65 -0
- data/lib/ceedling/generator.rb +365 -0
- data/lib/ceedling/generator_helper.rb +78 -0
- data/lib/ceedling/generator_mocks.rb +41 -0
- data/lib/ceedling/generator_test_results.rb +270 -0
- data/lib/ceedling/generator_test_results_backtrace.rb +215 -0
- data/lib/ceedling/generator_test_results_sanity_checker.rb +70 -0
- data/lib/ceedling/generator_test_runner.rb +84 -0
- data/lib/ceedling/include_pathinator.rb +83 -0
- data/lib/ceedling/loginator.rb +326 -0
- data/lib/ceedling/makefile.rb +52 -0
- data/lib/ceedling/objects.yml +352 -0
- data/lib/ceedling/parsing_parcels.rb +77 -0
- data/lib/ceedling/plugin.rb +30 -0
- data/lib/ceedling/plugin_manager.rb +133 -0
- data/lib/ceedling/plugin_manager_helper.rb +25 -0
- data/lib/ceedling/plugin_reportinator.rb +139 -0
- data/lib/ceedling/plugin_reportinator_helper.rb +84 -0
- data/lib/ceedling/preprocessinator.rb +239 -0
- data/lib/ceedling/preprocessinator_extractor.rb +257 -0
- data/lib/ceedling/preprocessinator_file_handler.rb +229 -0
- data/lib/ceedling/preprocessinator_includes_handler.rb +382 -0
- data/lib/ceedling/rake_utils.rb +23 -0
- data/lib/ceedling/rake_wrapper.rb +40 -0
- data/lib/ceedling/rakefile.rb +145 -0
- data/lib/ceedling/release_invoker.rb +68 -0
- data/lib/ceedling/release_invoker_helper.rb +12 -0
- data/lib/ceedling/reportinator.rb +124 -0
- data/lib/ceedling/rules_release.rake +107 -0
- data/lib/ceedling/rules_tests.rake +62 -0
- data/lib/ceedling/setupinator.rb +199 -0
- data/lib/ceedling/stream_wrapper.rb +51 -0
- data/lib/ceedling/system_utils.rb +43 -0
- data/lib/ceedling/system_wrapper.rb +150 -0
- data/lib/ceedling/task_invoker.rb +70 -0
- data/lib/ceedling/tasks_base.rake +39 -0
- data/lib/ceedling/tasks_filesystem.rake +99 -0
- data/lib/ceedling/tasks_release.rake +43 -0
- data/lib/ceedling/tasks_tests.rake +71 -0
- data/lib/ceedling/test_context_extractor.rb +379 -0
- data/lib/ceedling/test_invoker.rb +506 -0
- data/lib/ceedling/test_invoker_helper.rb +347 -0
- data/lib/ceedling/test_runner_manager.rb +47 -0
- data/lib/ceedling/tool_executor.rb +233 -0
- data/lib/ceedling/tool_executor_helper.rb +107 -0
- data/lib/ceedling/tool_validator.rb +149 -0
- data/lib/ceedling/verbosinator.rb +22 -0
- data/lib/ceedling/yaml_wrapper.rb +37 -0
- data/lib/ceedling.rb +12 -4
- data/lib/version.rb +24 -0
- data/license.txt +24 -0
- data/plugins/beep/README.md +133 -0
- data/plugins/beep/config/defaults.yml +12 -0
- data/plugins/beep/config/defaults_beep.rb +67 -0
- data/plugins/beep/lib/beep.rb +85 -0
- data/plugins/bullseye/README.md +81 -0
- data/plugins/bullseye/bullseye.rake +180 -0
- data/plugins/bullseye/config/defaults.yml +66 -0
- data/plugins/bullseye/lib/bullseye.rb +203 -0
- data/plugins/command_hooks/README.md +241 -0
- data/plugins/command_hooks/lib/command_hooks.rb +231 -0
- data/plugins/compile_commands_json_db/README.md +40 -0
- data/plugins/compile_commands_json_db/lib/compile_commands_json_db.rb +51 -0
- data/plugins/dependencies/README.md +321 -0
- data/plugins/dependencies/Rakefile +188 -0
- data/plugins/dependencies/config/defaults.yml +78 -0
- data/plugins/dependencies/dependencies.rake +157 -0
- data/plugins/dependencies/example/boss/project.yml +231 -0
- data/plugins/dependencies/example/boss/src/boss.c +80 -0
- data/plugins/dependencies/example/boss/src/boss.h +16 -0
- data/plugins/dependencies/example/boss/src/main.c +45 -0
- data/plugins/dependencies/example/boss/test/test_boss.c +118 -0
- data/plugins/dependencies/example/supervisor/project.yml +165 -0
- data/plugins/dependencies/example/supervisor/src/supervisor.c +45 -0
- data/plugins/dependencies/example/supervisor/src/supervisor.h +14 -0
- data/plugins/dependencies/example/supervisor/test/test_supervisor.c +58 -0
- data/plugins/dependencies/example/version.tar.gzip +0 -0
- data/plugins/dependencies/example/workerbees.zip +0 -0
- data/plugins/dependencies/lib/dependencies.rb +531 -0
- data/plugins/fff/README.md +242 -0
- data/plugins/fff/Rakefile +26 -0
- data/plugins/fff/config/fff.yml +13 -0
- data/plugins/fff/examples/fff_example/project.yml +145 -0
- data/plugins/fff/examples/fff_example/src/bar.c +8 -0
- data/plugins/fff/examples/fff_example/src/bar.h +21 -0
- data/plugins/fff/examples/fff_example/src/custom_types.h +13 -0
- data/plugins/fff/examples/fff_example/src/display.c +14 -0
- data/plugins/fff/examples/fff_example/src/display.h +23 -0
- data/plugins/fff/examples/fff_example/src/event_processor.c +100 -0
- data/plugins/fff/examples/fff_example/src/event_processor.h +18 -0
- data/plugins/fff/examples/fff_example/src/foo.c +23 -0
- data/plugins/fff/examples/fff_example/src/foo.h +15 -0
- data/plugins/fff/examples/fff_example/src/subfolder/zzz.c +8 -0
- data/plugins/fff/examples/fff_example/src/subfolder/zzz.h +13 -0
- data/plugins/fff/examples/fff_example/test/test_event_processor.c +160 -0
- data/plugins/fff/examples/fff_example/test/test_foo.c +54 -0
- data/plugins/fff/lib/fff.rb +90 -0
- data/plugins/fff/lib/fff_mock_generator.rb +172 -0
- data/plugins/fff/spec/fff_mock_header_generator_spec.rb +311 -0
- data/plugins/fff/spec/fff_mock_source_generator_spec.rb +156 -0
- data/plugins/fff/spec/header_generator.rb +58 -0
- data/plugins/fff/spec/spec_helper.rb +103 -0
- data/plugins/fff/src/fff_unity_helper.h +40 -0
- data/plugins/fff/vendor/fff/LICENSE +25 -0
- data/plugins/fff/vendor/fff/Makefile +10 -0
- data/plugins/fff/vendor/fff/README.md +454 -0
- data/plugins/fff/vendor/fff/buildandtest +15 -0
- data/plugins/fff/vendor/fff/examples/Makefile +7 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/Makefile +64 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.c +32 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.h +21 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.cpp +58 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/driver.test.fff.cpp +70 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/hardware_abstraction.h +25 -0
- data/plugins/fff/vendor/fff/examples/driver_testing/registers.h +23 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/DISPLAY.h +27 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/Kata.txt +25 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/Makefile +67 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/SYSTEM.h +31 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI.c +56 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI.h +22 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_ansic.c +191 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/UI_test_cpp.cpp +144 -0
- data/plugins/fff/vendor/fff/examples/embedded_ui/test_suite_template.c +42 -0
- data/plugins/fff/vendor/fff/fakegen.rb +428 -0
- data/plugins/fff/vendor/fff/fff.h +5122 -0
- data/plugins/fff/vendor/fff/gtest/Makefile +22 -0
- data/plugins/fff/vendor/fff/gtest/gtest-all.cc +9118 -0
- data/plugins/fff/vendor/fff/gtest/gtest-main.cc +6 -0
- data/plugins/fff/vendor/fff/gtest/gtest.h +19547 -0
- data/plugins/fff/vendor/fff/test/Makefile +81 -0
- data/plugins/fff/vendor/fff/test/c_test_framework.h +25 -0
- data/plugins/fff/vendor/fff/test/fff_test_c.c +116 -0
- data/plugins/fff/vendor/fff/test/fff_test_cpp.cpp +53 -0
- data/plugins/fff/vendor/fff/test/fff_test_global_c.c +84 -0
- data/plugins/fff/vendor/fff/test/fff_test_global_cpp.cpp +31 -0
- data/plugins/fff/vendor/fff/test/global_fakes.c +21 -0
- data/plugins/fff/vendor/fff/test/global_fakes.h +47 -0
- data/plugins/fff/vendor/fff/test/test_cases.include +276 -0
- data/plugins/gcov/README.md +893 -0
- data/plugins/gcov/config/defaults.yml +30 -0
- data/plugins/gcov/config/defaults_gcov.rb +109 -0
- data/plugins/gcov/gcov.rake +100 -0
- data/plugins/gcov/lib/gcov.rb +282 -0
- data/plugins/gcov/lib/gcov_constants.rb +63 -0
- data/plugins/gcov/lib/gcovr_reportinator.rb +425 -0
- data/plugins/gcov/lib/reportgenerator_reportinator.rb +220 -0
- data/plugins/gcov/lib/reportinator_helper.rb +30 -0
- data/plugins/module_generator/README.md +267 -0
- data/plugins/module_generator/Rakefile +232 -0
- data/plugins/module_generator/assets/stubby1.h +13 -0
- data/plugins/module_generator/assets/stubby2.h +15 -0
- data/plugins/module_generator/config/module_generator.yml +13 -0
- data/plugins/module_generator/example/project.yml +174 -0
- data/plugins/module_generator/lib/module_generator.rb +122 -0
- data/plugins/module_generator/module_generator.rake +69 -0
- data/plugins/report_build_warnings_log/README.md +40 -0
- data/plugins/report_build_warnings_log/config/defaults.yml +12 -0
- data/plugins/report_build_warnings_log/lib/report_build_warnings_log.rb +143 -0
- data/plugins/report_tests_gtestlike_stdout/README.md +96 -0
- data/plugins/report_tests_gtestlike_stdout/assets/template.erb +83 -0
- data/plugins/report_tests_gtestlike_stdout/config/report_tests_gtestlike_stdout.yml +11 -0
- data/plugins/report_tests_gtestlike_stdout/lib/report_tests_gtestlike_stdout.rb +69 -0
- data/plugins/report_tests_ide_stdout/README.md +62 -0
- data/plugins/report_tests_ide_stdout/config/report_tests_ide_stdout.yml +11 -0
- data/plugins/report_tests_ide_stdout/lib/report_tests_ide_stdout.rb +72 -0
- data/plugins/report_tests_log_factory/README.md +446 -0
- data/plugins/report_tests_log_factory/config/defaults.yml +11 -0
- data/plugins/report_tests_log_factory/lib/cppunit_tests_reporter.rb +100 -0
- data/plugins/report_tests_log_factory/lib/html_tests_reporter.rb +181 -0
- data/plugins/report_tests_log_factory/lib/json_tests_reporter.rb +72 -0
- data/plugins/report_tests_log_factory/lib/junit_tests_reporter.rb +197 -0
- data/plugins/report_tests_log_factory/lib/report_tests_log_factory.rb +135 -0
- data/plugins/report_tests_log_factory/lib/tests_reporter.rb +70 -0
- data/plugins/report_tests_log_factory/sample_html_report.png +0 -0
- data/plugins/report_tests_pretty_stdout/README.md +54 -0
- data/plugins/report_tests_pretty_stdout/assets/template.erb +63 -0
- data/plugins/report_tests_pretty_stdout/config/report_tests_pretty_stdout.yml +11 -0
- data/plugins/report_tests_pretty_stdout/lib/report_tests_pretty_stdout.rb +73 -0
- data/plugins/report_tests_raw_output_log/README.md +50 -0
- data/plugins/report_tests_raw_output_log/lib/report_tests_raw_output_log.rb +129 -0
- data/plugins/report_tests_teamcity_stdout/README.md +94 -0
- data/plugins/report_tests_teamcity_stdout/config/defaults.yml +12 -0
- data/plugins/report_tests_teamcity_stdout/config/report_tests_teamcity_stdout.yml +11 -0
- data/plugins/report_tests_teamcity_stdout/lib/report_tests_teamcity_stdout.rb +163 -0
- data/spec/config_walkinator_spec.rb +62 -0
- data/spec/configurator_builder_spec.rb +16 -0
- data/spec/configurator_helper_spec.rb +12 -0
- data/spec/configurator_spec.rb +18 -0
- data/spec/file_finder_helper_spec.rb +73 -0
- data/spec/gcov/gcov_deployment_spec.rb +135 -0
- data/spec/gcov/gcov_test_cases_spec.rb +344 -0
- data/spec/generator_test_results_sanity_checker_spec.rb +104 -0
- data/spec/generator_test_results_spec.rb +131 -0
- data/spec/manual/stress_test.rb +31 -0
- data/spec/parsing_parcels_spec.rb +66 -0
- data/spec/preprocessinator_extractor_spec.rb +408 -0
- data/spec/preprocessinator_includes_handler_spec.rb +289 -0
- data/spec/reportinator_spec.rb +26 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/spec_system_helper.rb +994 -0
- data/spec/support/other_target.yml +7 -0
- data/spec/support/target.yml +7 -0
- data/spec/support/test_example.fail +25 -0
- data/spec/support/test_example.pass +25 -0
- data/spec/support/test_example_empty.pass +15 -0
- data/spec/support/test_example_ignore.pass +25 -0
- data/spec/support/test_example_mangled.pass +22 -0
- data/spec/support/test_example_with_time.pass +25 -0
- data/spec/system/deployment_as_gem_spec.rb +76 -0
- data/spec/system/deployment_as_vendor_spec.rb +123 -0
- data/spec/system/example_temp_sensor_spec.rb +264 -0
- data/spec/system/upgrade_as_vendor_spec.rb +68 -0
- data/spec/system_utils_spec.rb +65 -0
- data/spec/test_context_extractor_spec.rb +328 -0
- data/spec/tool_executor_helper_spec.rb +219 -0
- data/spec/uncategorized_specs_spec.rb +15 -0
- data/vendor/c_exception/README.md +236 -0
- data/vendor/c_exception/docs/CException.md +289 -0
- data/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
- data/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/c_exception/lib/CException.c +59 -0
- data/vendor/c_exception/lib/CException.h +122 -0
- data/vendor/c_exception/lib/meson.build +11 -0
- data/vendor/c_exception/license.txt +22 -0
- data/vendor/c_exception/meson.build +14 -0
- data/vendor/c_exception/project.yml +263 -0
- data/vendor/c_exception/test/TestException.c +398 -0
- data/vendor/c_exception/test/support/CExceptionConfig.h +53 -0
- data/vendor/cmock/Gemfile +1 -0
- data/vendor/cmock/LICENSE.txt +21 -0
- data/vendor/cmock/README.md +55 -0
- data/vendor/cmock/cmock.gemspec +34 -0
- data/vendor/cmock/config/production_environment.rb +13 -0
- data/vendor/cmock/config/test_environment.rb +17 -0
- data/vendor/cmock/docs/CMockChangeLog.md +166 -0
- data/vendor/cmock/docs/CMockKnownIssues.md +13 -0
- data/vendor/cmock/docs/CMock_ArgumentValidation.md +274 -0
- data/vendor/cmock/docs/CMock_Summary.md +866 -0
- data/vendor/cmock/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/cmock/examples/make_example/Makefile +30 -0
- data/vendor/cmock/examples/make_example/src/foo.c +12 -0
- data/vendor/cmock/examples/make_example/src/foo.h +12 -0
- data/vendor/cmock/examples/make_example/src/main.c +22 -0
- data/vendor/cmock/examples/make_example/test/test_foo.c +24 -0
- data/vendor/cmock/examples/make_example/test/test_main.c +22 -0
- data/vendor/cmock/examples/temp_sensor/rakefile.rb +49 -0
- data/vendor/cmock/examples/temp_sensor/rakefile_helper.rb +280 -0
- data/vendor/cmock/examples/temp_sensor/src/AT91SAM7X256.h +2564 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.c +49 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcConductor.h +18 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.c +34 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardware.h +16 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.c +25 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcHardwareConfigurator.h +17 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.c +40 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcModel.h +20 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.c +58 -0
- data/vendor/cmock/examples/temp_sensor/src/AdcTemperatureSensor.h +17 -0
- data/vendor/cmock/examples/temp_sensor/src/Executor.c +32 -0
- data/vendor/cmock/examples/temp_sensor/src/Executor.h +16 -0
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.c +25 -0
- data/vendor/cmock/examples/temp_sensor/src/IntrinsicsWrapper.h +14 -0
- data/vendor/cmock/examples/temp_sensor/src/Main.c +53 -0
- data/vendor/cmock/examples/temp_sensor/src/Main.h +14 -0
- data/vendor/cmock/examples/temp_sensor/src/Model.c +17 -0
- data/vendor/cmock/examples/temp_sensor/src/Model.h +15 -0
- data/vendor/cmock/examples/temp_sensor/src/ModelConfig.h +14 -0
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.c +79 -0
- data/vendor/cmock/examples/temp_sensor/src/TaskScheduler.h +18 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.c +34 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureCalculator.h +13 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.c +49 -0
- data/vendor/cmock/examples/temp_sensor/src/TemperatureFilter.h +17 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.c +22 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConductor.h +16 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.c +58 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerConfigurator.h +22 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.c +22 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerHardware.h +15 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.c +62 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptConfigurator.h +20 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.c +32 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerInterruptHandler.h +17 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.c +16 -0
- data/vendor/cmock/examples/temp_sensor/src/TimerModel.h +15 -0
- data/vendor/cmock/examples/temp_sensor/src/Types.h +110 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.c +25 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartBaudRateRegisterCalculator.h +13 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.c +28 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConductor.h +14 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.c +46 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartConfigurator.h +20 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.c +29 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartHardware.h +16 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.c +41 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartModel.h +17 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.c +23 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartPutChar.h +15 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.c +14 -0
- data/vendor/cmock/examples/temp_sensor/src/UsartTransmitBufferStatus.h +15 -0
- data/vendor/cmock/examples/temp_sensor/targets/gcc.yml +97 -0
- data/vendor/cmock/examples/temp_sensor/targets/iar_v4.yml +143 -0
- data/vendor/cmock/examples/temp_sensor/targets/iar_v5.yml +132 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcConductor.c +128 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardware.c +51 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcHardwareConfigurator.c +50 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcModel.c +40 -0
- data/vendor/cmock/examples/temp_sensor/test/TestAdcTemperatureSensor.c +54 -0
- data/vendor/cmock/examples/temp_sensor/test/TestExecutor.c +43 -0
- data/vendor/cmock/examples/temp_sensor/test/TestMain.c +31 -0
- data/vendor/cmock/examples/temp_sensor/test/TestModel.c +27 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTaskScheduler.c +111 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureCalculator.c +40 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTemperatureFilter.c +76 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConductor.c +39 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerConfigurator.c +119 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerHardware.c +33 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptConfigurator.c +85 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerInterruptHandler.c +73 -0
- data/vendor/cmock/examples/temp_sensor/test/TestTimerModel.c +25 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartBaudRateRegisterCalculator.c +28 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConductor.c +47 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartConfigurator.c +84 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartHardware.c +44 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartModel.c +47 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartPutChar.c +50 -0
- data/vendor/cmock/examples/temp_sensor/test/TestUsartTransmitBufferStatus.c +29 -0
- data/vendor/cmock/lib/cmock.rb +127 -0
- data/vendor/cmock/lib/cmock_config.rb +184 -0
- data/vendor/cmock/lib/cmock_file_writer.rb +48 -0
- data/vendor/cmock/lib/cmock_generator.rb +379 -0
- data/vendor/cmock/lib/cmock_generator_plugin_array.rb +68 -0
- data/vendor/cmock/lib/cmock_generator_plugin_callback.rb +88 -0
- data/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +50 -0
- data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +105 -0
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +52 -0
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +90 -0
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +49 -0
- data/vendor/cmock/lib/cmock_generator_plugin_ignore_stateless.rb +87 -0
- data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +102 -0
- data/vendor/cmock/lib/cmock_generator_utils.rb +251 -0
- data/vendor/cmock/lib/cmock_header_parser.rb +629 -0
- data/vendor/cmock/lib/cmock_plugin_manager.rb +51 -0
- data/vendor/cmock/lib/cmock_unityhelper_parser.rb +82 -0
- data/vendor/cmock/lib/cmock_version.rb +29 -0
- data/vendor/cmock/meson.build +17 -0
- data/vendor/cmock/scripts/create_makefile.rb +210 -0
- data/vendor/cmock/scripts/create_mock.rb +15 -0
- data/vendor/cmock/scripts/create_runner.rb +25 -0
- data/vendor/cmock/scripts/test_summary.rb +25 -0
- data/vendor/cmock/src/cmock.c +238 -0
- data/vendor/cmock/src/cmock.h +54 -0
- data/vendor/cmock/src/cmock_internals.h +98 -0
- data/vendor/cmock/src/meson.build +12 -0
- data/vendor/cmock/test/c/TestCMockC.c +340 -0
- data/vendor/cmock/test/c/TestCMockC.yml +21 -0
- data/vendor/cmock/test/c/TestCMockCDynamic.c +193 -0
- data/vendor/cmock/test/c/TestCMockCDynamic.yml +19 -0
- data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +43 -0
- data/vendor/cmock/test/c/TestCMockC_Runner.c +48 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/SAM7_FLASH.mac +71 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/SAM7_RAM.mac +94 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/SAM7_SIM.mac +67 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_FLASH.xcl +185 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/at91SAM7X256_RAM.xcl +185 -0
- data/vendor/cmock/test/iar/iar_v4/Resource/ioat91sam7x256.ddf +2259 -0
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.dep +3691 -0
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.ewd +1696 -0
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.ewp +2581 -0
- data/vendor/cmock/test/iar/iar_v4/cmock_demo.eww +10 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X-EK.h +68 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.inc +2314 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.rdf +4704 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256.tcl +3407 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/AT91SAM7X256_inc.h +2275 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/ioat91sam7x256.h +4387 -0
- data/vendor/cmock/test/iar/iar_v4/incIAR/lib_AT91SAM7X256.h +4211 -0
- data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.cspy.bat +32 -0
- data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.dbgdt +86 -0
- data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.dni +42 -0
- data/vendor/cmock/test/iar/iar_v4/settings/cmock_demo.wsdt +76 -0
- data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup.s79 +266 -0
- data/vendor/cmock/test/iar/iar_v4/srcIAR/Cstartup_SAM7.c +105 -0
- data/vendor/cmock/test/iar/iar_v5/Resource/SAM7_FLASH.mac +71 -0
- data/vendor/cmock/test/iar/iar_v5/Resource/SAM7_RAM.mac +94 -0
- data/vendor/cmock/test/iar/iar_v5/Resource/SAM7_SIM.mac +67 -0
- data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_FLASH.icf +43 -0
- data/vendor/cmock/test/iar/iar_v5/Resource/at91SAM7X256_RAM.icf +42 -0
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.dep +4204 -0
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.ewd +1906 -0
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.ewp +2426 -0
- data/vendor/cmock/test/iar/iar_v5/cmock_demo.eww +26 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X-EK.h +68 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/AT91SAM7X256_inc.h +2275 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/lib_AT91SAM7X256.h +4211 -0
- data/vendor/cmock/test/iar/iar_v5/incIAR/project.h +37 -0
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.cspy.bat +33 -0
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.dbgdt +5 -0
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.dni +18 -0
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X.wsdt +74 -0
- data/vendor/cmock/test/iar/iar_v5/settings/BasicInterrupt_SAM7X_FLASH_Debug.jlink +12 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.cspy.bat +33 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.dbgdt +85 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.dni +44 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo.wsdt +73 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_Binary.jlink +12 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_FLASH_Debug.jlink +12 -0
- data/vendor/cmock/test/iar/iar_v5/settings/cmock_demo_RAM_Debug.jlink +12 -0
- data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup.s +299 -0
- data/vendor/cmock/test/iar/iar_v5/srcIAR/Cstartup_SAM7.c +105 -0
- data/vendor/cmock/test/rakefile +150 -0
- data/vendor/cmock/test/rakefile_helper.rb +417 -0
- data/vendor/cmock/test/system/systest_generator.rb +206 -0
- data/vendor/cmock/test/system/test_compilation/callingconv.h +18 -0
- data/vendor/cmock/test/system/test_compilation/config.yml +17 -0
- data/vendor/cmock/test/system/test_compilation/const.h +44 -0
- data/vendor/cmock/test/system/test_compilation/inline.h +30 -0
- data/vendor/cmock/test/system/test_compilation/osek.h +282 -0
- data/vendor/cmock/test/system/test_compilation/parsing.h +99 -0
- data/vendor/cmock/test/system/test_interactions/all_plugins_but_other_limits.yml +382 -0
- data/vendor/cmock/test/system/test_interactions/all_plugins_coexist.yml +467 -0
- data/vendor/cmock/test/system/test_interactions/array_and_pointer_handling.yml +453 -0
- data/vendor/cmock/test/system/test_interactions/basic_expect_and_return.yml +131 -0
- data/vendor/cmock/test/system/test_interactions/const_primitives_handling.yml +94 -0
- data/vendor/cmock/test/system/test_interactions/doesnt_leave_details_behind.yml +315 -0
- data/vendor/cmock/test/system/test_interactions/enforce_strict_ordering.yml +254 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_return_custom_types.yml +115 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_return_treat_as.yml +180 -0
- data/vendor/cmock/test/system/test_interactions/expect_and_throw.yml +177 -0
- data/vendor/cmock/test/system/test_interactions/expect_any_args.yml +245 -0
- data/vendor/cmock/test/system/test_interactions/fancy_pointer_handling.yml +217 -0
- data/vendor/cmock/test/system/test_interactions/function_pointer_handling.yml +90 -0
- data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +336 -0
- data/vendor/cmock/test/system/test_interactions/ignore_and_return_stateless.yml +332 -0
- data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +44 -0
- data/vendor/cmock/test/system/test_interactions/newer_standards_stuff1.yml +59 -0
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_1.yml +98 -0
- data/vendor/cmock/test/system/test_interactions/nonstandard_parsed_stuff_2.yml +66 -0
- data/vendor/cmock/test/system/test_interactions/out_of_memory.yml +72 -0
- data/vendor/cmock/test/system/test_interactions/parsing_challenges.yml +249 -0
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_and_expect_any_args.yml +242 -0
- data/vendor/cmock/test/system/test_interactions/return_thru_ptr_ignore_arg.yml +238 -0
- data/vendor/cmock/test/system/test_interactions/skeleton.yml +62 -0
- data/vendor/cmock/test/system/test_interactions/skeleton_update.yml +83 -0
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return.yml +284 -0
- data/vendor/cmock/test/system/test_interactions/struct_union_enum_expect_and_return_with_plugins.yml +287 -0
- data/vendor/cmock/test/system/test_interactions/stubs_with_callbacks.yml +228 -0
- data/vendor/cmock/test/system/test_interactions/unity_64bit_support.yml +84 -0
- data/vendor/cmock/test/system/test_interactions/unity_ignores.yml +146 -0
- data/vendor/cmock/test/system/test_interactions/unity_void_pointer_compare.yml +98 -0
- data/vendor/cmock/test/system/test_interactions/wrong_expect_and_return.yml +149 -0
- data/vendor/cmock/test/targets/clang_strict.yml +97 -0
- data/vendor/cmock/test/targets/gcc.yml +65 -0
- data/vendor/cmock/test/targets/gcc_64.yml +65 -0
- data/vendor/cmock/test/targets/gcc_tiny.yml +87 -0
- data/vendor/cmock/test/targets/iar_arm_v4.yml +117 -0
- data/vendor/cmock/test/targets/iar_arm_v5.yml +102 -0
- data/vendor/cmock/test/test_helper.rb +45 -0
- data/vendor/cmock/test/unit/cmock_config_test.rb +127 -0
- data/vendor/cmock/test/unit/cmock_config_test.yml +14 -0
- data/vendor/cmock/test/unit/cmock_file_writer_test.rb +28 -0
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +706 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +145 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +282 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +109 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_a_test.rb +189 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +71 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +205 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +117 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_stateless_test.rb +121 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +124 -0
- data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +209 -0
- data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +404 -0
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +2886 -0
- data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +102 -0
- data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +224 -0
- data/vendor/cmock/vendor/behaviors/Manifest.txt +9 -0
- data/vendor/cmock/vendor/behaviors/Rakefile +19 -0
- data/vendor/cmock/vendor/behaviors/lib/behaviors/reporttask.rb +158 -0
- data/vendor/cmock/vendor/behaviors/lib/behaviors.rb +76 -0
- data/vendor/cmock/vendor/behaviors/test/behaviors_tasks_test.rb +73 -0
- data/vendor/cmock/vendor/behaviors/test/behaviors_test.rb +50 -0
- data/vendor/cmock/vendor/behaviors/test/tasks_test/Rakefile +19 -0
- data/vendor/cmock/vendor/behaviors/test/tasks_test/lib/user.rb +2 -0
- data/vendor/cmock/vendor/behaviors/test/tasks_test/test/user_test.rb +17 -0
- data/vendor/cmock/vendor/c_exception/README.md +236 -0
- data/vendor/cmock/vendor/c_exception/docs/CException.md +289 -0
- data/vendor/cmock/vendor/c_exception/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/vendor/c_exception/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +207 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.c +59 -0
- data/vendor/cmock/vendor/c_exception/lib/CException.h +122 -0
- data/vendor/cmock/vendor/c_exception/lib/meson.build +11 -0
- data/vendor/cmock/vendor/c_exception/license.txt +22 -0
- data/vendor/cmock/vendor/c_exception/meson.build +14 -0
- data/vendor/cmock/vendor/c_exception/project.yml +263 -0
- data/vendor/cmock/vendor/c_exception/test/TestException.c +398 -0
- data/vendor/cmock/vendor/c_exception/test/support/CExceptionConfig.h +53 -0
- data/vendor/cmock/vendor/unity/CMakeLists.txt +172 -0
- data/vendor/cmock/vendor/unity/LICENSE.txt +21 -0
- data/vendor/cmock/vendor/unity/README.md +234 -0
- data/vendor/cmock/vendor/unity/auto/__init__.py +7 -0
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +120 -0
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +40 -0
- data/vendor/cmock/vendor/unity/auto/extract_version.py +22 -0
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +43 -0
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +318 -0
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +547 -0
- data/vendor/cmock/vendor/unity/auto/parse_output.rb +390 -0
- data/vendor/cmock/vendor/unity/auto/run_test.erb +37 -0
- data/vendor/cmock/vendor/unity/auto/stylize_as_junit.py +161 -0
- data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +253 -0
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +28 -0
- data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +13 -0
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +140 -0
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +140 -0
- data/vendor/cmock/vendor/unity/auto/yaml_helper.rb +23 -0
- data/vendor/cmock/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/cmock/vendor/unity/docs/CONTRIBUTING.md +238 -0
- data/vendor/cmock/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
- data/vendor/cmock/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +187 -0
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +860 -0
- data/vendor/cmock/vendor/unity/docs/UnityChangeLog.md +110 -0
- data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +654 -0
- data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.md +242 -0
- data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +533 -0
- data/vendor/cmock/vendor/unity/docs/UnityKnownIssues.md +13 -0
- data/vendor/cmock/vendor/unity/examples/example_1/makefile +73 -0
- data/vendor/cmock/vendor/unity/examples/example_1/meson.build +48 -0
- data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +12 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +30 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +9 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +17 -0
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +8 -0
- data/vendor/cmock/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +68 -0
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +37 -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 +72 -0
- data/vendor/cmock/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +30 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +9 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +17 -0
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +8 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +71 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +40 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +16 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +18 -0
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +19 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +17 -0
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +19 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +45 -0
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +255 -0
- data/vendor/cmock/vendor/unity/examples/example_3/readme.txt +13 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +30 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +9 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +17 -0
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +8 -0
- data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +54 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +68 -0
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +37 -0
- data/vendor/cmock/vendor/unity/examples/example_4/meson.build +12 -0
- data/vendor/cmock/vendor/unity/examples/example_4/readme.txt +15 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.c +30 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode.h +9 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.c +17 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/ProductionCode2.h +8 -0
- data/vendor/cmock/vendor/unity/examples/example_4/src/meson.build +16 -0
- data/vendor/cmock/vendor/unity/examples/example_4/subprojects/unity.wrap +6 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode.c +69 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/TestProductionCode2.c +41 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/meson.build +7 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/cmock/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -0
- data/vendor/cmock/vendor/unity/examples/unity_config.h +251 -0
- data/vendor/cmock/vendor/unity/extras/bdd/readme.md +40 -0
- data/vendor/cmock/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
- data/vendor/cmock/vendor/unity/extras/bdd/test/meson.build +9 -0
- data/vendor/cmock/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
- data/vendor/cmock/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/cmock/vendor/unity/extras/fixture/readme.md +26 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/meson.build +10 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +310 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +94 -0
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/Makefile +72 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +20 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -0
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -0
- data/vendor/cmock/vendor/unity/extras/memory/readme.md +42 -0
- data/vendor/cmock/vendor/unity/extras/memory/src/meson.build +9 -0
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.c +203 -0
- data/vendor/cmock/vendor/unity/extras/memory/src/unity_memory.h +61 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/Makefile +85 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_Test.c +326 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +50 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.c +57 -0
- data/vendor/cmock/vendor/unity/extras/memory/test/unity_output_Spy.h +17 -0
- data/vendor/cmock/vendor/unity/library.json +25 -0
- data/vendor/cmock/vendor/unity/meson.build +80 -0
- data/vendor/cmock/vendor/unity/meson_options.txt +3 -0
- data/vendor/cmock/vendor/unity/platformio-build.py +24 -0
- data/vendor/cmock/vendor/unity/src/meson.build +17 -0
- data/vendor/cmock/vendor/unity/src/unity.c +2501 -0
- data/vendor/cmock/vendor/unity/src/unity.h +698 -0
- data/vendor/cmock/vendor/unity/src/unity_internals.h +1183 -0
- data/vendor/cmock/vendor/unity/test/Makefile +167 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +61 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +57 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +55 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.h +15 -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 +13 -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 +67 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +70 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +58 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +67 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +70 -0
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +71 -0
- data/vendor/cmock/vendor/unity/test/rakefile +164 -0
- data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +316 -0
- data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +164 -0
- data/vendor/cmock/vendor/unity/test/targets/ansi.yml +51 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +79 -0
- data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +79 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +52 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +53 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +50 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +62 -0
- data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +50 -0
- data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +98 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +105 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +99 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +99 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +97 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +101 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +119 -0
- data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +106 -0
- data/vendor/cmock/vendor/unity/test/testdata/CException.h +18 -0
- data/vendor/cmock/vendor/unity/test/testdata/Defs.h +16 -0
- data/vendor/cmock/vendor/unity/test/testdata/cmock.h +21 -0
- data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +20 -0
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +204 -0
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +73 -0
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +200 -0
- data/vendor/cmock/vendor/unity/test/tests/self_assessment_utils.h +151 -0
- data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +1341 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_arrays.c +2941 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_core.c +375 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_doubles.c +1285 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_floats.c +1395 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers.c +2863 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_integers_64.c +783 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_memory.c +82 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterized.c +309 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
- data/vendor/cmock/vendor/unity/test/tests/test_unity_strings.c +330 -0
- data/vendor/cmock/vendor/unity/test/tests/types_for_test.h +21 -0
- data/vendor/cmock/vendor/unity/unityConfig.cmake +1 -0
- data/vendor/diy/History.txt +28 -0
- data/vendor/diy/LICENSE.txt +7 -0
- data/vendor/diy/README.rdoc +215 -0
- data/vendor/diy/Rakefile +33 -0
- data/vendor/diy/TODO.txt +9 -0
- data/vendor/diy/diy.gemspec +131 -0
- data/vendor/diy/lib/diy/factory.rb +44 -0
- data/vendor/diy/lib/diy.rb +411 -0
- data/vendor/diy/sample_code/car.rb +15 -0
- data/vendor/diy/sample_code/chassis.rb +13 -0
- data/vendor/diy/sample_code/diy_example.rb +34 -0
- data/vendor/diy/sample_code/engine.rb +13 -0
- data/vendor/diy/sample_code/objects.yml +18 -0
- data/vendor/diy/test/constructor.rb +127 -0
- data/vendor/diy/test/diy_test.rb +616 -0
- data/vendor/diy/test/factory_test.rb +87 -0
- data/vendor/diy/test/files/broken_construction.yml +15 -0
- data/vendor/diy/test/files/cat/cat.rb +11 -0
- data/vendor/diy/test/files/cat/extra_conflict.yml +13 -0
- data/vendor/diy/test/files/cat/heritage.rb +10 -0
- data/vendor/diy/test/files/cat/needs_input.yml +11 -0
- data/vendor/diy/test/files/cat/the_cat_lineage.rb +9 -0
- data/vendor/diy/test/files/dog/dog_model.rb +11 -0
- data/vendor/diy/test/files/dog/dog_presenter.rb +11 -0
- data/vendor/diy/test/files/dog/dog_view.rb +10 -0
- data/vendor/diy/test/files/dog/file_resolver.rb +10 -0
- data/vendor/diy/test/files/dog/other_thing.rb +10 -0
- data/vendor/diy/test/files/dog/simple.yml +19 -0
- data/vendor/diy/test/files/donkey/foo/bar/qux.rb +15 -0
- data/vendor/diy/test/files/donkey/foo.rb +16 -0
- data/vendor/diy/test/files/factory/beef.rb +13 -0
- data/vendor/diy/test/files/factory/dog.rb +14 -0
- data/vendor/diy/test/files/factory/factory.yml +27 -0
- data/vendor/diy/test/files/factory/farm/llama.rb +15 -0
- data/vendor/diy/test/files/factory/farm/pork.rb +15 -0
- data/vendor/diy/test/files/factory/kitten.rb +21 -0
- data/vendor/diy/test/files/fud/objects.yml +21 -0
- data/vendor/diy/test/files/fud/toy.rb +22 -0
- data/vendor/diy/test/files/functions/attached_things_builder.rb +10 -0
- data/vendor/diy/test/files/functions/invalid_method.yml +13 -0
- data/vendor/diy/test/files/functions/method_extractor.rb +11 -0
- data/vendor/diy/test/files/functions/nonsingleton_objects.yml +14 -0
- data/vendor/diy/test/files/functions/objects.yml +30 -0
- data/vendor/diy/test/files/functions/thing.rb +11 -0
- data/vendor/diy/test/files/functions/thing_builder.rb +33 -0
- data/vendor/diy/test/files/functions/things_builder.rb +11 -0
- data/vendor/diy/test/files/gnu/objects.yml +22 -0
- data/vendor/diy/test/files/gnu/thinger.rb +15 -0
- data/vendor/diy/test/files/goat/base.rb +16 -0
- data/vendor/diy/test/files/goat/can.rb +14 -0
- data/vendor/diy/test/files/goat/goat.rb +14 -0
- data/vendor/diy/test/files/goat/objects.yml +20 -0
- data/vendor/diy/test/files/goat/paper.rb +14 -0
- data/vendor/diy/test/files/goat/plane.rb +15 -0
- data/vendor/diy/test/files/goat/shirt.rb +14 -0
- data/vendor/diy/test/files/goat/wings.rb +16 -0
- data/vendor/diy/test/files/horse/holder_thing.rb +11 -0
- data/vendor/diy/test/files/horse/objects.yml +15 -0
- data/vendor/diy/test/files/namespace/animal/bird.rb +13 -0
- data/vendor/diy/test/files/namespace/animal/cat.rb +13 -0
- data/vendor/diy/test/files/namespace/animal/reptile/hardshell/turtle.rb +16 -0
- data/vendor/diy/test/files/namespace/animal/reptile/lizard.rb +15 -0
- data/vendor/diy/test/files/namespace/bad_module_specified.yml +16 -0
- data/vendor/diy/test/files/namespace/class_name_combine.yml +16 -0
- data/vendor/diy/test/files/namespace/hello.txt +1 -0
- data/vendor/diy/test/files/namespace/no_module_specified.yml +16 -0
- data/vendor/diy/test/files/namespace/objects.yml +29 -0
- data/vendor/diy/test/files/namespace/road.rb +10 -0
- data/vendor/diy/test/files/namespace/sky.rb +10 -0
- data/vendor/diy/test/files/namespace/subcontext.yml +30 -0
- data/vendor/diy/test/files/non_singleton/air.rb +10 -0
- data/vendor/diy/test/files/non_singleton/fat_cat.rb +11 -0
- data/vendor/diy/test/files/non_singleton/objects.yml +27 -0
- data/vendor/diy/test/files/non_singleton/pig.rb +11 -0
- data/vendor/diy/test/files/non_singleton/thread_spinner.rb +11 -0
- data/vendor/diy/test/files/non_singleton/tick.rb +11 -0
- data/vendor/diy/test/files/non_singleton/yard.rb +10 -0
- data/vendor/diy/test/files/yak/core_model.rb +11 -0
- data/vendor/diy/test/files/yak/core_presenter.rb +11 -0
- data/vendor/diy/test/files/yak/core_view.rb +9 -0
- data/vendor/diy/test/files/yak/data_source.rb +9 -0
- data/vendor/diy/test/files/yak/fringe_model.rb +11 -0
- data/vendor/diy/test/files/yak/fringe_presenter.rb +11 -0
- data/vendor/diy/test/files/yak/fringe_view.rb +9 -0
- data/vendor/diy/test/files/yak/giant_squid.rb +11 -0
- data/vendor/diy/test/files/yak/krill.rb +10 -0
- data/vendor/diy/test/files/yak/my_objects.yml +29 -0
- data/vendor/diy/test/files/yak/sub_sub_context_test.yml +35 -0
- data/vendor/diy/test/test_helper.rb +63 -0
- data/vendor/unity/CMakeLists.txt +172 -0
- data/vendor/unity/LICENSE.txt +21 -0
- data/vendor/unity/README.md +234 -0
- data/vendor/unity/auto/__init__.py +7 -0
- data/vendor/unity/auto/colour_prompt.rb +120 -0
- data/vendor/unity/auto/colour_reporter.rb +40 -0
- data/vendor/unity/auto/extract_version.py +22 -0
- data/vendor/unity/auto/generate_config.yml +43 -0
- data/vendor/unity/auto/generate_module.rb +318 -0
- data/vendor/unity/auto/generate_test_runner.rb +547 -0
- data/vendor/unity/auto/parse_output.rb +390 -0
- data/vendor/unity/auto/run_test.erb +37 -0
- data/vendor/unity/auto/stylize_as_junit.py +161 -0
- data/vendor/unity/auto/stylize_as_junit.rb +253 -0
- data/vendor/unity/auto/test_file_filter.rb +28 -0
- data/vendor/unity/auto/type_sanitizer.rb +13 -0
- data/vendor/unity/auto/unity_test_summary.py +140 -0
- data/vendor/unity/auto/unity_test_summary.rb +140 -0
- data/vendor/unity/auto/yaml_helper.rb +23 -0
- data/vendor/unity/docs/CODE_OF_CONDUCT.md +138 -0
- data/vendor/unity/docs/CONTRIBUTING.md +238 -0
- data/vendor/unity/docs/MesonGeneratorRunner.md +18 -0
- data/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +187 -0
- data/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/unity/docs/UnityAssertionsReference.md +860 -0
- data/vendor/unity/docs/UnityChangeLog.md +110 -0
- data/vendor/unity/docs/UnityConfigurationGuide.md +654 -0
- data/vendor/unity/docs/UnityGettingStartedGuide.md +242 -0
- data/vendor/unity/docs/UnityHelperScriptsGuide.md +533 -0
- data/vendor/unity/docs/UnityKnownIssues.md +13 -0
- data/vendor/unity/examples/example_1/makefile +73 -0
- data/vendor/unity/examples/example_1/meson.build +48 -0
- data/vendor/unity/examples/example_1/readme.txt +12 -0
- data/vendor/unity/examples/example_1/src/ProductionCode.c +30 -0
- data/vendor/unity/examples/example_1/src/ProductionCode.h +9 -0
- data/vendor/unity/examples/example_1/src/ProductionCode2.c +17 -0
- data/vendor/unity/examples/example_1/src/ProductionCode2.h +8 -0
- data/vendor/unity/examples/example_1/subprojects/unity.wrap +3 -0
- data/vendor/unity/examples/example_1/test/TestProductionCode.c +68 -0
- data/vendor/unity/examples/example_1/test/TestProductionCode2.c +37 -0
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/unity/examples/example_2/makefile +72 -0
- data/vendor/unity/examples/example_2/readme.txt +5 -0
- data/vendor/unity/examples/example_2/src/ProductionCode.c +30 -0
- data/vendor/unity/examples/example_2/src/ProductionCode.h +9 -0
- data/vendor/unity/examples/example_2/src/ProductionCode2.c +17 -0
- data/vendor/unity/examples/example_2/src/ProductionCode2.h +8 -0
- data/vendor/unity/examples/example_2/test/TestProductionCode.c +71 -0
- data/vendor/unity/examples/example_2/test/TestProductionCode2.c +40 -0
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +16 -0
- data/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +18 -0
- data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +19 -0
- data/vendor/unity/examples/example_3/helper/UnityHelper.c +17 -0
- data/vendor/unity/examples/example_3/helper/UnityHelper.h +19 -0
- data/vendor/unity/examples/example_3/rakefile.rb +45 -0
- data/vendor/unity/examples/example_3/rakefile_helper.rb +255 -0
- data/vendor/unity/examples/example_3/readme.txt +13 -0
- data/vendor/unity/examples/example_3/src/ProductionCode.c +30 -0
- data/vendor/unity/examples/example_3/src/ProductionCode.h +9 -0
- data/vendor/unity/examples/example_3/src/ProductionCode2.c +17 -0
- data/vendor/unity/examples/example_3/src/ProductionCode2.h +8 -0
- data/vendor/unity/examples/example_3/target_gcc_32.yml +54 -0
- data/vendor/unity/examples/example_3/test/TestProductionCode.c +68 -0
- data/vendor/unity/examples/example_3/test/TestProductionCode2.c +37 -0
- data/vendor/unity/examples/example_4/meson.build +12 -0
- data/vendor/unity/examples/example_4/readme.txt +15 -0
- data/vendor/unity/examples/example_4/src/ProductionCode.c +30 -0
- data/vendor/unity/examples/example_4/src/ProductionCode.h +9 -0
- data/vendor/unity/examples/example_4/src/ProductionCode2.c +17 -0
- data/vendor/unity/examples/example_4/src/ProductionCode2.h +8 -0
- data/vendor/unity/examples/example_4/src/meson.build +16 -0
- data/vendor/unity/examples/example_4/subprojects/unity.wrap +6 -0
- data/vendor/unity/examples/example_4/test/TestProductionCode.c +69 -0
- data/vendor/unity/examples/example_4/test/TestProductionCode2.c +41 -0
- data/vendor/unity/examples/example_4/test/meson.build +7 -0
- data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode2_Runner.c +53 -0
- data/vendor/unity/examples/example_4/test/test_runners/TestProductionCode_Runner.c +57 -0
- data/vendor/unity/examples/example_4/test/test_runners/meson.build +13 -0
- data/vendor/unity/examples/unity_config.h +251 -0
- data/vendor/unity/extras/bdd/readme.md +40 -0
- data/vendor/unity/extras/bdd/src/unity_bdd.h +44 -0
- data/vendor/unity/extras/bdd/test/meson.build +9 -0
- data/vendor/unity/extras/bdd/test/test_bdd.c +129 -0
- data/vendor/unity/extras/eclipse/error_parsers.txt +26 -0
- data/vendor/unity/extras/fixture/readme.md +26 -0
- data/vendor/unity/extras/fixture/src/meson.build +10 -0
- data/vendor/unity/extras/fixture/src/unity_fixture.c +310 -0
- data/vendor/unity/extras/fixture/src/unity_fixture.h +94 -0
- data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +50 -0
- data/vendor/unity/extras/fixture/test/Makefile +72 -0
- data/vendor/unity/extras/fixture/test/main/AllTests.c +20 -0
- data/vendor/unity/extras/fixture/test/template_fixture_tests.c +39 -0
- data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +245 -0
- data/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +32 -0
- data/vendor/unity/extras/memory/readme.md +42 -0
- data/vendor/unity/extras/memory/src/meson.build +9 -0
- data/vendor/unity/extras/memory/src/unity_memory.c +203 -0
- data/vendor/unity/extras/memory/src/unity_memory.h +61 -0
- data/vendor/unity/extras/memory/test/Makefile +85 -0
- data/vendor/unity/extras/memory/test/unity_memory_Test.c +326 -0
- data/vendor/unity/extras/memory/test/unity_memory_TestRunner.c +50 -0
- data/vendor/unity/extras/memory/test/unity_output_Spy.c +57 -0
- data/vendor/unity/extras/memory/test/unity_output_Spy.h +17 -0
- data/vendor/unity/library.json +25 -0
- data/vendor/unity/meson.build +80 -0
- data/vendor/unity/meson_options.txt +3 -0
- data/vendor/unity/platformio-build.py +24 -0
- data/vendor/unity/src/meson.build +17 -0
- data/vendor/unity/src/unity.c +2501 -0
- data/vendor/unity/src/unity.h +698 -0
- data/vendor/unity/src/unity_internals.h +1183 -0
- data/vendor/unity/test/Makefile +167 -0
- data/vendor/unity/test/expectdata/testsample_cmd.c +61 -0
- data/vendor/unity/test/expectdata/testsample_def.c +57 -0
- data/vendor/unity/test/expectdata/testsample_head1.c +55 -0
- data/vendor/unity/test/expectdata/testsample_head1.h +15 -0
- data/vendor/unity/test/expectdata/testsample_mock_cmd.c +80 -0
- data/vendor/unity/test/expectdata/testsample_mock_def.c +76 -0
- data/vendor/unity/test/expectdata/testsample_mock_head1.c +75 -0
- data/vendor/unity/test/expectdata/testsample_mock_head1.h +13 -0
- data/vendor/unity/test/expectdata/testsample_mock_new1.c +89 -0
- data/vendor/unity/test/expectdata/testsample_mock_new2.c +89 -0
- data/vendor/unity/test/expectdata/testsample_mock_param.c +77 -0
- data/vendor/unity/test/expectdata/testsample_mock_run1.c +89 -0
- data/vendor/unity/test/expectdata/testsample_mock_run2.c +89 -0
- data/vendor/unity/test/expectdata/testsample_mock_yaml.c +90 -0
- data/vendor/unity/test/expectdata/testsample_new1.c +67 -0
- data/vendor/unity/test/expectdata/testsample_new2.c +70 -0
- data/vendor/unity/test/expectdata/testsample_param.c +58 -0
- data/vendor/unity/test/expectdata/testsample_run1.c +67 -0
- data/vendor/unity/test/expectdata/testsample_run2.c +70 -0
- data/vendor/unity/test/expectdata/testsample_yaml.c +71 -0
- data/vendor/unity/test/rakefile +164 -0
- data/vendor/unity/test/rakefile_helper.rb +316 -0
- data/vendor/unity/test/spec/generate_module_existing_file_spec.rb +164 -0
- data/vendor/unity/test/targets/ansi.yml +51 -0
- data/vendor/unity/test/targets/clang_file.yml +79 -0
- data/vendor/unity/test/targets/clang_strict.yml +79 -0
- data/vendor/unity/test/targets/gcc_32.yml +52 -0
- data/vendor/unity/test/targets/gcc_64.yml +53 -0
- data/vendor/unity/test/targets/gcc_auto_limits.yml +50 -0
- data/vendor/unity/test/targets/gcc_auto_stdint.yml +62 -0
- data/vendor/unity/test/targets/gcc_manual_math.yml +50 -0
- data/vendor/unity/test/targets/hitech_picc18.yml +98 -0
- data/vendor/unity/test/targets/iar_arm_v4.yml +105 -0
- data/vendor/unity/test/targets/iar_arm_v5.yml +99 -0
- data/vendor/unity/test/targets/iar_arm_v5_3.yml +99 -0
- data/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +97 -0
- data/vendor/unity/test/targets/iar_cortexm3_v5.yml +101 -0
- data/vendor/unity/test/targets/iar_msp430.yml +119 -0
- data/vendor/unity/test/targets/iar_sh2a_v6.yml +106 -0
- data/vendor/unity/test/testdata/CException.h +18 -0
- data/vendor/unity/test/testdata/Defs.h +16 -0
- data/vendor/unity/test/testdata/cmock.h +21 -0
- data/vendor/unity/test/testdata/mockMock.h +20 -0
- data/vendor/unity/test/testdata/testRunnerGenerator.c +204 -0
- data/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +73 -0
- data/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +200 -0
- data/vendor/unity/test/tests/self_assessment_utils.h +151 -0
- data/vendor/unity/test/tests/test_generate_test_runner.rb +1341 -0
- data/vendor/unity/test/tests/test_unity_arrays.c +2941 -0
- data/vendor/unity/test/tests/test_unity_core.c +375 -0
- data/vendor/unity/test/tests/test_unity_doubles.c +1285 -0
- data/vendor/unity/test/tests/test_unity_floats.c +1395 -0
- data/vendor/unity/test/tests/test_unity_integers.c +2863 -0
- data/vendor/unity/test/tests/test_unity_integers_64.c +783 -0
- data/vendor/unity/test/tests/test_unity_memory.c +82 -0
- data/vendor/unity/test/tests/test_unity_parameterized.c +309 -0
- data/vendor/unity/test/tests/test_unity_parameterizedDemo.c +28 -0
- data/vendor/unity/test/tests/test_unity_strings.c +330 -0
- data/vendor/unity/test/tests/types_for_test.h +21 -0
- data/vendor/unity/unityConfig.cmake +1 -0
- metadata +1211 -251
- data/.gitignore +0 -14
- data/.vim +0 -1
- data/.yardopts +0 -1
- data/LICENSE +0 -19
- data/ceedling-gem.sublime-project +0 -575
- data/examples/temp_sensor/rakefile.rb +0 -4
- data/examples/temp_sensor/src/AT91SAM7X256.h +0 -2556
- data/examples/temp_sensor/src/UsartGetChar.c +0 -6
- data/examples/temp_sensor/src/UsartGetChar.h +0 -8
- data/examples/temp_sensor/test/test_AdcConductor.c +0 -121
- data/examples/temp_sensor/test/test_AdcHardware.c +0 -44
- data/examples/temp_sensor/test/test_AdcHardwareConfigurator.c +0 -43
- data/examples/temp_sensor/test/test_AdcModel.c +0 -33
- data/examples/temp_sensor/test/test_AdcTemperatureSensor.c +0 -47
- data/examples/temp_sensor/test/test_Executor.c +0 -36
- data/examples/temp_sensor/test/test_Main.c +0 -24
- data/examples/temp_sensor/test/test_Model.c +0 -20
- data/examples/temp_sensor/test/test_TaskScheduler.c +0 -104
- data/examples/temp_sensor/test/test_TemperatureCalculator.c +0 -33
- data/examples/temp_sensor/test/test_TemperatureFilter.c +0 -71
- data/examples/temp_sensor/test/test_TimerConductor.c +0 -32
- data/examples/temp_sensor/test/test_TimerConfigurator.c +0 -112
- data/examples/temp_sensor/test/test_TimerHardware.c +0 -26
- data/examples/temp_sensor/test/test_TimerInterruptConfigurator.c +0 -78
- data/examples/temp_sensor/test/test_TimerInterruptHandler.c +0 -66
- data/examples/temp_sensor/test/test_TimerModel.c +0 -18
- data/examples/temp_sensor/test/test_UsartBaudRateRegisterCalculator.c +0 -21
- data/examples/temp_sensor/test/test_UsartConductor.c +0 -40
- data/examples/temp_sensor/test/test_UsartConfigurator.c +0 -77
- data/examples/temp_sensor/test/test_UsartGetChar.c +0 -17
- data/examples/temp_sensor/test/test_UsartHardware.c +0 -56
- data/examples/temp_sensor/test/test_UsartModel.c +0 -40
- data/examples/temp_sensor/test/test_UsartPutChar.c +0 -43
- data/examples/temp_sensor/test/test_UsartTransmitBufferStatus.c +0 -22
- data/lib/ceedling/version.rb +0 -16
- data/lib/ceedling/version.rb.erb +0 -16
- data/new_project_template/build/.gitkeep +0 -0
- data/new_project_template/project.yml +0 -65
- data/new_project_template/rakefile.rb +0 -4
- data/new_project_template/src/.gitkeep +0 -0
- data/new_project_template/test/.gitkeep +0 -0
- data/new_project_template/test/support/.gitkeep +0 -0
- data/new_project_template/vendor/ceedling/docs/CExceptionSummary.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/CMock Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/Ceedling Packet.pdf +0 -0
- data/new_project_template/vendor/ceedling/docs/Unity Summary.pdf +0 -0
- data/new_project_template/vendor/ceedling/lib/build_invoker_utils.rb +0 -27
- data/new_project_template/vendor/ceedling/lib/cacheinator.rb +0 -42
- data/new_project_template/vendor/ceedling/lib/cacheinator_helper.rb +0 -12
- data/new_project_template/vendor/ceedling/lib/cmock_builder.rb +0 -15
- data/new_project_template/vendor/ceedling/lib/configurator.rb +0 -329
- data/new_project_template/vendor/ceedling/lib/configurator_builder.rb +0 -419
- data/new_project_template/vendor/ceedling/lib/configurator_plugins.rb +0 -93
- data/new_project_template/vendor/ceedling/lib/configurator_setup.rb +0 -123
- data/new_project_template/vendor/ceedling/lib/configurator_validator.rb +0 -184
- data/new_project_template/vendor/ceedling/lib/constants.rb +0 -91
- data/new_project_template/vendor/ceedling/lib/defaults.rb +0 -378
- data/new_project_template/vendor/ceedling/lib/dependinator.rb +0 -92
- data/new_project_template/vendor/ceedling/lib/file_finder.rb +0 -132
- data/new_project_template/vendor/ceedling/lib/file_finder_helper.rb +0 -54
- data/new_project_template/vendor/ceedling/lib/file_path_utils.rb +0 -189
- data/new_project_template/vendor/ceedling/lib/file_system_utils.rb +0 -69
- data/new_project_template/vendor/ceedling/lib/file_wrapper.rb +0 -74
- data/new_project_template/vendor/ceedling/lib/flaginator.rb +0 -54
- data/new_project_template/vendor/ceedling/lib/generator.rb +0 -162
- data/new_project_template/vendor/ceedling/lib/generator_helper.rb +0 -40
- data/new_project_template/vendor/ceedling/lib/generator_test_results.rb +0 -89
- data/new_project_template/vendor/ceedling/lib/generator_test_results_sanity_checker.rb +0 -62
- data/new_project_template/vendor/ceedling/lib/generator_test_runner.rb +0 -63
- data/new_project_template/vendor/ceedling/lib/loginator.rb +0 -31
- data/new_project_template/vendor/ceedling/lib/makefile.rb +0 -46
- data/new_project_template/vendor/ceedling/lib/objects.yml +0 -301
- data/new_project_template/vendor/ceedling/lib/plugin.rb +0 -79
- data/new_project_template/vendor/ceedling/lib/plugin_manager.rb +0 -95
- data/new_project_template/vendor/ceedling/lib/plugin_manager_helper.rb +0 -19
- data/new_project_template/vendor/ceedling/lib/plugin_reportinator.rb +0 -75
- data/new_project_template/vendor/ceedling/lib/plugin_reportinator_helper.rb +0 -52
- data/new_project_template/vendor/ceedling/lib/preprocessinator.rb +0 -43
- data/new_project_template/vendor/ceedling/lib/preprocessinator_extractor.rb +0 -36
- data/new_project_template/vendor/ceedling/lib/preprocessinator_file_handler.rb +0 -21
- data/new_project_template/vendor/ceedling/lib/preprocessinator_helper.rb +0 -46
- data/new_project_template/vendor/ceedling/lib/preprocessinator_includes_handler.rb +0 -55
- data/new_project_template/vendor/ceedling/lib/project_config_manager.rb +0 -38
- data/new_project_template/vendor/ceedling/lib/project_file_loader.rb +0 -64
- data/new_project_template/vendor/ceedling/lib/rake_utils.rb +0 -17
- data/new_project_template/vendor/ceedling/lib/rake_wrapper.rb +0 -31
- data/new_project_template/vendor/ceedling/lib/rakefile.rb +0 -61
- data/new_project_template/vendor/ceedling/lib/release_invoker.rb +0 -58
- data/new_project_template/vendor/ceedling/lib/release_invoker_helper.rb +0 -16
- data/new_project_template/vendor/ceedling/lib/reportinator.rb +0 -9
- data/new_project_template/vendor/ceedling/lib/rules_cmock.rake +0 -9
- data/new_project_template/vendor/ceedling/lib/rules_preprocess.rake +0 -26
- data/new_project_template/vendor/ceedling/lib/rules_release.rake +0 -79
- data/new_project_template/vendor/ceedling/lib/rules_release_deep_dependencies.rake +0 -15
- data/new_project_template/vendor/ceedling/lib/rules_tests.rake +0 -59
- data/new_project_template/vendor/ceedling/lib/rules_tests_deep_dependencies.rake +0 -15
- data/new_project_template/vendor/ceedling/lib/setupinator.rb +0 -51
- data/new_project_template/vendor/ceedling/lib/stream_wrapper.rb +0 -20
- data/new_project_template/vendor/ceedling/lib/streaminator.rb +0 -41
- data/new_project_template/vendor/ceedling/lib/streaminator_helper.rb +0 -15
- data/new_project_template/vendor/ceedling/lib/system_utils.rb +0 -32
- data/new_project_template/vendor/ceedling/lib/system_wrapper.rb +0 -75
- data/new_project_template/vendor/ceedling/lib/task_invoker.rb +0 -85
- data/new_project_template/vendor/ceedling/lib/tasks_base.rake +0 -104
- data/new_project_template/vendor/ceedling/lib/tasks_filesystem.rake +0 -91
- data/new_project_template/vendor/ceedling/lib/tasks_release.rake +0 -28
- data/new_project_template/vendor/ceedling/lib/tasks_release_deep_dependencies.rake +0 -9
- data/new_project_template/vendor/ceedling/lib/tasks_tests.rake +0 -52
- data/new_project_template/vendor/ceedling/lib/tasks_tests_deep_dependencies.rake +0 -9
- data/new_project_template/vendor/ceedling/lib/tasks_vendor.rake +0 -36
- data/new_project_template/vendor/ceedling/lib/test_includes_extractor.rb +0 -81
- data/new_project_template/vendor/ceedling/lib/test_invoker.rb +0 -97
- data/new_project_template/vendor/ceedling/lib/test_invoker_helper.rb +0 -28
- data/new_project_template/vendor/ceedling/lib/tool_executor.rb +0 -212
- data/new_project_template/vendor/ceedling/lib/tool_executor_helper.rb +0 -115
- data/new_project_template/vendor/ceedling/lib/verbosinator.rb +0 -10
- data/new_project_template/vendor/ceedling/lib/yaml_wrapper.rb +0 -16
- data/new_project_template/vendor/ceedling/plugins/bullseye/bullseye.rake +0 -162
- data/new_project_template/vendor/ceedling/plugins/bullseye/bullseye.rb +0 -173
- data/new_project_template/vendor/ceedling/plugins/bullseye/defaults.yml +0 -53
- data/new_project_template/vendor/ceedling/plugins/bullseye/readme.txt +0 -0
- data/new_project_template/vendor/ceedling/plugins/gcov/defaults.yml +0 -34
- data/new_project_template/vendor/ceedling/plugins/gcov/gcov.rake +0 -152
- data/new_project_template/vendor/ceedling/plugins/gcov/gcov.rb +0 -128
- data/new_project_template/vendor/ceedling/plugins/gcov/readme.txt +0 -0
- data/new_project_template/vendor/ceedling/plugins/gcov/template.erb +0 -15
- data/new_project_template/vendor/ceedling/plugins/module_generator/module_generator.rake +0 -14
- data/new_project_template/vendor/ceedling/plugins/module_generator/module_generator.rb +0 -218
- data/new_project_template/vendor/ceedling/plugins/module_generator/module_generator.yml +0 -4
- data/new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.rb +0 -44
- data/new_project_template/vendor/ceedling/plugins/stdout_ide_tests_report/stdout_ide_tests_report.yml +0 -4
- data/new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/stdout_pretty_tests_report.rb +0 -48
- data/new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/stdout_pretty_tests_report.yml +0 -4
- data/new_project_template/vendor/ceedling/plugins/stdout_pretty_tests_report/template.erb +0 -59
- data/new_project_template/vendor/ceedling/plugins/warnings_report/warnings_report.rb +0 -71
- data/new_project_template/vendor/ceedling/plugins/xml_tests_report/xml_tests_report.rb +0 -110
- data/new_project_template/vendor/ceedling/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/release/version.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/c_exception/lib/CException.c +0 -39
- data/new_project_template/vendor/ceedling/vendor/c_exception/lib/CException.h +0 -70
- data/new_project_template/vendor/ceedling/vendor/c_exception/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/c_exception/release/version.info +0 -2
- data/new_project_template/vendor/ceedling/vendor/cmock/config/production_environment.rb +0 -14
- data/new_project_template/vendor/ceedling/vendor/cmock/config/test_environment.rb +0 -16
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock.rb +0 -65
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_config.rb +0 -129
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_file_writer.rb +0 -33
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator.rb +0 -194
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_array.rb +0 -57
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_callback.rb +0 -78
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_cexception.rb +0 -51
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_expect.rb +0 -86
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +0 -85
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_generator_utils.rb +0 -177
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_header_parser.rb +0 -273
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_plugin_manager.rb +0 -40
- data/new_project_template/vendor/ceedling/vendor/cmock/lib/cmock_unityhelper_parser.rb +0 -74
- data/new_project_template/vendor/ceedling/vendor/cmock/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/cmock/release/version.info +0 -2
- data/new_project_template/vendor/ceedling/vendor/cmock/src/cmock.c +0 -186
- data/new_project_template/vendor/ceedling/vendor/cmock/src/cmock.h +0 -30
- data/new_project_template/vendor/ceedling/vendor/constructor/lib/constructor.rb +0 -127
- data/new_project_template/vendor/ceedling/vendor/constructor/lib/constructor_struct.rb +0 -33
- data/new_project_template/vendor/ceedling/vendor/deep_merge/lib/deep_merge.rb +0 -211
- data/new_project_template/vendor/ceedling/vendor/diy/lib/diy/factory.rb +0 -36
- data/new_project_template/vendor/ceedling/vendor/diy/lib/diy.rb +0 -403
- data/new_project_template/vendor/ceedling/vendor/unity/auto/generate_test_runner.rb +0 -308
- data/new_project_template/vendor/ceedling/vendor/unity/release/build.info +0 -1
- data/new_project_template/vendor/ceedling/vendor/unity/release/version.info +0 -2
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity.c +0 -960
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity.h +0 -232
- data/new_project_template/vendor/ceedling/vendor/unity/src/unity_internals.h +0 -414
- /data/{new_project_template/vendor/ceedling/plugins/bullseye → plugins/bullseye/assets}/template.erb +0 -0
@@ -0,0 +1,1341 @@
|
|
1
|
+
# =========================================================================
|
2
|
+
# Unity - A Test Framework for C
|
3
|
+
# ThrowTheSwitch.org
|
4
|
+
# Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
5
|
+
# SPDX-License-Identifier: MIT
|
6
|
+
# =========================================================================
|
7
|
+
|
8
|
+
require '../auto/generate_test_runner.rb'
|
9
|
+
|
10
|
+
$generate_test_runner_tests = 0
|
11
|
+
$generate_test_runner_failures = 0
|
12
|
+
|
13
|
+
OUT_FILE = 'build/testsample_'
|
14
|
+
|
15
|
+
RUNNER_TESTS = [
|
16
|
+
{ :name => 'DefaultsThroughOptions',
|
17
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
18
|
+
:testdefines => ['TEST'],
|
19
|
+
:options => nil, #defaults
|
20
|
+
:expected => {
|
21
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
22
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
23
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
24
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
25
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
26
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
27
|
+
'should_RunTestsStartingWithShouldByDefault',
|
28
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
29
|
+
],
|
30
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
31
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
32
|
+
}
|
33
|
+
},
|
34
|
+
|
35
|
+
{ :name => 'DefaultsThroughCommandLine',
|
36
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
37
|
+
:testdefines => ['TEST'],
|
38
|
+
:cmdline => "", #defaults
|
39
|
+
:expected => {
|
40
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
41
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
42
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
43
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
44
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
45
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
46
|
+
'should_RunTestsStartingWithShouldByDefault',
|
47
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
48
|
+
],
|
49
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
50
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
51
|
+
}
|
52
|
+
},
|
53
|
+
|
54
|
+
{ :name => 'DefaultsThroughYAMLFile',
|
55
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
56
|
+
:testdefines => ['TEST'],
|
57
|
+
:cmdline => "", #defaults
|
58
|
+
:yaml => {}, #defaults
|
59
|
+
:expected => {
|
60
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
61
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
62
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
63
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
64
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
65
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
66
|
+
'should_RunTestsStartingWithShouldByDefault',
|
67
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
68
|
+
],
|
69
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
70
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
71
|
+
}
|
72
|
+
},
|
73
|
+
|
74
|
+
{ :name => 'ShorterFilterOfJustTest',
|
75
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
76
|
+
:testdefines => ['TEST'],
|
77
|
+
:options => {
|
78
|
+
:test_prefix => "test",
|
79
|
+
},
|
80
|
+
:expected => {
|
81
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
82
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
83
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
84
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
85
|
+
],
|
86
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
87
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
88
|
+
}
|
89
|
+
},
|
90
|
+
|
91
|
+
{ :name => 'ShorterFilterOfJustShould',
|
92
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
93
|
+
:testdefines => ['TEST'],
|
94
|
+
:options => {
|
95
|
+
:test_prefix => "should",
|
96
|
+
},
|
97
|
+
:expected => {
|
98
|
+
:to_pass => [ 'should_RunTestsStartingWithShouldByDefault' ],
|
99
|
+
:to_fail => [ ],
|
100
|
+
:to_ignore => [ ],
|
101
|
+
}
|
102
|
+
},
|
103
|
+
|
104
|
+
{ :name => 'ShorterFilterOfJustSpec',
|
105
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
106
|
+
:testdefines => ['TEST'],
|
107
|
+
:options => {
|
108
|
+
:test_prefix => "spec",
|
109
|
+
},
|
110
|
+
:expected => {
|
111
|
+
:to_pass => [ 'spec_ThisTestPassesWhenNormalSetupRan',
|
112
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
113
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
114
|
+
],
|
115
|
+
:to_fail => [ ],
|
116
|
+
:to_ignore => [ ],
|
117
|
+
}
|
118
|
+
},
|
119
|
+
|
120
|
+
{ :name => 'InjectIncludes',
|
121
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
122
|
+
:testdefines => ['TEST'],
|
123
|
+
:options => {
|
124
|
+
:includes => ['Defs.h'],
|
125
|
+
},
|
126
|
+
:expected => {
|
127
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
128
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
129
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
130
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
131
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
132
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
133
|
+
'should_RunTestsStartingWithShouldByDefault',
|
134
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
135
|
+
],
|
136
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
137
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
138
|
+
}
|
139
|
+
},
|
140
|
+
|
141
|
+
{ :name => 'ParameterizedThroughOptions',
|
142
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
143
|
+
:testdefines => ['TEST'],
|
144
|
+
:options => {
|
145
|
+
:test_prefix => "paratest",
|
146
|
+
:use_param_tests => true,
|
147
|
+
},
|
148
|
+
:features => [ :parameterized ],
|
149
|
+
:expected => {
|
150
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
151
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
152
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
153
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
154
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
155
|
+
'paratest_WorksWithFunctionPointers\(isArgumentOne\)',
|
156
|
+
],
|
157
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
158
|
+
:to_ignore => [ ],
|
159
|
+
}
|
160
|
+
},
|
161
|
+
|
162
|
+
{ :name => 'ParameterizedThroughCommandLine',
|
163
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
164
|
+
:testdefines => ['TEST'],
|
165
|
+
:cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
|
166
|
+
:features => [ :parameterized ],
|
167
|
+
:expected => {
|
168
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
169
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
170
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
171
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
172
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
173
|
+
'paratest_WorksWithFunctionPointers\(isArgumentOne\)',
|
174
|
+
],
|
175
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
176
|
+
:to_ignore => [ ],
|
177
|
+
}
|
178
|
+
},
|
179
|
+
|
180
|
+
{ :name => 'ParameterizedThroughCommandLineAndYaml',
|
181
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
182
|
+
:testdefines => ['TEST'],
|
183
|
+
:cmdline => "--use_param_tests=1",
|
184
|
+
:yaml => {
|
185
|
+
:test_prefix => "paratest"
|
186
|
+
},
|
187
|
+
:features => [ :parameterized ],
|
188
|
+
:expected => {
|
189
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
190
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
191
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
192
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
193
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
194
|
+
'paratest_WorksWithFunctionPointers\(isArgumentOne\)',
|
195
|
+
],
|
196
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
197
|
+
:to_ignore => [ ],
|
198
|
+
}
|
199
|
+
},
|
200
|
+
|
201
|
+
{ :name => 'CException',
|
202
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
203
|
+
:testdefines => ['TEST', 'USE_CEXCEPTION'],
|
204
|
+
:options => {
|
205
|
+
:test_prefix => "extest",
|
206
|
+
:plugins => [ :cexception ],
|
207
|
+
},
|
208
|
+
:expected => {
|
209
|
+
:to_pass => [ 'extest_ShouldHandleCExceptionInTest' ],
|
210
|
+
:to_fail => [ ],
|
211
|
+
:to_ignore => [ ],
|
212
|
+
}
|
213
|
+
},
|
214
|
+
|
215
|
+
{ :name => 'CustomSetupAndTeardownThroughOptions',
|
216
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
217
|
+
:testdefines => ['TEST'],
|
218
|
+
:options => {
|
219
|
+
:test_prefix => "custtest|test",
|
220
|
+
:setup_name => "custom_setup",
|
221
|
+
:teardown_name => "custom_teardown",
|
222
|
+
},
|
223
|
+
:expected => {
|
224
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
225
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
226
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
227
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
228
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
229
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
230
|
+
],
|
231
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
232
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
233
|
+
}
|
234
|
+
},
|
235
|
+
|
236
|
+
{ :name => 'CustomSetupAndTeardownThroughCommandLine',
|
237
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
238
|
+
:testdefines => ['TEST'],
|
239
|
+
:cmdline => " --test_prefix=\"custtest|test\" --setup_name=\"custom_setup\" --teardown_name=\"custom_teardown\"",
|
240
|
+
:expected => {
|
241
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
242
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
243
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
244
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
245
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
246
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
247
|
+
],
|
248
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
249
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
250
|
+
}
|
251
|
+
},
|
252
|
+
|
253
|
+
{ :name => 'CustomSetupAndTeardownThroughYaml',
|
254
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
255
|
+
:testdefines => ['TEST'],
|
256
|
+
:cmdline => " --test_prefix=\"custtest|test\"",
|
257
|
+
:yaml => {
|
258
|
+
:setup_name => "custom_setup",
|
259
|
+
:teardown_name => "custom_teardown",
|
260
|
+
},
|
261
|
+
:expected => {
|
262
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
263
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
264
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
265
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
266
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
267
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
268
|
+
],
|
269
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
270
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
271
|
+
}
|
272
|
+
},
|
273
|
+
|
274
|
+
{ :name => 'CustomMain',
|
275
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
276
|
+
:testdefines => ['TEST', "USE_ANOTHER_MAIN"],
|
277
|
+
:options => {
|
278
|
+
:main_name => "custom_main",
|
279
|
+
},
|
280
|
+
:expected => {
|
281
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
282
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
283
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
284
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
285
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
286
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
287
|
+
'should_RunTestsStartingWithShouldByDefault',
|
288
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
289
|
+
],
|
290
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
291
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
292
|
+
}
|
293
|
+
},
|
294
|
+
|
295
|
+
{ :name => 'CustomSuiteSetupAndTeardown',
|
296
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
297
|
+
:testdefines => ['TEST'],
|
298
|
+
:includes => ['Defs.h'],
|
299
|
+
:options => {
|
300
|
+
:test_prefix => "suitetest|test",
|
301
|
+
:suite_setup => " CounterSuiteSetup = 1;",
|
302
|
+
:suite_teardown => " return num_failures;",
|
303
|
+
},
|
304
|
+
:expected => {
|
305
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
306
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
307
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
308
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
309
|
+
'suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan',
|
310
|
+
],
|
311
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
312
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
313
|
+
}
|
314
|
+
},
|
315
|
+
|
316
|
+
{ :name => 'MainExternDeclaration',
|
317
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
318
|
+
:testdefines => ['TEST'],
|
319
|
+
:includes => ['Defs.h'],
|
320
|
+
:options => {
|
321
|
+
:main_export_decl => "EXTERN_DECL",
|
322
|
+
},
|
323
|
+
:expected => {
|
324
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
325
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
326
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
327
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
328
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
329
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
330
|
+
'should_RunTestsStartingWithShouldByDefault',
|
331
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
332
|
+
],
|
333
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
334
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
335
|
+
}
|
336
|
+
},
|
337
|
+
|
338
|
+
|
339
|
+
#### WITH MOCKS ##########################################
|
340
|
+
|
341
|
+
{ :name => 'DefaultsThroughOptions',
|
342
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
343
|
+
:testdefines => ['TEST'],
|
344
|
+
:options => nil, #defaults
|
345
|
+
:expected => {
|
346
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
347
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
348
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
349
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
350
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
351
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
352
|
+
'should_RunTestsStartingWithShouldByDefault',
|
353
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
354
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
355
|
+
],
|
356
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
357
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
358
|
+
}
|
359
|
+
},
|
360
|
+
|
361
|
+
{ :name => 'DefaultsThroughCommandLine',
|
362
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
363
|
+
:testdefines => ['TEST'],
|
364
|
+
:cmdline => "", #defaults
|
365
|
+
:expected => {
|
366
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
367
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
368
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
369
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
370
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
371
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
372
|
+
'should_RunTestsStartingWithShouldByDefault',
|
373
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
374
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
375
|
+
],
|
376
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
377
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
378
|
+
}
|
379
|
+
},
|
380
|
+
|
381
|
+
{ :name => 'DefaultsThroughYAMLFile',
|
382
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
383
|
+
:testdefines => ['TEST'],
|
384
|
+
:cmdline => "", #defaults
|
385
|
+
:yaml => {}, #defaults
|
386
|
+
:expected => {
|
387
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
388
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
389
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
390
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
391
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
392
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
393
|
+
'should_RunTestsStartingWithShouldByDefault',
|
394
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
395
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
396
|
+
],
|
397
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
398
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
399
|
+
}
|
400
|
+
},
|
401
|
+
|
402
|
+
{ :name => 'ShorterFilterOfJustTest',
|
403
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
404
|
+
:testdefines => ['TEST'],
|
405
|
+
:options => {
|
406
|
+
:test_prefix => "test",
|
407
|
+
},
|
408
|
+
:expected => {
|
409
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
410
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
411
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
412
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
413
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
414
|
+
],
|
415
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
416
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
417
|
+
}
|
418
|
+
},
|
419
|
+
|
420
|
+
{ :name => 'ShorterFilterOfJustShould',
|
421
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
422
|
+
:testdefines => ['TEST'],
|
423
|
+
:options => {
|
424
|
+
:test_prefix => "should",
|
425
|
+
},
|
426
|
+
:expected => {
|
427
|
+
:to_pass => [ 'should_RunTestsStartingWithShouldByDefault' ],
|
428
|
+
:to_fail => [ ],
|
429
|
+
:to_ignore => [ ],
|
430
|
+
}
|
431
|
+
},
|
432
|
+
|
433
|
+
{ :name => 'ShorterFilterOfJustSpec',
|
434
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
435
|
+
:testdefines => ['TEST'],
|
436
|
+
:options => {
|
437
|
+
:test_prefix => "spec",
|
438
|
+
},
|
439
|
+
:expected => {
|
440
|
+
:to_pass => [ 'spec_ThisTestPassesWhenNormalSetupRan',
|
441
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
442
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
443
|
+
],
|
444
|
+
:to_fail => [ ],
|
445
|
+
:to_ignore => [ ],
|
446
|
+
}
|
447
|
+
},
|
448
|
+
|
449
|
+
{ :name => 'InjectIncludes',
|
450
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
451
|
+
:testdefines => ['TEST'],
|
452
|
+
:options => {
|
453
|
+
:includes => ['Defs.h'],
|
454
|
+
},
|
455
|
+
:expected => {
|
456
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
457
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
458
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
459
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
460
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
461
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
462
|
+
'should_RunTestsStartingWithShouldByDefault',
|
463
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
464
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
465
|
+
],
|
466
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
467
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
468
|
+
}
|
469
|
+
},
|
470
|
+
|
471
|
+
{ :name => 'ParameterizedThroughOptions',
|
472
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
473
|
+
:testdefines => ['TEST'],
|
474
|
+
:options => {
|
475
|
+
:test_prefix => "paratest",
|
476
|
+
:use_param_tests => true,
|
477
|
+
},
|
478
|
+
:features => [ :parameterized ],
|
479
|
+
:expected => {
|
480
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
481
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
482
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
483
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
484
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
485
|
+
],
|
486
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
487
|
+
:to_ignore => [ ],
|
488
|
+
}
|
489
|
+
},
|
490
|
+
|
491
|
+
{ :name => 'ParameterizedThroughCommandLine',
|
492
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
493
|
+
:testdefines => ['TEST'],
|
494
|
+
:cmdline => " --test_prefix=\"paratest\" --use_param_tests=1",
|
495
|
+
:features => [ :parameterized ],
|
496
|
+
:expected => {
|
497
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
498
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
499
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
500
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
501
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
502
|
+
],
|
503
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
504
|
+
:to_ignore => [ ],
|
505
|
+
}
|
506
|
+
},
|
507
|
+
|
508
|
+
{ :name => 'ParameterizedThroughCommandLineAndYaml',
|
509
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
510
|
+
:testdefines => ['TEST'],
|
511
|
+
:cmdline => "--use_param_tests=1",
|
512
|
+
:yaml => {
|
513
|
+
:test_prefix => "paratest"
|
514
|
+
},
|
515
|
+
:features => [ :parameterized ],
|
516
|
+
:expected => {
|
517
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
518
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
519
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
520
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
521
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
522
|
+
],
|
523
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
524
|
+
:to_ignore => [ ],
|
525
|
+
}
|
526
|
+
},
|
527
|
+
|
528
|
+
{ :name => 'CException',
|
529
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
530
|
+
:testdefines => ['TEST', 'USE_CEXCEPTION'],
|
531
|
+
:options => {
|
532
|
+
:test_prefix => "extest",
|
533
|
+
:plugins => [ :cexception ],
|
534
|
+
},
|
535
|
+
:expected => {
|
536
|
+
:to_pass => [ 'extest_ShouldHandleCExceptionInTest' ],
|
537
|
+
:to_fail => [ ],
|
538
|
+
:to_ignore => [ ],
|
539
|
+
}
|
540
|
+
},
|
541
|
+
|
542
|
+
{ :name => 'CustomSetupAndTeardownThroughOptions',
|
543
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
544
|
+
:testdefines => ['TEST'],
|
545
|
+
:options => {
|
546
|
+
:test_prefix => "custtest|test",
|
547
|
+
:setup_name => "custom_setup",
|
548
|
+
:teardown_name => "custom_teardown",
|
549
|
+
},
|
550
|
+
:expected => {
|
551
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
552
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
553
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
554
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
555
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
556
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
557
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
558
|
+
],
|
559
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
560
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
561
|
+
}
|
562
|
+
},
|
563
|
+
|
564
|
+
{ :name => 'CustomSetupAndTeardownThroughCommandLine',
|
565
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
566
|
+
:testdefines => ['TEST'],
|
567
|
+
:cmdline => " --test_prefix=\"custtest|test\" --setup_name=\"custom_setup\" --teardown_name=\"custom_teardown\"",
|
568
|
+
:expected => {
|
569
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
570
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
571
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
572
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
573
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
574
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
575
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
576
|
+
],
|
577
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
578
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
579
|
+
}
|
580
|
+
},
|
581
|
+
|
582
|
+
{ :name => 'CustomSetupAndTeardownThroughYaml',
|
583
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
584
|
+
:testdefines => ['TEST'],
|
585
|
+
:cmdline => " --test_prefix=\"custtest|test\"",
|
586
|
+
:yaml => {
|
587
|
+
:setup_name => "custom_setup",
|
588
|
+
:teardown_name => "custom_teardown",
|
589
|
+
},
|
590
|
+
:expected => {
|
591
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
592
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
593
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
594
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
595
|
+
'custtest_ThisTestPassesWhenCustomSetupRan',
|
596
|
+
'custtest_ThisTestPassesWhenCustomTeardownRan',
|
597
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
598
|
+
],
|
599
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
600
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
601
|
+
}
|
602
|
+
},
|
603
|
+
|
604
|
+
{ :name => 'CustomMain',
|
605
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
606
|
+
:testdefines => ['TEST', "USE_ANOTHER_MAIN"],
|
607
|
+
:options => {
|
608
|
+
:main_name => "custom_main",
|
609
|
+
},
|
610
|
+
:expected => {
|
611
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
612
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
613
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
614
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
615
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
616
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
617
|
+
'should_RunTestsStartingWithShouldByDefault',
|
618
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
619
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
620
|
+
],
|
621
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
622
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
623
|
+
}
|
624
|
+
},
|
625
|
+
|
626
|
+
{ :name => 'CustomSuiteSetupAndTeardown',
|
627
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
628
|
+
:testdefines => ['TEST'],
|
629
|
+
:includes => ['Defs.h'],
|
630
|
+
:options => {
|
631
|
+
:test_prefix => "suitetest|test",
|
632
|
+
:suite_setup => " CounterSuiteSetup = 1;",
|
633
|
+
:suite_teardown => " return num_failures;",
|
634
|
+
},
|
635
|
+
:expected => {
|
636
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
637
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
638
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
639
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
640
|
+
'suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan',
|
641
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
642
|
+
],
|
643
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
644
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
645
|
+
}
|
646
|
+
},
|
647
|
+
|
648
|
+
{ :name => 'MainExternDeclaration',
|
649
|
+
:testfile => 'testdata/testRunnerGeneratorWithMocks.c',
|
650
|
+
:testdefines => ['TEST'],
|
651
|
+
:includes => ['Defs.h'],
|
652
|
+
:options => {
|
653
|
+
:main_export_decl => "EXTERN_DECL",
|
654
|
+
},
|
655
|
+
:expected => {
|
656
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
657
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
658
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
659
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
660
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
661
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
662
|
+
'should_RunTestsStartingWithShouldByDefault',
|
663
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
664
|
+
'test_ShouldCallMockInitAndVerifyFunctionsForEachTest',
|
665
|
+
],
|
666
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
667
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
668
|
+
}
|
669
|
+
},
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
#### WITH ARGS ##########################################
|
674
|
+
|
675
|
+
{ :name => 'ArgsThroughOptions',
|
676
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
677
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
678
|
+
:options => {
|
679
|
+
:cmdline_args => true,
|
680
|
+
},
|
681
|
+
:expected => {
|
682
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
683
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
684
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
685
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
686
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
687
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
688
|
+
'should_RunTestsStartingWithShouldByDefault',
|
689
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
690
|
+
],
|
691
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
692
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
693
|
+
}
|
694
|
+
},
|
695
|
+
|
696
|
+
{ :name => 'ArgsThroughCommandLine',
|
697
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
698
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
699
|
+
:cmdline => "--cmdline_args=1",
|
700
|
+
:expected => {
|
701
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
702
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
703
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
704
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
705
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
706
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
707
|
+
'should_RunTestsStartingWithShouldByDefault',
|
708
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
709
|
+
],
|
710
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
711
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
712
|
+
}
|
713
|
+
},
|
714
|
+
|
715
|
+
{ :name => 'ArgsThroughYAMLFile',
|
716
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
717
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
718
|
+
:cmdline => "",
|
719
|
+
:yaml => {
|
720
|
+
:cmdline_args => true,
|
721
|
+
},
|
722
|
+
:expected => {
|
723
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
724
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
725
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
726
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
727
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
728
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
729
|
+
'should_RunTestsStartingWithShouldByDefault',
|
730
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
731
|
+
],
|
732
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
733
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
734
|
+
}
|
735
|
+
},
|
736
|
+
|
737
|
+
{ :name => 'ArgsNameFilterJustTest',
|
738
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
739
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
740
|
+
:options => {
|
741
|
+
:cmdline_args => true,
|
742
|
+
},
|
743
|
+
:cmdline_args => "-f test_",
|
744
|
+
:expected => {
|
745
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
746
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
747
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
748
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
749
|
+
],
|
750
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
751
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
752
|
+
}
|
753
|
+
},
|
754
|
+
|
755
|
+
{ :name => 'ArgsNameFilterJustShould',
|
756
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
757
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
758
|
+
:options => {
|
759
|
+
:cmdline_args => true,
|
760
|
+
},
|
761
|
+
:cmdline_args => "-f should_",
|
762
|
+
:expected => {
|
763
|
+
:to_pass => [ 'should_RunTestsStartingWithShouldByDefault' ],
|
764
|
+
:to_fail => [ ],
|
765
|
+
:to_ignore => [ ],
|
766
|
+
}
|
767
|
+
},
|
768
|
+
|
769
|
+
{ :name => 'ArgsNameFilterTestAndShould',
|
770
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
771
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
772
|
+
:options => {
|
773
|
+
:cmdline_args => true,
|
774
|
+
},
|
775
|
+
:cmdline_args => "-f should_,test_",
|
776
|
+
:expected => {
|
777
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
778
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
779
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
780
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
781
|
+
'should_RunTestsStartingWithShouldByDefault' ],
|
782
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
783
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
784
|
+
}
|
785
|
+
},
|
786
|
+
|
787
|
+
{ :name => 'ArgsNameFilterWithWildcardOnFile',
|
788
|
+
:testfile => 'testdata/testRunnerGeneratorSmall.c',
|
789
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
790
|
+
:options => {
|
791
|
+
:cmdline_args => true,
|
792
|
+
},
|
793
|
+
:cmdline_args => "-f=testRunnerGeneratorSma*",
|
794
|
+
:expected => {
|
795
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
796
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
797
|
+
'spec_ThisTestPassesWhenNormalTeardownRan' ],
|
798
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
799
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
800
|
+
}
|
801
|
+
},
|
802
|
+
|
803
|
+
{ :name => 'ArgsNameFilterWithWildcardAsName',
|
804
|
+
:testfile => 'testdata/testRunnerGeneratorSmall.c',
|
805
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
806
|
+
:options => {
|
807
|
+
:cmdline_args => true,
|
808
|
+
},
|
809
|
+
:cmdline_args => "-f testRunnerGeneratorSmall:*",
|
810
|
+
:expected => {
|
811
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
812
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
813
|
+
'spec_ThisTestPassesWhenNormalTeardownRan' ],
|
814
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
815
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
816
|
+
}
|
817
|
+
},
|
818
|
+
|
819
|
+
{ :name => 'ArgsNameFilterWithWildcardOnName',
|
820
|
+
:testfile => 'testdata/testRunnerGeneratorSmall.c',
|
821
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
822
|
+
:options => {
|
823
|
+
:cmdline_args => true,
|
824
|
+
},
|
825
|
+
:cmdline_args => "-f testRunnerGeneratorSmall:test_*",
|
826
|
+
:expected => {
|
827
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
828
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
829
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
830
|
+
}
|
831
|
+
},
|
832
|
+
|
833
|
+
{ :name => 'ArgsNameFilterWithWildcardAndShortName',
|
834
|
+
:testfile => 'testdata/testRunnerGeneratorSmall.c',
|
835
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
836
|
+
:options => {
|
837
|
+
:cmdline_args => true,
|
838
|
+
},
|
839
|
+
:cmdline_args => "-f testRunnerGeneratorSmall:te*",
|
840
|
+
:expected => {
|
841
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
842
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
843
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
844
|
+
}
|
845
|
+
},
|
846
|
+
|
847
|
+
{ :name => 'ArgsNameFilterWithWildcardOnBoth',
|
848
|
+
:testfile => 'testdata/testRunnerGeneratorSmall.c',
|
849
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
850
|
+
:options => {
|
851
|
+
:cmdline_args => true,
|
852
|
+
},
|
853
|
+
:cmdline_args => "-f testRunnerGeneratorSm*:*",
|
854
|
+
:expected => {
|
855
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
856
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
857
|
+
'spec_ThisTestPassesWhenNormalTeardownRan' ],
|
858
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
859
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
860
|
+
}
|
861
|
+
},
|
862
|
+
|
863
|
+
{ :name => 'ArgsExcludeFilterJustTest',
|
864
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
865
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
866
|
+
:options => {
|
867
|
+
:cmdline_args => true,
|
868
|
+
},
|
869
|
+
:cmdline_args => "-x test_",
|
870
|
+
:expected => {
|
871
|
+
:to_pass => [ 'spec_ThisTestPassesWhenNormalSetupRan',
|
872
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
873
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
874
|
+
'should_RunTestsStartingWithShouldByDefault',
|
875
|
+
],
|
876
|
+
:to_fail => [ ],
|
877
|
+
:to_ignore => [ ],
|
878
|
+
}
|
879
|
+
},
|
880
|
+
|
881
|
+
{ :name => 'ArgsIncludeAndExcludeFilter',
|
882
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
883
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
884
|
+
:options => {
|
885
|
+
:cmdline_args => true,
|
886
|
+
:includes => ['Defs.h'],
|
887
|
+
},
|
888
|
+
:cmdline_args => "-f test_ -x Ignored",
|
889
|
+
:expected => {
|
890
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
891
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
892
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
893
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
894
|
+
],
|
895
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
896
|
+
:to_ignore => [ ],
|
897
|
+
}
|
898
|
+
},
|
899
|
+
|
900
|
+
{ :name => 'ArgsIncludeSingleTest',
|
901
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
902
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
903
|
+
:options => {
|
904
|
+
:cmdline_args => true,
|
905
|
+
},
|
906
|
+
:cmdline_args => "-f ThisTestAlwaysPasses",
|
907
|
+
:expected => {
|
908
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
909
|
+
:to_fail => [ ],
|
910
|
+
:to_ignore => [ ],
|
911
|
+
}
|
912
|
+
},
|
913
|
+
|
914
|
+
{ :name => 'ArgsIncludeSingleTestInSpecificFile',
|
915
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
916
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
917
|
+
:options => {
|
918
|
+
:cmdline_args => true,
|
919
|
+
},
|
920
|
+
:cmdline_args => "-f testRunnerGenerator:ThisTestAlwaysPasses",
|
921
|
+
:expected => {
|
922
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
923
|
+
:to_fail => [ ],
|
924
|
+
:to_ignore => [ ],
|
925
|
+
}
|
926
|
+
},
|
927
|
+
|
928
|
+
{ :name => 'ArgsIncludeTestFileWithExtension',
|
929
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
930
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
931
|
+
:options => {
|
932
|
+
:cmdline_args => true,
|
933
|
+
},
|
934
|
+
:cmdline_args => "-f testRunnerGenerator.c:ThisTestAlwaysPasses",
|
935
|
+
:expected => {
|
936
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
937
|
+
:to_fail => [ ],
|
938
|
+
:to_ignore => [ ],
|
939
|
+
}
|
940
|
+
},
|
941
|
+
|
942
|
+
{ :name => 'ArgsIncludeDoubleQuotes',
|
943
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
944
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
945
|
+
:options => {
|
946
|
+
:cmdline_args => true,
|
947
|
+
},
|
948
|
+
:cmdline_args => "-f \"testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails\"",
|
949
|
+
:expected => {
|
950
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
951
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
952
|
+
:to_ignore => [ ],
|
953
|
+
}
|
954
|
+
},
|
955
|
+
|
956
|
+
{ :name => 'ArgsIncludeSingleQuotes',
|
957
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
958
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
959
|
+
:options => {
|
960
|
+
:cmdline_args => true,
|
961
|
+
},
|
962
|
+
:cmdline_args => "-f 'testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails'",
|
963
|
+
:expected => {
|
964
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
965
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
966
|
+
:to_ignore => [ ],
|
967
|
+
}
|
968
|
+
},
|
969
|
+
|
970
|
+
{ :name => 'ArgsHandlePreciseMatch',
|
971
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
972
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
973
|
+
:options => {
|
974
|
+
:cmdline_args => true,
|
975
|
+
},
|
976
|
+
:cmdline_args => "-n 'test_ThisTestAlwaysPasses'",
|
977
|
+
:expected => {
|
978
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
979
|
+
:to_fail => [ ],
|
980
|
+
:to_ignore => [ ],
|
981
|
+
}
|
982
|
+
},
|
983
|
+
|
984
|
+
{ :name => 'ArgsHandlePreciseMatches',
|
985
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
986
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
987
|
+
:options => {
|
988
|
+
:cmdline_args => true,
|
989
|
+
},
|
990
|
+
:cmdline_args => "-n 'test_ThisTestAlwaysPasses,test_ThisTestAlwaysFails'",
|
991
|
+
:expected => {
|
992
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
993
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
994
|
+
:to_ignore => [ ],
|
995
|
+
}
|
996
|
+
},
|
997
|
+
|
998
|
+
{ :name => 'ArgsRequiresPreciseMatchNotPartial',
|
999
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1000
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1001
|
+
:options => {
|
1002
|
+
:cmdline_args => true,
|
1003
|
+
},
|
1004
|
+
:cmdline_args => "-n ThisTestAlwaysPass",
|
1005
|
+
:expected => {
|
1006
|
+
:to_pass => [ ],
|
1007
|
+
:to_fail => [ ],
|
1008
|
+
:to_ignore => [ ],
|
1009
|
+
}
|
1010
|
+
},
|
1011
|
+
|
1012
|
+
{ :name => 'ArgsIncludeAValidTestForADifferentFile',
|
1013
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1014
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1015
|
+
:options => {
|
1016
|
+
:cmdline_args => true,
|
1017
|
+
},
|
1018
|
+
:cmdline_args => "-f AnotherFile:ThisTestDoesNotExist",
|
1019
|
+
:expected => {
|
1020
|
+
:to_pass => [ ],
|
1021
|
+
:to_fail => [ ],
|
1022
|
+
:to_ignore => [ ],
|
1023
|
+
}
|
1024
|
+
},
|
1025
|
+
|
1026
|
+
{ :name => 'ArgsIncludeNoTests',
|
1027
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1028
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1029
|
+
:options => {
|
1030
|
+
:cmdline_args => true,
|
1031
|
+
},
|
1032
|
+
:cmdline_args => "-f ThisTestDoesNotExist",
|
1033
|
+
:expected => {
|
1034
|
+
:to_pass => [ ],
|
1035
|
+
:to_fail => [ ],
|
1036
|
+
:to_ignore => [ ],
|
1037
|
+
}
|
1038
|
+
},
|
1039
|
+
|
1040
|
+
{ :name => 'ArgsExcludeAllTests',
|
1041
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1042
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1043
|
+
:options => {
|
1044
|
+
:cmdline_args => true,
|
1045
|
+
},
|
1046
|
+
:cmdline_args => "-x _",
|
1047
|
+
:expected => {
|
1048
|
+
:to_pass => [ ],
|
1049
|
+
:to_fail => [ ],
|
1050
|
+
:to_ignore => [ ],
|
1051
|
+
}
|
1052
|
+
},
|
1053
|
+
|
1054
|
+
{ :name => 'ArgsIncludeFullFile',
|
1055
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1056
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1057
|
+
:options => {
|
1058
|
+
:cmdline_args => true,
|
1059
|
+
},
|
1060
|
+
:cmdline_args => "-f testRunnerGenerator",
|
1061
|
+
:expected => {
|
1062
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses',
|
1063
|
+
'spec_ThisTestPassesWhenNormalSetupRan',
|
1064
|
+
'spec_ThisTestPassesWhenNormalTeardownRan',
|
1065
|
+
'test_NotBeConfusedByLongComplicatedStrings',
|
1066
|
+
'test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings',
|
1067
|
+
'test_StillNotBeConfusedByLongComplicatedStrings',
|
1068
|
+
'should_RunTestsStartingWithShouldByDefault',
|
1069
|
+
'spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan',
|
1070
|
+
],
|
1071
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
1072
|
+
:to_ignore => [ 'test_ThisTestAlwaysIgnored' ],
|
1073
|
+
}
|
1074
|
+
},
|
1075
|
+
|
1076
|
+
{ :name => 'ArgsIncludeWithAlternateFlag',
|
1077
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1078
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1079
|
+
:options => {
|
1080
|
+
:cmdline_args => true,
|
1081
|
+
},
|
1082
|
+
:cmdline_args => "-f=\"testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails\"",
|
1083
|
+
:expected => {
|
1084
|
+
:to_pass => [ 'test_ThisTestAlwaysPasses' ],
|
1085
|
+
:to_fail => [ 'test_ThisTestAlwaysFails' ],
|
1086
|
+
:to_ignore => [ ],
|
1087
|
+
}
|
1088
|
+
},
|
1089
|
+
|
1090
|
+
{ :name => 'ArgsIncludeWithParameterized',
|
1091
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1092
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1093
|
+
:cmdline => "--use_param_tests=1",
|
1094
|
+
:yaml => {
|
1095
|
+
:cmdline_args => true,
|
1096
|
+
:test_prefix => "paratest"
|
1097
|
+
},
|
1098
|
+
:cmdline_args => "-f ShouldHandleParameterizedTests",
|
1099
|
+
:features => [ :parameterized ],
|
1100
|
+
:expected => {
|
1101
|
+
:to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)',
|
1102
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
1103
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
1104
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
1105
|
+
],
|
1106
|
+
:to_fail => [ 'paratest_ShouldHandleParameterizedTestsThatFail\(17\)' ],
|
1107
|
+
:to_ignore => [ ],
|
1108
|
+
}
|
1109
|
+
},
|
1110
|
+
|
1111
|
+
{ :name => 'ArgsList',
|
1112
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1113
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1114
|
+
:options => {
|
1115
|
+
:cmdline_args => true,
|
1116
|
+
},
|
1117
|
+
:cmdline_args => "-l",
|
1118
|
+
:expected => {
|
1119
|
+
:to_pass => [ ],
|
1120
|
+
:to_fail => [ ],
|
1121
|
+
:to_ignore => [ ],
|
1122
|
+
:text => [ "testRunnerGenerator",
|
1123
|
+
"test_ThisTestAlwaysPasses",
|
1124
|
+
"test_ThisTestAlwaysFails",
|
1125
|
+
"test_ThisTestAlwaysIgnored",
|
1126
|
+
"spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan",
|
1127
|
+
"spec_ThisTestPassesWhenNormalSetupRan",
|
1128
|
+
"spec_ThisTestPassesWhenNormalTeardownRan",
|
1129
|
+
"test_NotBeConfusedByLongComplicatedStrings",
|
1130
|
+
"test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings",
|
1131
|
+
"test_StillNotBeConfusedByLongComplicatedStrings",
|
1132
|
+
"should_RunTestsStartingWithShouldByDefault"
|
1133
|
+
]
|
1134
|
+
}
|
1135
|
+
},
|
1136
|
+
|
1137
|
+
{ :name => 'ArgsListParameterized',
|
1138
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1139
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1140
|
+
:options => {
|
1141
|
+
:test_prefix => "paratest",
|
1142
|
+
:use_param_tests => true,
|
1143
|
+
:cmdline_args => true,
|
1144
|
+
},
|
1145
|
+
:cmdline_args => "-l",
|
1146
|
+
:features => [ :parameterized ],
|
1147
|
+
:expected => {
|
1148
|
+
:to_pass => [ ],
|
1149
|
+
:to_fail => [ ],
|
1150
|
+
:to_ignore => [ ],
|
1151
|
+
:text => [ "testRunnerGenerator",
|
1152
|
+
'paratest_ShouldHandleParameterizedTests\(25\)',
|
1153
|
+
'paratest_ShouldHandleParameterizedTests\(125\)',
|
1154
|
+
'paratest_ShouldHandleParameterizedTests\(5\)',
|
1155
|
+
'paratest_ShouldHandleParameterizedTests2\(7\)',
|
1156
|
+
'paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid',
|
1157
|
+
'paratest_ShouldHandleParameterizedTestsThatFail\(17\)',
|
1158
|
+
'paratest_WorksWithFunctionPointers\(isArgumentOne\)',
|
1159
|
+
],
|
1160
|
+
}
|
1161
|
+
},
|
1162
|
+
|
1163
|
+
{ :name => 'ArgsIncompleteIncludeFlags',
|
1164
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1165
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1166
|
+
:options => {
|
1167
|
+
:cmdline_args => true,
|
1168
|
+
},
|
1169
|
+
:cmdline_args => "-f",
|
1170
|
+
:expected => {
|
1171
|
+
:to_pass => [ ],
|
1172
|
+
:to_fail => [ ],
|
1173
|
+
:to_ignore => [ ],
|
1174
|
+
:text => [ "ERROR: No Test String to Include Matches For" ],
|
1175
|
+
}
|
1176
|
+
},
|
1177
|
+
|
1178
|
+
{ :name => 'ArgsIncompleteExcludeFlags',
|
1179
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1180
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1181
|
+
:options => {
|
1182
|
+
:cmdline_args => true,
|
1183
|
+
},
|
1184
|
+
:cmdline_args => "-x",
|
1185
|
+
:expected => {
|
1186
|
+
:to_pass => [ ],
|
1187
|
+
:to_fail => [ ],
|
1188
|
+
:to_ignore => [ ],
|
1189
|
+
:text => [ "ERROR: No Test String to Exclude Matches For" ],
|
1190
|
+
}
|
1191
|
+
},
|
1192
|
+
|
1193
|
+
{ :name => 'ArgsIllegalFlags',
|
1194
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1195
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1196
|
+
:options => {
|
1197
|
+
:cmdline_args => true,
|
1198
|
+
},
|
1199
|
+
:cmdline_args => "-z",
|
1200
|
+
:expected => {
|
1201
|
+
:to_pass => [ ],
|
1202
|
+
:to_fail => [ ],
|
1203
|
+
:to_ignore => [ ],
|
1204
|
+
:text => [
|
1205
|
+
"ERROR: Unknown Option z",
|
1206
|
+
"Options:",
|
1207
|
+
"-l List all tests and exit",
|
1208
|
+
"-f NAME Filter to run only tests whose name includes NAME",
|
1209
|
+
"-n NAME Run only the test named NAME",
|
1210
|
+
"-h show this Help menu",
|
1211
|
+
"-q Quiet/decrease verbosity",
|
1212
|
+
"-v increase Verbosity",
|
1213
|
+
"-x NAME eXclude tests whose name includes NAME",
|
1214
|
+
],
|
1215
|
+
}
|
1216
|
+
},
|
1217
|
+
|
1218
|
+
{ :name => 'ArgsHelp',
|
1219
|
+
:testfile => 'testdata/testRunnerGenerator.c',
|
1220
|
+
:testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'],
|
1221
|
+
:options => {
|
1222
|
+
:cmdline_args => true,
|
1223
|
+
},
|
1224
|
+
:cmdline_args => "-h",
|
1225
|
+
:expected => {
|
1226
|
+
:to_pass => [ ],
|
1227
|
+
:to_fail => [ ],
|
1228
|
+
:to_ignore => [ ],
|
1229
|
+
:text => [
|
1230
|
+
"Options:",
|
1231
|
+
"-l List all tests and exit",
|
1232
|
+
"-f NAME Filter to run only tests whose name includes NAME",
|
1233
|
+
"-n NAME Run only the test named NAME",
|
1234
|
+
"-h show this Help menu",
|
1235
|
+
"-q Quiet/decrease verbosity",
|
1236
|
+
"-v increase Verbosity",
|
1237
|
+
"-x NAME eXclude tests whose name includes NAME",
|
1238
|
+
],
|
1239
|
+
}
|
1240
|
+
},
|
1241
|
+
]
|
1242
|
+
|
1243
|
+
def runner_test(test, runner, expected, test_defines, cmdline_args, features)
|
1244
|
+
# Tack on TEST define for compiling unit tests
|
1245
|
+
load_configuration($cfg_file)
|
1246
|
+
|
1247
|
+
# Drop Out if we're skipping this type of test
|
1248
|
+
if $cfg[:skip_tests] && features
|
1249
|
+
if $cfg[:skip_tests].include?(:parameterized) && features.include?(:parameterized)
|
1250
|
+
report("Skipping Parameterized Tests for this Target:IGNORE")
|
1251
|
+
return true
|
1252
|
+
end
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
#compile objects
|
1256
|
+
obj_list = [
|
1257
|
+
compile(runner, test_defines),
|
1258
|
+
compile(test, test_defines),
|
1259
|
+
compile('../src/unity.c', test_defines),
|
1260
|
+
]
|
1261
|
+
|
1262
|
+
# Link the test executable
|
1263
|
+
test_base = File.basename(test, C_EXTENSION)
|
1264
|
+
link_it(test_base, obj_list)
|
1265
|
+
|
1266
|
+
# Execute unit test and generate results file
|
1267
|
+
output = runtest(test_base, true, cmdline_args)
|
1268
|
+
|
1269
|
+
#compare to the expected pass/fail
|
1270
|
+
allgood = expected[:to_pass].inject(true) {|s,v| s && verify_match(/#{v}:PASS/, output) }
|
1271
|
+
allgood = expected[:to_fail].inject(allgood) {|s,v| s && verify_match(/#{v}:FAIL/, output) }
|
1272
|
+
allgood = expected[:to_ignore].inject(allgood) {|s,v| s && verify_match(/#{v}:IGNORE/, output) }
|
1273
|
+
|
1274
|
+
#verify there weren't more pass/fail/etc than expected
|
1275
|
+
allgood &&= verify_number( expected[:to_pass], /(:PASS)/, output)
|
1276
|
+
allgood &&= verify_number( expected[:to_fail], /(:FAIL)/, output)
|
1277
|
+
allgood &&= verify_number( expected[:to_ignore], /(:IGNORE)/, output)
|
1278
|
+
|
1279
|
+
#if we care about any other text, check that too
|
1280
|
+
if (expected[:text])
|
1281
|
+
allgood = expected[:text].inject(allgood) {|s,v| s && verify_match(/#{v}/, output) }
|
1282
|
+
allgood &&= verify_number( expected[:text], /.+/, output )
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
report output if (!allgood && !$verbose) #report failures if not already reporting everything
|
1286
|
+
return allgood
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
def verify_match(expression, output)
|
1290
|
+
if (expression =~ output)
|
1291
|
+
return true
|
1292
|
+
else
|
1293
|
+
report " FAIL: No Match For /#{expression.to_s}/"
|
1294
|
+
return false
|
1295
|
+
end
|
1296
|
+
end
|
1297
|
+
|
1298
|
+
def verify_number(expected, expression, output)
|
1299
|
+
exp = expected.length
|
1300
|
+
act = output.scan(expression).length
|
1301
|
+
if (exp == act)
|
1302
|
+
return true
|
1303
|
+
else
|
1304
|
+
report " FAIL: Expected #{exp} Matches For /#{expression.to_s}/. Was #{act}"
|
1305
|
+
return false
|
1306
|
+
end
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
RUNNER_TESTS.each do |testset|
|
1310
|
+
basename = File.basename(testset[:testfile], C_EXTENSION)
|
1311
|
+
testset_name = "Runner_#{basename}_#{testset[:name]}"
|
1312
|
+
should testset_name do
|
1313
|
+
runner_name = OUT_FILE + testset[:name] + '_runner.c'
|
1314
|
+
|
1315
|
+
#create a yaml file first if required
|
1316
|
+
yaml_option = ""
|
1317
|
+
if (testset[:yaml])
|
1318
|
+
File.open("build/runner_options.yml",'w') {|f| f << { :unity => testset[:yaml] }.to_yaml }
|
1319
|
+
yaml_option = "build/runner_options.yml"
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
#run script via command line or through hash function call, as requested
|
1323
|
+
if (testset[:cmdline])
|
1324
|
+
cmdstr = "ruby ../auto/generate_test_runner.rb #{yaml_option} #{testset[:cmdline]} \"#{testset[:testfile]}\" \"#{runner_name}\""
|
1325
|
+
`#{cmdstr}`
|
1326
|
+
else
|
1327
|
+
UnityTestRunnerGenerator.new(testset[:options]).run(testset[:testfile], runner_name)
|
1328
|
+
end
|
1329
|
+
|
1330
|
+
#test the script against the specified test file and check results
|
1331
|
+
if (runner_test(testset[:testfile], runner_name, testset[:expected], testset[:testdefines], testset[:cmdline_args], testset[:features]))
|
1332
|
+
report "#{testset_name}:PASS"
|
1333
|
+
else
|
1334
|
+
report "#{testset_name}:FAIL"
|
1335
|
+
$generate_test_runner_failures += 1
|
1336
|
+
end
|
1337
|
+
$generate_test_runner_tests += 1
|
1338
|
+
end
|
1339
|
+
end
|
1340
|
+
|
1341
|
+
raise "There were #{$generate_test_runner_failures.to_s} failures while testing generate_test_runner.rb" if ($generate_test_runner_failures > 0)
|