ceedling 0.28.1 → 0.28.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ceedling +3 -2
- data/docs/CeedlingPacket.md +4 -0
- data/lib/ceedling/configurator_builder.rb +26 -0
- data/lib/ceedling/configurator_setup.rb +1 -0
- data/lib/ceedling/file_finder.rb +7 -1
- data/lib/ceedling/flaginator.rb +28 -8
- data/lib/ceedling/rules_release.rake +3 -3
- data/lib/ceedling/rules_release_deep_dependencies.rake +1 -1
- data/lib/ceedling/version.rb +3 -3
- data/plugins/gcov/config/defaults.yml +4 -3
- data/plugins/module_generator/lib/module_generator.rb +1 -1
- data/plugins/subprojects/README.md +63 -63
- data/plugins/subprojects/config/defaults.yml +33 -33
- data/plugins/subprojects/lib/subprojects.rb +92 -92
- data/plugins/subprojects/subprojects.rake +78 -78
- data/vendor/cmock/docs/CMock_Summary.md +75 -60
- data/vendor/cmock/lib/cmock_config.rb +1 -0
- data/vendor/cmock/lib/cmock_generator.rb +13 -1
- data/vendor/cmock/lib/cmock_generator_plugin_expect.rb +1 -1
- data/vendor/cmock/lib/cmock_generator_plugin_expect_any_args.rb +0 -14
- data/vendor/cmock/lib/cmock_generator_plugin_ignore.rb +4 -0
- data/vendor/cmock/lib/cmock_generator_utils.rb +4 -5
- data/vendor/cmock/lib/cmock_header_parser.rb +26 -28
- data/vendor/cmock/lib/cmock_plugin_manager.rb +27 -12
- data/vendor/cmock/scripts/create_makefile.rb +5 -4
- data/vendor/cmock/scripts/test_summary.rb +1 -1
- data/vendor/cmock/test/system/test_interactions/ignore_and_return.yml +167 -0
- data/vendor/cmock/test/system/test_interactions/ignore_strict_mock_calling.yml +37 -0
- data/vendor/cmock/test/unit/cmock_generator_main_test.rb +14 -1
- data/vendor/cmock/test/unit/cmock_generator_plugin_expect_b_test.rb +25 -24
- data/vendor/cmock/test/unit/cmock_header_parser_test.rb +101 -3
- data/vendor/unity/README.md +11 -0
- data/vendor/unity/auto/generate_module.rb +3 -3
- data/vendor/unity/auto/stylize_as_junit.rb +0 -0
- data/vendor/unity/docs/UnityAssertionsReference.md +54 -0
- data/vendor/unity/examples/unity_config.h +6 -4
- data/vendor/unity/extras/fixture/rakefile_helper.rb +1 -1
- data/vendor/unity/extras/fixture/test/Makefile +1 -0
- data/vendor/unity/src/unity.c +121 -73
- data/vendor/unity/src/unity.h +60 -0
- data/vendor/unity/src/unity_internals.h +47 -7
- data/vendor/unity/test/Makefile +1 -0
- data/vendor/unity/test/rakefile_helper.rb +1 -1
- data/vendor/unity/test/tests/testunity.c +508 -164
- metadata +3 -423
- data/out.fail +0 -21
- data/plugins/fake_function_framework/vendor/fff/LICENSE +0 -25
- data/plugins/fake_function_framework/vendor/fff/Makefile +0 -10
- data/plugins/fake_function_framework/vendor/fff/README.md +0 -454
- data/plugins/fake_function_framework/vendor/fff/buildandtest +0 -15
- data/plugins/fake_function_framework/vendor/fff/examples/Makefile +0 -7
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/Makefile +0 -64
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.c +0 -24
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.h +0 -11
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.test.cpp +0 -50
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/driver.test.fff.cpp +0 -62
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/hardware_abstraction.h +0 -15
- data/plugins/fake_function_framework/vendor/fff/examples/driver_testing/registers.h +0 -13
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/DISPLAY.h +0 -17
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/Kata.txt +0 -25
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/Makefile +0 -67
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/SYSTEM.h +0 -21
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI.c +0 -48
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI.h +0 -12
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI_test_ansic.c +0 -183
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/UI_test_cpp.cpp +0 -136
- data/plugins/fake_function_framework/vendor/fff/examples/embedded_ui/test_suite_template.c +0 -34
- data/plugins/fake_function_framework/vendor/fff/fakegen.rb +0 -420
- data/plugins/fake_function_framework/vendor/fff/fff.h +0 -5112
- data/plugins/fake_function_framework/vendor/fff/gtest/Makefile +0 -22
- data/plugins/fake_function_framework/vendor/fff/gtest/gtest-all.cc +0 -9118
- data/plugins/fake_function_framework/vendor/fff/gtest/gtest-main.cc +0 -6
- data/plugins/fake_function_framework/vendor/fff/gtest/gtest.h +0 -19537
- data/plugins/fake_function_framework/vendor/fff/test/Makefile +0 -81
- data/plugins/fake_function_framework/vendor/fff/test/c_test_framework.h +0 -15
- data/plugins/fake_function_framework/vendor/fff/test/fff_test_c.c +0 -108
- data/plugins/fake_function_framework/vendor/fff/test/fff_test_cpp.cpp +0 -45
- data/plugins/fake_function_framework/vendor/fff/test/fff_test_global_c.c +0 -76
- data/plugins/fake_function_framework/vendor/fff/test/fff_test_global_cpp.cpp +0 -23
- data/plugins/fake_function_framework/vendor/fff/test/global_fakes.c +0 -13
- data/plugins/fake_function_framework/vendor/fff/test/global_fakes.h +0 -37
- data/plugins/fake_function_framework/vendor/fff/test/test_cases.include +0 -276
- data/vendor/c_exception/vendor/unity/README.md +0 -220
- data/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +0 -118
- data/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +0 -39
- data/vendor/c_exception/vendor/unity/auto/generate_config.yml +0 -36
- data/vendor/c_exception/vendor/unity/auto/generate_module.rb +0 -308
- data/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +0 -437
- data/vendor/c_exception/vendor/unity/auto/parse_output.rb +0 -220
- data/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +0 -252
- data/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +0 -25
- data/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +0 -6
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +0 -139
- data/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +0 -136
- data/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +0 -146
- data/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +0 -207
- data/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +0 -716
- data/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +0 -398
- data/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +0 -191
- data/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +0 -242
- data/vendor/c_exception/vendor/unity/docs/license.txt +0 -21
- data/vendor/c_exception/vendor/unity/examples/example_1/makefile +0 -71
- data/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +0 -5
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +0 -24
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +0 -3
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +0 -11
- data/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +0 -2
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +0 -62
- data/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +0 -31
- data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -53
- data/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -57
- data/vendor/c_exception/vendor/unity/examples/example_2/makefile +0 -70
- data/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +0 -5
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +0 -24
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +0 -3
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +0 -11
- data/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +0 -2
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +0 -64
- data/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +0 -33
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +0 -9
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +0 -11
- data/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +0 -12
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +0 -10
- data/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +0 -12
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +0 -43
- data/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +0 -249
- data/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +0 -13
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +0 -24
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +0 -3
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +0 -11
- data/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +0 -2
- data/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +0 -46
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +0 -62
- data/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +0 -31
- data/vendor/c_exception/vendor/unity/examples/unity_config.h +0 -237
- data/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +0 -26
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +0 -48
- data/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
- data/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +0 -9
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +0 -432
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +0 -83
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -51
- data/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -47
- data/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +0 -74
- data/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +0 -22
- data/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +0 -39
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -543
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -57
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -57
- data/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
- data/vendor/c_exception/vendor/unity/release/build.info +0 -2
- data/vendor/c_exception/vendor/unity/release/version.info +0 -2
- data/vendor/c_exception/vendor/unity/src/unity.c +0 -1517
- data/vendor/c_exception/vendor/unity/src/unity.h +0 -339
- data/vendor/c_exception/vendor/unity/src/unity_internals.h +0 -784
- data/vendor/c_exception/vendor/unity/test/Makefile +0 -63
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +0 -61
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +0 -57
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +0 -55
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +0 -15
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -80
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +0 -76
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +0 -75
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +0 -13
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +0 -77
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -89
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -90
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +0 -67
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +0 -70
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +0 -58
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +0 -67
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +0 -70
- data/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +0 -71
- data/vendor/c_exception/vendor/unity/test/rakefile +0 -125
- data/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +0 -260
- data/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +0 -158
- data/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +0 -78
- data/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +0 -78
- data/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +0 -49
- data/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +0 -50
- data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +0 -47
- data/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +0 -59
- data/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +0 -47
- data/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +0 -101
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +0 -90
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +0 -80
- data/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +0 -80
- data/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -94
- data/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +0 -84
- data/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +0 -95
- data/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +0 -86
- data/vendor/c_exception/vendor/unity/test/testdata/CException.h +0 -11
- data/vendor/c_exception/vendor/unity/test/testdata/Defs.h +0 -8
- data/vendor/c_exception/vendor/unity/test/testdata/cmock.h +0 -14
- data/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +0 -13
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +0 -183
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +0 -67
- data/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +0 -192
- data/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +0 -1252
- data/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +0 -110
- data/vendor/c_exception/vendor/unity/test/tests/testunity.c +0 -4993
- data/vendor/cmock/vendor/c_exception/Gemfile +0 -4
- data/vendor/cmock/vendor/c_exception/Gemfile.lock +0 -12
- data/vendor/cmock/vendor/c_exception/LICENSE.txt +0 -30
- data/vendor/cmock/vendor/c_exception/README.md +0 -162
- data/vendor/cmock/vendor/c_exception/Rakefile +0 -42
- data/vendor/cmock/vendor/c_exception/docs/CException.md +0 -292
- data/vendor/cmock/vendor/c_exception/docs/ThrowTheSwitchCodingStandard.md +0 -207
- data/vendor/cmock/vendor/c_exception/lib/CException.c +0 -46
- data/vendor/cmock/vendor/c_exception/lib/CException.h +0 -110
- data/vendor/cmock/vendor/c_exception/makefile +0 -24
- data/vendor/cmock/vendor/c_exception/release/build.info +0 -2
- data/vendor/cmock/vendor/c_exception/release/version.info +0 -2
- data/vendor/cmock/vendor/c_exception/test/CExceptionConfig.h +0 -46
- data/vendor/cmock/vendor/c_exception/test/TestException.c +0 -391
- data/vendor/cmock/vendor/c_exception/test/TestException_Runner.c +0 -67
- data/vendor/cmock/vendor/c_exception/vendor/unity/README.md +0 -220
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_prompt.rb +0 -118
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/colour_reporter.rb +0 -39
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_config.yml +0 -36
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_module.rb +0 -308
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/generate_test_runner.rb +0 -437
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/parse_output.rb +0 -220
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/stylize_as_junit.rb +0 -252
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/test_file_filter.rb +0 -25
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/type_sanitizer.rb +0 -6
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.py +0 -139
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_test_summary.rb +0 -136
- data/vendor/cmock/vendor/c_exception/vendor/unity/auto/unity_to_junit.py +0 -146
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +0 -207
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityAssertionsReference.md +0 -716
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityConfigurationGuide.md +0 -398
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityGettingStartedGuide.md +0 -191
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/UnityHelperScriptsGuide.md +0 -242
- data/vendor/cmock/vendor/c_exception/vendor/unity/docs/license.txt +0 -21
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/makefile +0 -71
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/readme.txt +0 -5
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode.c +0 -62
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/TestProductionCode2.c +0 -31
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -53
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -57
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/makefile +0 -70
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/readme.txt +0 -5
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode.c +0 -64
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/TestProductionCode2.c +0 -33
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +0 -9
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +0 -11
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_2/test/test_runners/all_tests.c +0 -12
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.c +0 -10
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/helper/UnityHelper.h +0 -12
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile.rb +0 -43
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/rakefile_helper.rb +0 -249
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/readme.txt +0 -13
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/target_gcc_32.yml +0 -46
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode.c +0 -62
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/example_3/test/TestProductionCode2.c +0 -31
- data/vendor/cmock/vendor/c_exception/vendor/unity/examples/unity_config.h +0 -237
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/eclipse/error_parsers.txt +0 -26
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile.rb +0 -48
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/readme.txt +0 -9
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.c +0 -432
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture.h +0 -83
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -51
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -47
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/Makefile +0 -74
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/main/AllTests.c +0 -22
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c +0 -39
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -543
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -57
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -57
- data/vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/build.info +0 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/release/version.info +0 -2
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.c +0 -1517
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity.h +0 -339
- data/vendor/cmock/vendor/c_exception/vendor/unity/src/unity_internals.h +0 -784
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/Makefile +0 -63
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_cmd.c +0 -61
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_def.c +0 -57
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.c +0 -55
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_head1.h +0 -15
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -80
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_def.c +0 -76
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.c +0 -75
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_head1.h +0 -13
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -89
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -89
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_param.c +0 -77
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -89
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -89
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -90
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new1.c +0 -67
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_new2.c +0 -70
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_param.c +0 -58
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run1.c +0 -67
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_run2.c +0 -70
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/expectdata/testsample_yaml.c +0 -71
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile +0 -125
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/rakefile_helper.rb +0 -260
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/spec/generate_module_existing_file_spec.rb +0 -158
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_file.yml +0 -78
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/clang_strict.yml +0 -78
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_32.yml +0 -49
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_64.yml +0 -50
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_limits.yml +0 -47
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_auto_stdint.yml +0 -59
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/gcc_manual_math.yml +0 -47
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/hitech_picc18.yml +0 -101
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v4.yml +0 -90
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5.yml +0 -80
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_arm_v5_3.yml +0 -80
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -94
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_cortexm3_v5.yml +0 -84
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_msp430.yml +0 -95
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/targets/iar_sh2a_v6.yml +0 -86
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/CException.h +0 -11
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/Defs.h +0 -8
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/cmock.h +0 -14
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/mockMock.h +0 -13
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGenerator.c +0 -183
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +0 -67
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +0 -192
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/test_generate_test_runner.rb +0 -1252
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testparameterized.c +0 -110
- data/vendor/cmock/vendor/c_exception/vendor/unity/test/tests/testunity.c +0 -4993
- data/vendor/cmock/vendor/unity/README.md +0 -220
- data/vendor/cmock/vendor/unity/auto/colour_prompt.rb +0 -118
- data/vendor/cmock/vendor/unity/auto/colour_reporter.rb +0 -39
- data/vendor/cmock/vendor/unity/auto/generate_config.yml +0 -36
- data/vendor/cmock/vendor/unity/auto/generate_module.rb +0 -308
- data/vendor/cmock/vendor/unity/auto/generate_test_runner.rb +0 -437
- data/vendor/cmock/vendor/unity/auto/parse_output.rb +0 -220
- data/vendor/cmock/vendor/unity/auto/stylize_as_junit.rb +0 -252
- data/vendor/cmock/vendor/unity/auto/test_file_filter.rb +0 -25
- data/vendor/cmock/vendor/unity/auto/type_sanitizer.rb +0 -6
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.py +0 -139
- data/vendor/cmock/vendor/unity/auto/unity_test_summary.rb +0 -136
- data/vendor/cmock/vendor/unity/auto/unity_to_junit.py +0 -146
- data/vendor/cmock/vendor/unity/docs/ThrowTheSwitchCodingStandard.md +0 -207
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsCheatSheetSuitableforPrintingandPossiblyFraming.pdf +0 -0
- data/vendor/cmock/vendor/unity/docs/UnityAssertionsReference.md +0 -716
- data/vendor/cmock/vendor/unity/docs/UnityConfigurationGuide.md +0 -398
- data/vendor/cmock/vendor/unity/docs/UnityGettingStartedGuide.md +0 -191
- data/vendor/cmock/vendor/unity/docs/UnityHelperScriptsGuide.md +0 -242
- data/vendor/cmock/vendor/unity/docs/license.txt +0 -21
- data/vendor/cmock/vendor/unity/examples/example_1/makefile +0 -71
- data/vendor/cmock/vendor/unity/examples/example_1/readme.txt +0 -5
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/unity/examples/example_1/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode.c +0 -62
- data/vendor/cmock/vendor/unity/examples/example_1/test/TestProductionCode2.c +0 -31
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -53
- data/vendor/cmock/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -57
- data/vendor/cmock/vendor/unity/examples/example_2/makefile +0 -70
- data/vendor/cmock/vendor/unity/examples/example_2/readme.txt +0 -5
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/unity/examples/example_2/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode.c +0 -64
- data/vendor/cmock/vendor/unity/examples/example_2/test/TestProductionCode2.c +0 -33
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode2_Runner.c +0 -9
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/TestProductionCode_Runner.c +0 -11
- data/vendor/cmock/vendor/unity/examples/example_2/test/test_runners/all_tests.c +0 -12
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.c +0 -10
- data/vendor/cmock/vendor/unity/examples/example_3/helper/UnityHelper.h +0 -12
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile.rb +0 -43
- data/vendor/cmock/vendor/unity/examples/example_3/rakefile_helper.rb +0 -249
- data/vendor/cmock/vendor/unity/examples/example_3/readme.txt +0 -13
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.c +0 -24
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode.h +0 -3
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.c +0 -11
- data/vendor/cmock/vendor/unity/examples/example_3/src/ProductionCode2.h +0 -2
- data/vendor/cmock/vendor/unity/examples/example_3/target_gcc_32.yml +0 -46
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode.c +0 -62
- data/vendor/cmock/vendor/unity/examples/example_3/test/TestProductionCode2.c +0 -31
- data/vendor/cmock/vendor/unity/examples/unity_config.h +0 -237
- data/vendor/cmock/vendor/unity/extras/eclipse/error_parsers.txt +0 -26
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile.rb +0 -48
- data/vendor/cmock/vendor/unity/extras/fixture/rakefile_helper.rb +0 -178
- data/vendor/cmock/vendor/unity/extras/fixture/readme.txt +0 -9
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.c +0 -432
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture.h +0 -83
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_internals.h +0 -51
- data/vendor/cmock/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +0 -47
- data/vendor/cmock/vendor/unity/extras/fixture/test/Makefile +0 -74
- data/vendor/cmock/vendor/unity/extras/fixture/test/main/AllTests.c +0 -22
- data/vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c +0 -39
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_Test.c +0 -543
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_fixture_TestRunner.c +0 -57
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.c +0 -57
- data/vendor/cmock/vendor/unity/extras/fixture/test/unity_output_Spy.h +0 -17
- data/vendor/cmock/vendor/unity/release/build.info +0 -2
- data/vendor/cmock/vendor/unity/release/version.info +0 -2
- data/vendor/cmock/vendor/unity/src/unity.c +0 -1517
- data/vendor/cmock/vendor/unity/src/unity.h +0 -339
- data/vendor/cmock/vendor/unity/src/unity_internals.h +0 -784
- data/vendor/cmock/vendor/unity/test/Makefile +0 -63
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_cmd.c +0 -61
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_def.c +0 -57
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.c +0 -55
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_head1.h +0 -15
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_cmd.c +0 -80
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_def.c +0 -76
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.c +0 -75
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_head1.h +0 -13
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new1.c +0 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_new2.c +0 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_param.c +0 -77
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run1.c +0 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_run2.c +0 -89
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_mock_yaml.c +0 -90
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new1.c +0 -67
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_new2.c +0 -70
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_param.c +0 -58
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run1.c +0 -67
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_run2.c +0 -70
- data/vendor/cmock/vendor/unity/test/expectdata/testsample_yaml.c +0 -71
- data/vendor/cmock/vendor/unity/test/rakefile +0 -125
- data/vendor/cmock/vendor/unity/test/rakefile_helper.rb +0 -260
- data/vendor/cmock/vendor/unity/test/spec/generate_module_existing_file_spec.rb +0 -158
- data/vendor/cmock/vendor/unity/test/targets/clang_file.yml +0 -78
- data/vendor/cmock/vendor/unity/test/targets/clang_strict.yml +0 -78
- data/vendor/cmock/vendor/unity/test/targets/gcc_32.yml +0 -49
- data/vendor/cmock/vendor/unity/test/targets/gcc_64.yml +0 -50
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_limits.yml +0 -47
- data/vendor/cmock/vendor/unity/test/targets/gcc_auto_stdint.yml +0 -59
- data/vendor/cmock/vendor/unity/test/targets/gcc_manual_math.yml +0 -47
- data/vendor/cmock/vendor/unity/test/targets/hitech_picc18.yml +0 -101
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v4.yml +0 -90
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5.yml +0 -80
- data/vendor/cmock/vendor/unity/test/targets/iar_arm_v5_3.yml +0 -80
- data/vendor/cmock/vendor/unity/test/targets/iar_armcortex_LM3S9B92_v5_4.yml +0 -94
- data/vendor/cmock/vendor/unity/test/targets/iar_cortexm3_v5.yml +0 -84
- data/vendor/cmock/vendor/unity/test/targets/iar_msp430.yml +0 -95
- data/vendor/cmock/vendor/unity/test/targets/iar_sh2a_v6.yml +0 -86
- data/vendor/cmock/vendor/unity/test/testdata/CException.h +0 -11
- data/vendor/cmock/vendor/unity/test/testdata/Defs.h +0 -8
- data/vendor/cmock/vendor/unity/test/testdata/cmock.h +0 -14
- data/vendor/cmock/vendor/unity/test/testdata/mockMock.h +0 -13
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGenerator.c +0 -183
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorSmall.c +0 -67
- data/vendor/cmock/vendor/unity/test/testdata/testRunnerGeneratorWithMocks.c +0 -192
- data/vendor/cmock/vendor/unity/test/tests/test_generate_test_runner.rb +0 -1252
- data/vendor/cmock/vendor/unity/test/tests/testparameterized.c +0 -110
- data/vendor/cmock/vendor/unity/test/tests/testunity.c +0 -4993
@@ -1,9 +0,0 @@
|
|
1
|
-
Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
2
|
-
|
3
|
-
Unity Project - A Test Framework for C
|
4
|
-
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
5
|
-
[Released under MIT License. Please refer to license.txt for details]
|
6
|
-
|
7
|
-
This Framework is an optional add-on to Unity. By including unity_framework.h in place of unity.h,
|
8
|
-
you may now work with Unity in a manner similar to CppUTest. This framework adds the concepts of
|
9
|
-
test groups and gives finer control of your tests over the command line.
|
@@ -1,432 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
2
|
-
* ==========================================
|
3
|
-
* Unity Project - A Test Framework for C
|
4
|
-
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
5
|
-
* [Released under MIT License. Please refer to license.txt for details]
|
6
|
-
* ========================================== */
|
7
|
-
|
8
|
-
#include "unity_fixture.h"
|
9
|
-
#include "unity_internals.h"
|
10
|
-
#include <string.h>
|
11
|
-
|
12
|
-
struct UNITY_FIXTURE_T UnityFixture;
|
13
|
-
|
14
|
-
/* If you decide to use the function pointer approach.
|
15
|
-
* Build with -D UNITY_OUTPUT_CHAR=outputChar and include <stdio.h>
|
16
|
-
* int (*outputChar)(int) = putchar; */
|
17
|
-
|
18
|
-
#if !defined(UNITY_WEAK_ATTRIBUTE) && !defined(UNITY_WEAK_PRAGMA)
|
19
|
-
void setUp(void) { /*does nothing*/ }
|
20
|
-
void tearDown(void) { /*does nothing*/ }
|
21
|
-
#endif
|
22
|
-
|
23
|
-
static void announceTestRun(unsigned int runNumber)
|
24
|
-
{
|
25
|
-
UnityPrint("Unity test run ");
|
26
|
-
UnityPrintNumberUnsigned(runNumber+1);
|
27
|
-
UnityPrint(" of ");
|
28
|
-
UnityPrintNumberUnsigned(UnityFixture.RepeatCount);
|
29
|
-
UNITY_PRINT_EOL();
|
30
|
-
}
|
31
|
-
|
32
|
-
int UnityMain(int argc, const char* argv[], void (*runAllTests)(void))
|
33
|
-
{
|
34
|
-
int result = UnityGetCommandLineOptions(argc, argv);
|
35
|
-
unsigned int r;
|
36
|
-
if (result != 0)
|
37
|
-
return result;
|
38
|
-
|
39
|
-
for (r = 0; r < UnityFixture.RepeatCount; r++)
|
40
|
-
{
|
41
|
-
UnityBegin(argv[0]);
|
42
|
-
announceTestRun(r);
|
43
|
-
runAllTests();
|
44
|
-
if (!UnityFixture.Verbose) UNITY_PRINT_EOL();
|
45
|
-
UnityEnd();
|
46
|
-
}
|
47
|
-
|
48
|
-
return (int)Unity.TestFailures;
|
49
|
-
}
|
50
|
-
|
51
|
-
static int selected(const char* filter, const char* name)
|
52
|
-
{
|
53
|
-
if (filter == 0)
|
54
|
-
return 1;
|
55
|
-
return strstr(name, filter) ? 1 : 0;
|
56
|
-
}
|
57
|
-
|
58
|
-
static int testSelected(const char* test)
|
59
|
-
{
|
60
|
-
return selected(UnityFixture.NameFilter, test);
|
61
|
-
}
|
62
|
-
|
63
|
-
static int groupSelected(const char* group)
|
64
|
-
{
|
65
|
-
return selected(UnityFixture.GroupFilter, group);
|
66
|
-
}
|
67
|
-
|
68
|
-
void UnityTestRunner(unityfunction* setup,
|
69
|
-
unityfunction* testBody,
|
70
|
-
unityfunction* teardown,
|
71
|
-
const char* printableName,
|
72
|
-
const char* group,
|
73
|
-
const char* name,
|
74
|
-
const char* file,
|
75
|
-
unsigned int line)
|
76
|
-
{
|
77
|
-
if (testSelected(name) && groupSelected(group))
|
78
|
-
{
|
79
|
-
Unity.TestFile = file;
|
80
|
-
Unity.CurrentTestName = printableName;
|
81
|
-
Unity.CurrentTestLineNumber = line;
|
82
|
-
if (!UnityFixture.Verbose)
|
83
|
-
UNITY_OUTPUT_CHAR('.');
|
84
|
-
else
|
85
|
-
{
|
86
|
-
UnityPrint(printableName);
|
87
|
-
#ifndef UNITY_REPEAT_TEST_NAME
|
88
|
-
Unity.CurrentTestName = NULL;
|
89
|
-
#endif
|
90
|
-
}
|
91
|
-
|
92
|
-
Unity.NumberOfTests++;
|
93
|
-
UnityMalloc_StartTest();
|
94
|
-
UnityPointer_Init();
|
95
|
-
|
96
|
-
if (TEST_PROTECT())
|
97
|
-
{
|
98
|
-
setup();
|
99
|
-
testBody();
|
100
|
-
}
|
101
|
-
if (TEST_PROTECT())
|
102
|
-
{
|
103
|
-
teardown();
|
104
|
-
}
|
105
|
-
if (TEST_PROTECT())
|
106
|
-
{
|
107
|
-
UnityPointer_UndoAllSets();
|
108
|
-
if (!Unity.CurrentTestFailed)
|
109
|
-
UnityMalloc_EndTest();
|
110
|
-
}
|
111
|
-
UnityConcludeFixtureTest();
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
void UnityIgnoreTest(const char* printableName, const char* group, const char* name)
|
116
|
-
{
|
117
|
-
if (testSelected(name) && groupSelected(group))
|
118
|
-
{
|
119
|
-
Unity.NumberOfTests++;
|
120
|
-
Unity.TestIgnores++;
|
121
|
-
if (!UnityFixture.Verbose)
|
122
|
-
UNITY_OUTPUT_CHAR('!');
|
123
|
-
else
|
124
|
-
{
|
125
|
-
UnityPrint(printableName);
|
126
|
-
UNITY_PRINT_EOL();
|
127
|
-
}
|
128
|
-
}
|
129
|
-
}
|
130
|
-
|
131
|
-
|
132
|
-
/*------------------------------------------------- */
|
133
|
-
/* Malloc and free stuff */
|
134
|
-
#define MALLOC_DONT_FAIL -1
|
135
|
-
static int malloc_count;
|
136
|
-
static int malloc_fail_countdown = MALLOC_DONT_FAIL;
|
137
|
-
|
138
|
-
void UnityMalloc_StartTest(void)
|
139
|
-
{
|
140
|
-
malloc_count = 0;
|
141
|
-
malloc_fail_countdown = MALLOC_DONT_FAIL;
|
142
|
-
}
|
143
|
-
|
144
|
-
void UnityMalloc_EndTest(void)
|
145
|
-
{
|
146
|
-
malloc_fail_countdown = MALLOC_DONT_FAIL;
|
147
|
-
if (malloc_count != 0)
|
148
|
-
{
|
149
|
-
UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "This test leaks!");
|
150
|
-
}
|
151
|
-
}
|
152
|
-
|
153
|
-
void UnityMalloc_MakeMallocFailAfterCount(int countdown)
|
154
|
-
{
|
155
|
-
malloc_fail_countdown = countdown;
|
156
|
-
}
|
157
|
-
|
158
|
-
/* These definitions are always included from unity_fixture_malloc_overrides.h */
|
159
|
-
/* We undef to use them or avoid conflict with <stdlib.h> per the C standard */
|
160
|
-
#undef malloc
|
161
|
-
#undef free
|
162
|
-
#undef calloc
|
163
|
-
#undef realloc
|
164
|
-
|
165
|
-
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
|
166
|
-
static unsigned char unity_heap[UNITY_INTERNAL_HEAP_SIZE_BYTES];
|
167
|
-
static size_t heap_index;
|
168
|
-
#else
|
169
|
-
#include <stdlib.h>
|
170
|
-
#endif
|
171
|
-
|
172
|
-
typedef struct GuardBytes
|
173
|
-
{
|
174
|
-
size_t size;
|
175
|
-
size_t guard_space;
|
176
|
-
} Guard;
|
177
|
-
|
178
|
-
|
179
|
-
static const char end[] = "END";
|
180
|
-
|
181
|
-
void* unity_malloc(size_t size)
|
182
|
-
{
|
183
|
-
char* mem;
|
184
|
-
Guard* guard;
|
185
|
-
size_t total_size = size + sizeof(Guard) + sizeof(end);
|
186
|
-
|
187
|
-
if (malloc_fail_countdown != MALLOC_DONT_FAIL)
|
188
|
-
{
|
189
|
-
if (malloc_fail_countdown == 0)
|
190
|
-
return NULL;
|
191
|
-
malloc_fail_countdown--;
|
192
|
-
}
|
193
|
-
|
194
|
-
if (size == 0) return NULL;
|
195
|
-
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
|
196
|
-
if (heap_index + total_size > UNITY_INTERNAL_HEAP_SIZE_BYTES)
|
197
|
-
{
|
198
|
-
guard = NULL;
|
199
|
-
}
|
200
|
-
else
|
201
|
-
{
|
202
|
-
guard = (Guard*)&unity_heap[heap_index];
|
203
|
-
heap_index += total_size;
|
204
|
-
}
|
205
|
-
#else
|
206
|
-
guard = (Guard*)UNITY_FIXTURE_MALLOC(total_size);
|
207
|
-
#endif
|
208
|
-
if (guard == NULL) return NULL;
|
209
|
-
malloc_count++;
|
210
|
-
guard->size = size;
|
211
|
-
guard->guard_space = 0;
|
212
|
-
mem = (char*)&(guard[1]);
|
213
|
-
memcpy(&mem[size], end, sizeof(end));
|
214
|
-
|
215
|
-
return (void*)mem;
|
216
|
-
}
|
217
|
-
|
218
|
-
static int isOverrun(void* mem)
|
219
|
-
{
|
220
|
-
Guard* guard = (Guard*)mem;
|
221
|
-
char* memAsChar = (char*)mem;
|
222
|
-
guard--;
|
223
|
-
|
224
|
-
return guard->guard_space != 0 || strcmp(&memAsChar[guard->size], end) != 0;
|
225
|
-
}
|
226
|
-
|
227
|
-
static void release_memory(void* mem)
|
228
|
-
{
|
229
|
-
Guard* guard = (Guard*)mem;
|
230
|
-
guard--;
|
231
|
-
|
232
|
-
malloc_count--;
|
233
|
-
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC
|
234
|
-
if (mem == unity_heap + heap_index - guard->size - sizeof(end))
|
235
|
-
{
|
236
|
-
heap_index -= (guard->size + sizeof(Guard) + sizeof(end));
|
237
|
-
}
|
238
|
-
#else
|
239
|
-
UNITY_FIXTURE_FREE(guard);
|
240
|
-
#endif
|
241
|
-
}
|
242
|
-
|
243
|
-
void unity_free(void* mem)
|
244
|
-
{
|
245
|
-
int overrun;
|
246
|
-
|
247
|
-
if (mem == NULL)
|
248
|
-
{
|
249
|
-
return;
|
250
|
-
}
|
251
|
-
|
252
|
-
overrun = isOverrun(mem);
|
253
|
-
release_memory(mem);
|
254
|
-
if (overrun)
|
255
|
-
{
|
256
|
-
UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "Buffer overrun detected during free()");
|
257
|
-
}
|
258
|
-
}
|
259
|
-
|
260
|
-
void* unity_calloc(size_t num, size_t size)
|
261
|
-
{
|
262
|
-
void* mem = unity_malloc(num * size);
|
263
|
-
if (mem == NULL) return NULL;
|
264
|
-
memset(mem, 0, num * size);
|
265
|
-
return mem;
|
266
|
-
}
|
267
|
-
|
268
|
-
void* unity_realloc(void* oldMem, size_t size)
|
269
|
-
{
|
270
|
-
Guard* guard = (Guard*)oldMem;
|
271
|
-
void* newMem;
|
272
|
-
|
273
|
-
if (oldMem == NULL) return unity_malloc(size);
|
274
|
-
|
275
|
-
guard--;
|
276
|
-
if (isOverrun(oldMem))
|
277
|
-
{
|
278
|
-
release_memory(oldMem);
|
279
|
-
UNITY_TEST_FAIL(Unity.CurrentTestLineNumber, "Buffer overrun detected during realloc()");
|
280
|
-
}
|
281
|
-
|
282
|
-
if (size == 0)
|
283
|
-
{
|
284
|
-
release_memory(oldMem);
|
285
|
-
return NULL;
|
286
|
-
}
|
287
|
-
|
288
|
-
if (guard->size >= size) return oldMem;
|
289
|
-
|
290
|
-
#ifdef UNITY_EXCLUDE_STDLIB_MALLOC /* Optimization if memory is expandable */
|
291
|
-
if (oldMem == unity_heap + heap_index - guard->size - sizeof(end) &&
|
292
|
-
heap_index + size - guard->size <= UNITY_INTERNAL_HEAP_SIZE_BYTES)
|
293
|
-
{
|
294
|
-
release_memory(oldMem); /* Not thread-safe, like unity_heap generally */
|
295
|
-
return unity_malloc(size); /* No memcpy since data is in place */
|
296
|
-
}
|
297
|
-
#endif
|
298
|
-
newMem = unity_malloc(size);
|
299
|
-
if (newMem == NULL) return NULL; /* Do not release old memory */
|
300
|
-
memcpy(newMem, oldMem, guard->size);
|
301
|
-
release_memory(oldMem);
|
302
|
-
return newMem;
|
303
|
-
}
|
304
|
-
|
305
|
-
|
306
|
-
/*-------------------------------------------------------- */
|
307
|
-
/*Automatic pointer restoration functions */
|
308
|
-
struct PointerPair
|
309
|
-
{
|
310
|
-
void** pointer;
|
311
|
-
void* old_value;
|
312
|
-
};
|
313
|
-
|
314
|
-
static struct PointerPair pointer_store[UNITY_MAX_POINTERS];
|
315
|
-
static int pointer_index = 0;
|
316
|
-
|
317
|
-
void UnityPointer_Init(void)
|
318
|
-
{
|
319
|
-
pointer_index = 0;
|
320
|
-
}
|
321
|
-
|
322
|
-
void UnityPointer_Set(void** pointer, void* newValue, UNITY_LINE_TYPE line)
|
323
|
-
{
|
324
|
-
if (pointer_index >= UNITY_MAX_POINTERS)
|
325
|
-
{
|
326
|
-
UNITY_TEST_FAIL(line, "Too many pointers set");
|
327
|
-
}
|
328
|
-
else
|
329
|
-
{
|
330
|
-
pointer_store[pointer_index].pointer = pointer;
|
331
|
-
pointer_store[pointer_index].old_value = *pointer;
|
332
|
-
*pointer = newValue;
|
333
|
-
pointer_index++;
|
334
|
-
}
|
335
|
-
}
|
336
|
-
|
337
|
-
void UnityPointer_UndoAllSets(void)
|
338
|
-
{
|
339
|
-
while (pointer_index > 0)
|
340
|
-
{
|
341
|
-
pointer_index--;
|
342
|
-
*(pointer_store[pointer_index].pointer) =
|
343
|
-
pointer_store[pointer_index].old_value;
|
344
|
-
}
|
345
|
-
}
|
346
|
-
|
347
|
-
int UnityGetCommandLineOptions(int argc, const char* argv[])
|
348
|
-
{
|
349
|
-
int i;
|
350
|
-
UnityFixture.Verbose = 0;
|
351
|
-
UnityFixture.GroupFilter = 0;
|
352
|
-
UnityFixture.NameFilter = 0;
|
353
|
-
UnityFixture.RepeatCount = 1;
|
354
|
-
|
355
|
-
if (argc == 1)
|
356
|
-
return 0;
|
357
|
-
|
358
|
-
for (i = 1; i < argc; )
|
359
|
-
{
|
360
|
-
if (strcmp(argv[i], "-v") == 0)
|
361
|
-
{
|
362
|
-
UnityFixture.Verbose = 1;
|
363
|
-
i++;
|
364
|
-
}
|
365
|
-
else if (strcmp(argv[i], "-g") == 0)
|
366
|
-
{
|
367
|
-
i++;
|
368
|
-
if (i >= argc)
|
369
|
-
return 1;
|
370
|
-
UnityFixture.GroupFilter = argv[i];
|
371
|
-
i++;
|
372
|
-
}
|
373
|
-
else if (strcmp(argv[i], "-n") == 0)
|
374
|
-
{
|
375
|
-
i++;
|
376
|
-
if (i >= argc)
|
377
|
-
return 1;
|
378
|
-
UnityFixture.NameFilter = argv[i];
|
379
|
-
i++;
|
380
|
-
}
|
381
|
-
else if (strcmp(argv[i], "-r") == 0)
|
382
|
-
{
|
383
|
-
UnityFixture.RepeatCount = 2;
|
384
|
-
i++;
|
385
|
-
if (i < argc)
|
386
|
-
{
|
387
|
-
if (*(argv[i]) >= '0' && *(argv[i]) <= '9')
|
388
|
-
{
|
389
|
-
unsigned int digit = 0;
|
390
|
-
UnityFixture.RepeatCount = 0;
|
391
|
-
while (argv[i][digit] >= '0' && argv[i][digit] <= '9')
|
392
|
-
{
|
393
|
-
UnityFixture.RepeatCount *= 10;
|
394
|
-
UnityFixture.RepeatCount += (unsigned int)argv[i][digit++] - '0';
|
395
|
-
}
|
396
|
-
i++;
|
397
|
-
}
|
398
|
-
}
|
399
|
-
}
|
400
|
-
else
|
401
|
-
{
|
402
|
-
/* ignore unknown parameter */
|
403
|
-
i++;
|
404
|
-
}
|
405
|
-
}
|
406
|
-
return 0;
|
407
|
-
}
|
408
|
-
|
409
|
-
void UnityConcludeFixtureTest(void)
|
410
|
-
{
|
411
|
-
if (Unity.CurrentTestIgnored)
|
412
|
-
{
|
413
|
-
Unity.TestIgnores++;
|
414
|
-
UNITY_PRINT_EOL();
|
415
|
-
}
|
416
|
-
else if (!Unity.CurrentTestFailed)
|
417
|
-
{
|
418
|
-
if (UnityFixture.Verbose)
|
419
|
-
{
|
420
|
-
UnityPrint(" PASS");
|
421
|
-
UNITY_PRINT_EOL();
|
422
|
-
}
|
423
|
-
}
|
424
|
-
else /* Unity.CurrentTestFailed */
|
425
|
-
{
|
426
|
-
Unity.TestFailures++;
|
427
|
-
UNITY_PRINT_EOL();
|
428
|
-
}
|
429
|
-
|
430
|
-
Unity.CurrentTestFailed = 0;
|
431
|
-
Unity.CurrentTestIgnored = 0;
|
432
|
-
}
|
@@ -1,83 +0,0 @@
|
|
1
|
-
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
2
|
-
* ==========================================
|
3
|
-
* Unity Project - A Test Framework for C
|
4
|
-
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
5
|
-
* [Released under MIT License. Please refer to license.txt for details]
|
6
|
-
* ========================================== */
|
7
|
-
|
8
|
-
#ifndef UNITY_FIXTURE_H_
|
9
|
-
#define UNITY_FIXTURE_H_
|
10
|
-
|
11
|
-
#include "unity.h"
|
12
|
-
#include "unity_internals.h"
|
13
|
-
#include "unity_fixture_malloc_overrides.h"
|
14
|
-
#include "unity_fixture_internals.h"
|
15
|
-
|
16
|
-
int UnityMain(int argc, const char* argv[], void (*runAllTests)(void));
|
17
|
-
|
18
|
-
|
19
|
-
#define TEST_GROUP(group)\
|
20
|
-
static const char* TEST_GROUP_##group = #group
|
21
|
-
|
22
|
-
#define TEST_SETUP(group) void TEST_##group##_SETUP(void);\
|
23
|
-
void TEST_##group##_SETUP(void)
|
24
|
-
|
25
|
-
#define TEST_TEAR_DOWN(group) void TEST_##group##_TEAR_DOWN(void);\
|
26
|
-
void TEST_##group##_TEAR_DOWN(void)
|
27
|
-
|
28
|
-
|
29
|
-
#define TEST(group, name) \
|
30
|
-
void TEST_##group##_##name##_(void);\
|
31
|
-
void TEST_##group##_##name##_run(void);\
|
32
|
-
void TEST_##group##_##name##_run(void)\
|
33
|
-
{\
|
34
|
-
UnityTestRunner(TEST_##group##_SETUP,\
|
35
|
-
TEST_##group##_##name##_,\
|
36
|
-
TEST_##group##_TEAR_DOWN,\
|
37
|
-
"TEST(" #group ", " #name ")",\
|
38
|
-
TEST_GROUP_##group, #name,\
|
39
|
-
__FILE__, __LINE__);\
|
40
|
-
}\
|
41
|
-
void TEST_##group##_##name##_(void)
|
42
|
-
|
43
|
-
#define IGNORE_TEST(group, name) \
|
44
|
-
void TEST_##group##_##name##_(void);\
|
45
|
-
void TEST_##group##_##name##_run(void);\
|
46
|
-
void TEST_##group##_##name##_run(void)\
|
47
|
-
{\
|
48
|
-
UnityIgnoreTest("IGNORE_TEST(" #group ", " #name ")", TEST_GROUP_##group, #name);\
|
49
|
-
}\
|
50
|
-
void TEST_##group##_##name##_(void)
|
51
|
-
|
52
|
-
/* Call this for each test, insider the group runner */
|
53
|
-
#define RUN_TEST_CASE(group, name) \
|
54
|
-
{ void TEST_##group##_##name##_run(void);\
|
55
|
-
TEST_##group##_##name##_run(); }
|
56
|
-
|
57
|
-
/* This goes at the bottom of each test file or in a separate c file */
|
58
|
-
#define TEST_GROUP_RUNNER(group)\
|
59
|
-
void TEST_##group##_GROUP_RUNNER(void);\
|
60
|
-
void TEST_##group##_GROUP_RUNNER(void)
|
61
|
-
|
62
|
-
/* Call this from main */
|
63
|
-
#define RUN_TEST_GROUP(group)\
|
64
|
-
{ void TEST_##group##_GROUP_RUNNER(void);\
|
65
|
-
TEST_##group##_GROUP_RUNNER(); }
|
66
|
-
|
67
|
-
/* CppUTest Compatibility Macros */
|
68
|
-
#ifndef UNITY_EXCLUDE_CPPUTEST_ASSERTS
|
69
|
-
/* Sets a pointer and automatically restores it to its old value after teardown */
|
70
|
-
#define UT_PTR_SET(ptr, newPointerValue) UnityPointer_Set((void**)&(ptr), (void*)(newPointerValue), __LINE__)
|
71
|
-
#define TEST_ASSERT_POINTERS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_PTR((expected), (actual))
|
72
|
-
#define TEST_ASSERT_BYTES_EQUAL(expected, actual) TEST_ASSERT_EQUAL_HEX8(0xff & (expected), 0xff & (actual))
|
73
|
-
#define FAIL(message) TEST_FAIL_MESSAGE((message))
|
74
|
-
#define CHECK(condition) TEST_ASSERT_TRUE((condition))
|
75
|
-
#define LONGS_EQUAL(expected, actual) TEST_ASSERT_EQUAL_INT((expected), (actual))
|
76
|
-
#define STRCMP_EQUAL(expected, actual) TEST_ASSERT_EQUAL_STRING((expected), (actual))
|
77
|
-
#define DOUBLES_EQUAL(expected, actual, delta) TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual))
|
78
|
-
#endif
|
79
|
-
|
80
|
-
/* You must compile with malloc replacement, as defined in unity_fixture_malloc_overrides.h */
|
81
|
-
void UnityMalloc_MakeMallocFailAfterCount(int count);
|
82
|
-
|
83
|
-
#endif /* UNITY_FIXTURE_H_ */
|