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,86 +0,0 @@
|
|
1
|
-
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 6.0\'
|
2
|
-
compiler:
|
3
|
-
path: [*tools_root, 'sh\bin\iccsh.exe']
|
4
|
-
source_path: '..\src\'
|
5
|
-
unit_tests_path: &unit_tests_path 'tests\'
|
6
|
-
build_path: &build_path 'build\'
|
7
|
-
options:
|
8
|
-
- -e
|
9
|
-
- --char_is_signed
|
10
|
-
- -Ol
|
11
|
-
- --no_cse
|
12
|
-
- --no_unroll
|
13
|
-
- --no_inline
|
14
|
-
- --no_code_motion
|
15
|
-
- --no_tbaa
|
16
|
-
- --no_scheduling
|
17
|
-
- --no_clustering
|
18
|
-
- --debug
|
19
|
-
- --dlib_config
|
20
|
-
- [*tools_root, 'sh\inc\DLib_Product.h']
|
21
|
-
- --double=32
|
22
|
-
- --code_model=huge
|
23
|
-
- --data_model=huge
|
24
|
-
- --core=sh2afpu
|
25
|
-
- --warnings_affect_exit_code
|
26
|
-
- --warnings_are_errors
|
27
|
-
- --mfc
|
28
|
-
- --use_unix_directory_separators
|
29
|
-
- --diag_suppress=Pe161
|
30
|
-
includes:
|
31
|
-
prefix: '-I'
|
32
|
-
items:
|
33
|
-
- [*tools_root, 'sh\inc\']
|
34
|
-
- [*tools_root, 'sh\inc\c']
|
35
|
-
- 'src\'
|
36
|
-
- '..\src\'
|
37
|
-
- 'testdata/'
|
38
|
-
- *unit_tests_path
|
39
|
-
- 'vendor\unity\src\'
|
40
|
-
defines:
|
41
|
-
prefix: '-D'
|
42
|
-
items:
|
43
|
-
- UNITY_SUPPORT_64
|
44
|
-
- 'UNITY_SUPPORT_TEST_CASES'
|
45
|
-
object_files:
|
46
|
-
prefix: '-o'
|
47
|
-
extension: '.o'
|
48
|
-
destination: *build_path
|
49
|
-
linker:
|
50
|
-
path: [*tools_root, 'sh\bin\ilinksh.exe']
|
51
|
-
options:
|
52
|
-
- --redirect __Printf=__PrintfSmall
|
53
|
-
- --redirect __Scanf=__ScanfSmall
|
54
|
-
- --config
|
55
|
-
- [*tools_root, 'sh\config\generic.icf']
|
56
|
-
- --config_def _CSTACK_SIZE=0x800
|
57
|
-
- --config_def _HEAP_SIZE=0x800
|
58
|
-
- --config_def _INT_TABLE=0x10
|
59
|
-
- --entry __iar_program_start
|
60
|
-
- --debug_lib
|
61
|
-
object_files:
|
62
|
-
path: *build_path
|
63
|
-
extension: '.o'
|
64
|
-
bin_files:
|
65
|
-
prefix: '-o'
|
66
|
-
extension: '.out'
|
67
|
-
destination: *build_path
|
68
|
-
simulator:
|
69
|
-
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
70
|
-
pre_support:
|
71
|
-
- --silent
|
72
|
-
- [*tools_root, 'sh\bin\shproc.dll']
|
73
|
-
- [*tools_root, 'sh\bin\shsim.dll']
|
74
|
-
post_support:
|
75
|
-
- --plugin
|
76
|
-
- [*tools_root, 'sh\bin\shbat.dll']
|
77
|
-
- --backend
|
78
|
-
- -B
|
79
|
-
- --core sh2afpu
|
80
|
-
- -p
|
81
|
-
- [*tools_root, 'sh\config\debugger\io7264.ddf']
|
82
|
-
- -d
|
83
|
-
- sim
|
84
|
-
colour: true
|
85
|
-
:unity:
|
86
|
-
:plugins: []
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#ifndef CMOCK_H
|
2
|
-
#define CMOCK_H
|
3
|
-
|
4
|
-
int CMockMemFreeFinalCounter = 0;
|
5
|
-
int mockMock_Init_Counter = 0;
|
6
|
-
int mockMock_Verify_Counter = 0;
|
7
|
-
int mockMock_Destroy_Counter = 0;
|
8
|
-
|
9
|
-
void CMock_Guts_MemFreeFinal(void) { CMockMemFreeFinalCounter++; }
|
10
|
-
void mockMock_Init(void) { mockMock_Init_Counter++; }
|
11
|
-
void mockMock_Verify(void) { mockMock_Verify_Counter++; }
|
12
|
-
void mockMock_Destroy(void) { mockMock_Destroy_Counter++; }
|
13
|
-
|
14
|
-
#endif //CMOCK_H
|
@@ -1,13 +0,0 @@
|
|
1
|
-
#ifndef MOCK_MOCK_H
|
2
|
-
#define MOCK_MOCK_H
|
3
|
-
|
4
|
-
extern int mockMock_Init_Counter;
|
5
|
-
extern int mockMock_Verify_Counter;
|
6
|
-
extern int mockMock_Destroy_Counter;
|
7
|
-
extern int CMockMemFreeFinalCounter;
|
8
|
-
|
9
|
-
void mockMock_Init(void);
|
10
|
-
void mockMock_Verify(void);
|
11
|
-
void mockMock_Destroy(void);
|
12
|
-
|
13
|
-
#endif //MOCK_MOCK_H
|
@@ -1,183 +0,0 @@
|
|
1
|
-
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
2
|
-
|
3
|
-
#include <stdio.h>
|
4
|
-
#include "unity.h"
|
5
|
-
#include "Defs.h"
|
6
|
-
|
7
|
-
#ifdef USE_CEXCEPTION
|
8
|
-
#include "CException.h"
|
9
|
-
#endif
|
10
|
-
|
11
|
-
/* Notes about prefixes:
|
12
|
-
test - normal default prefix. these are "always run" tests for this procedure
|
13
|
-
spec - normal default prefix. required to run default setup/teardown calls.
|
14
|
-
should - normal default prefix.
|
15
|
-
qwiktest - custom prefix for when tests skip all setup/teardown calls.
|
16
|
-
custtest - custom prefix for when tests use custom setup/teardown calls.
|
17
|
-
paratest - custom prefix for when we want to verify parameterized tests.
|
18
|
-
extest - custom prefix only used during cexception
|
19
|
-
suitetest- custom prefix for when we want to use custom suite setup/teardown
|
20
|
-
*/
|
21
|
-
|
22
|
-
/* Support for Meta Test Rig */
|
23
|
-
#define TEST_CASE(a)
|
24
|
-
void putcharSpy(int c) { (void)putchar(c);} // include passthrough for linking tests
|
25
|
-
|
26
|
-
/* Global Variables Used During These Tests */
|
27
|
-
int CounterSetup = 0;
|
28
|
-
int CounterTeardown = 0;
|
29
|
-
int CounterSuiteSetup = 0;
|
30
|
-
|
31
|
-
void setUp(void)
|
32
|
-
{
|
33
|
-
CounterSetup = 1;
|
34
|
-
}
|
35
|
-
|
36
|
-
void tearDown(void)
|
37
|
-
{
|
38
|
-
CounterTeardown = 1;
|
39
|
-
}
|
40
|
-
|
41
|
-
void custom_setup(void)
|
42
|
-
{
|
43
|
-
CounterSetup = 2;
|
44
|
-
}
|
45
|
-
|
46
|
-
void custom_teardown(void)
|
47
|
-
{
|
48
|
-
CounterTeardown = 2;
|
49
|
-
}
|
50
|
-
|
51
|
-
/*
|
52
|
-
void test_OldSchoolCommentsShouldBeIgnored(void)
|
53
|
-
{
|
54
|
-
TEST_ASSERT_FAIL("Old-School Comments Should Be Ignored");
|
55
|
-
}
|
56
|
-
*/
|
57
|
-
|
58
|
-
void test_ThisTestAlwaysPasses(void)
|
59
|
-
{
|
60
|
-
TEST_PASS();
|
61
|
-
}
|
62
|
-
|
63
|
-
void test_ThisTestAlwaysFails(void)
|
64
|
-
{
|
65
|
-
TEST_FAIL_MESSAGE("This Test Should Fail");
|
66
|
-
}
|
67
|
-
|
68
|
-
void test_ThisTestAlwaysIgnored(void)
|
69
|
-
{
|
70
|
-
TEST_IGNORE_MESSAGE("This Test Should Be Ignored");
|
71
|
-
}
|
72
|
-
|
73
|
-
void qwiktest_ThisTestPassesWhenNoSetupRan(void)
|
74
|
-
{
|
75
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterSetup, "Setup Was Unexpectedly Run");
|
76
|
-
}
|
77
|
-
|
78
|
-
void qwiktest_ThisTestPassesWhenNoTeardownRan(void)
|
79
|
-
{
|
80
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterTeardown, "Teardown Was Unexpectedly Run");
|
81
|
-
}
|
82
|
-
|
83
|
-
void spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan(void)
|
84
|
-
{
|
85
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterSuiteSetup, "Suite Setup Was Unexpectedly Run");
|
86
|
-
}
|
87
|
-
|
88
|
-
void spec_ThisTestPassesWhenNormalSetupRan(void)
|
89
|
-
{
|
90
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSetup, "Normal Setup Wasn't Run");
|
91
|
-
}
|
92
|
-
|
93
|
-
void spec_ThisTestPassesWhenNormalTeardownRan(void)
|
94
|
-
{
|
95
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterTeardown, "Normal Teardown Wasn't Run");
|
96
|
-
}
|
97
|
-
|
98
|
-
void custtest_ThisTestPassesWhenCustomSetupRan(void)
|
99
|
-
{
|
100
|
-
TEST_ASSERT_EQUAL_MESSAGE(2, CounterSetup, "Custom Setup Wasn't Run");
|
101
|
-
}
|
102
|
-
|
103
|
-
void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
104
|
-
{
|
105
|
-
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
106
|
-
}
|
107
|
-
|
108
|
-
//void test_NewStyleCommentsShouldBeIgnored(void)
|
109
|
-
//{
|
110
|
-
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
111
|
-
//}
|
112
|
-
|
113
|
-
void test_NotBeConfusedByLongComplicatedStrings(void)
|
114
|
-
{
|
115
|
-
const char* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
|
116
|
-
|
117
|
-
TEST_ASSERT_EQUAL_STRING_MESSAGE(crazyString, crazyString, "These Strings Are The Same");
|
118
|
-
}
|
119
|
-
|
120
|
-
void test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings(void)
|
121
|
-
{
|
122
|
-
TEST_ASSERT_TRUE_MESSAGE(1, "1 Should be True");
|
123
|
-
}
|
124
|
-
|
125
|
-
void test_StillNotBeConfusedByLongComplicatedStrings(void)
|
126
|
-
{
|
127
|
-
const char* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
|
128
|
-
|
129
|
-
TEST_ASSERT_EQUAL_STRING_MESSAGE(crazyString, crazyString, "These Strings Are Still The Same");
|
130
|
-
}
|
131
|
-
|
132
|
-
void should_RunTestsStartingWithShouldByDefault(void)
|
133
|
-
{
|
134
|
-
TEST_ASSERT_TRUE_MESSAGE(1, "1 Should be True");
|
135
|
-
}
|
136
|
-
|
137
|
-
TEST_CASE(25)
|
138
|
-
TEST_CASE(125)
|
139
|
-
TEST_CASE(5)
|
140
|
-
void paratest_ShouldHandleParameterizedTests(int Num)
|
141
|
-
{
|
142
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, (Num % 5), "All The Values Are Divisible By 5");
|
143
|
-
}
|
144
|
-
|
145
|
-
TEST_CASE(7)
|
146
|
-
void paratest_ShouldHandleParameterizedTests2(int Num)
|
147
|
-
{
|
148
|
-
TEST_ASSERT_EQUAL_MESSAGE(7, Num, "The Only Call To This Passes");
|
149
|
-
}
|
150
|
-
|
151
|
-
void paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid(void)
|
152
|
-
{
|
153
|
-
TEST_PASS();
|
154
|
-
}
|
155
|
-
|
156
|
-
TEST_CASE(17)
|
157
|
-
void paratest_ShouldHandleParameterizedTestsThatFail(int Num)
|
158
|
-
{
|
159
|
-
TEST_ASSERT_EQUAL_MESSAGE(3, Num, "This call should fail");
|
160
|
-
}
|
161
|
-
|
162
|
-
#ifdef USE_CEXCEPTION
|
163
|
-
void extest_ShouldHandleCExceptionInTest(void)
|
164
|
-
{
|
165
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CEXCEPTION_BEING_USED, "Should be pulling in CException");
|
166
|
-
}
|
167
|
-
#endif
|
168
|
-
|
169
|
-
#ifdef USE_ANOTHER_MAIN
|
170
|
-
int custom_main(void);
|
171
|
-
|
172
|
-
int main(void)
|
173
|
-
{
|
174
|
-
return custom_main();
|
175
|
-
}
|
176
|
-
#endif
|
177
|
-
|
178
|
-
void suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan(void)
|
179
|
-
{
|
180
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSuiteSetup, "Suite Setup Should Have Run");
|
181
|
-
}
|
182
|
-
|
183
|
-
|
@@ -1,67 +0,0 @@
|
|
1
|
-
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
2
|
-
|
3
|
-
#include <stdio.h>
|
4
|
-
#include "unity.h"
|
5
|
-
#include "Defs.h"
|
6
|
-
|
7
|
-
TEST_FILE("some_file.c")
|
8
|
-
|
9
|
-
/* Notes about prefixes:
|
10
|
-
test - normal default prefix. these are "always run" tests for this procedure
|
11
|
-
spec - normal default prefix. required to run default setup/teardown calls.
|
12
|
-
*/
|
13
|
-
|
14
|
-
/* Support for Meta Test Rig */
|
15
|
-
#define TEST_CASE(a)
|
16
|
-
void putcharSpy(int c) { (void)putchar(c);} // include passthrough for linking tests
|
17
|
-
|
18
|
-
/* Global Variables Used During These Tests */
|
19
|
-
int CounterSetup = 0;
|
20
|
-
int CounterTeardown = 0;
|
21
|
-
int CounterSuiteSetup = 0;
|
22
|
-
|
23
|
-
void setUp(void)
|
24
|
-
{
|
25
|
-
CounterSetup = 1;
|
26
|
-
}
|
27
|
-
|
28
|
-
void tearDown(void)
|
29
|
-
{
|
30
|
-
CounterTeardown = 1;
|
31
|
-
}
|
32
|
-
|
33
|
-
void custom_setup(void)
|
34
|
-
{
|
35
|
-
CounterSetup = 2;
|
36
|
-
}
|
37
|
-
|
38
|
-
void custom_teardown(void)
|
39
|
-
{
|
40
|
-
CounterTeardown = 2;
|
41
|
-
}
|
42
|
-
|
43
|
-
void test_ThisTestAlwaysPasses(void)
|
44
|
-
{
|
45
|
-
TEST_PASS();
|
46
|
-
}
|
47
|
-
|
48
|
-
void test_ThisTestAlwaysFails(void)
|
49
|
-
{
|
50
|
-
TEST_FAIL_MESSAGE("This Test Should Fail");
|
51
|
-
}
|
52
|
-
|
53
|
-
void test_ThisTestAlwaysIgnored(void)
|
54
|
-
{
|
55
|
-
TEST_IGNORE_MESSAGE("This Test Should Be Ignored");
|
56
|
-
}
|
57
|
-
|
58
|
-
void spec_ThisTestPassesWhenNormalSetupRan(void)
|
59
|
-
{
|
60
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSetup, "Normal Setup Wasn't Run");
|
61
|
-
}
|
62
|
-
|
63
|
-
void spec_ThisTestPassesWhenNormalTeardownRan(void)
|
64
|
-
{
|
65
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterTeardown, "Normal Teardown Wasn't Run");
|
66
|
-
}
|
67
|
-
|
@@ -1,192 +0,0 @@
|
|
1
|
-
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
2
|
-
|
3
|
-
#include <stdio.h>
|
4
|
-
#include "unity.h"
|
5
|
-
#include "Defs.h"
|
6
|
-
#include "mockMock.h"
|
7
|
-
|
8
|
-
#ifdef USE_CEXCEPTION
|
9
|
-
#include "CException.h"
|
10
|
-
#endif
|
11
|
-
|
12
|
-
/* Notes about prefixes:
|
13
|
-
test - normal default prefix. these are "always run" tests for this procedure
|
14
|
-
spec - normal default prefix. required to run default setup/teardown calls.
|
15
|
-
should - normal default prefix.
|
16
|
-
qwiktest - custom prefix for when tests skip all setup/teardown calls.
|
17
|
-
custtest - custom prefix for when tests use custom setup/teardown calls.
|
18
|
-
paratest - custom prefix for when we want to verify parameterized tests.
|
19
|
-
extest - custom prefix only used during cexception
|
20
|
-
suitetest- custom prefix for when we want to use custom suite setup/teardown
|
21
|
-
*/
|
22
|
-
|
23
|
-
/* Support for Meta Test Rig */
|
24
|
-
#define TEST_CASE(a)
|
25
|
-
void putcharSpy(int c) { (void)putchar(c);} // include passthrough for linking tests
|
26
|
-
|
27
|
-
/* Global Variables Used During These Tests */
|
28
|
-
int CounterSetup = 0;
|
29
|
-
int CounterTeardown = 0;
|
30
|
-
int CounterSuiteSetup = 0;
|
31
|
-
|
32
|
-
void setUp(void)
|
33
|
-
{
|
34
|
-
CounterSetup = 1;
|
35
|
-
}
|
36
|
-
|
37
|
-
void tearDown(void)
|
38
|
-
{
|
39
|
-
CounterTeardown = 1;
|
40
|
-
}
|
41
|
-
|
42
|
-
void custom_setup(void)
|
43
|
-
{
|
44
|
-
CounterSetup = 2;
|
45
|
-
}
|
46
|
-
|
47
|
-
void custom_teardown(void)
|
48
|
-
{
|
49
|
-
CounterTeardown = 2;
|
50
|
-
}
|
51
|
-
|
52
|
-
/*
|
53
|
-
void test_OldSchoolCommentsShouldBeIgnored(void)
|
54
|
-
{
|
55
|
-
TEST_ASSERT_FAIL("Old-School Comments Should Be Ignored");
|
56
|
-
}
|
57
|
-
*/
|
58
|
-
|
59
|
-
void test_ThisTestAlwaysPasses(void)
|
60
|
-
{
|
61
|
-
TEST_PASS();
|
62
|
-
}
|
63
|
-
|
64
|
-
void test_ThisTestAlwaysFails(void)
|
65
|
-
{
|
66
|
-
TEST_FAIL_MESSAGE("This Test Should Fail");
|
67
|
-
}
|
68
|
-
|
69
|
-
void test_ThisTestAlwaysIgnored(void)
|
70
|
-
{
|
71
|
-
TEST_IGNORE_MESSAGE("This Test Should Be Ignored");
|
72
|
-
}
|
73
|
-
|
74
|
-
void qwiktest_ThisTestPassesWhenNoSetupRan(void)
|
75
|
-
{
|
76
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterSetup, "Setup Was Unexpectedly Run");
|
77
|
-
}
|
78
|
-
|
79
|
-
void qwiktest_ThisTestPassesWhenNoTeardownRan(void)
|
80
|
-
{
|
81
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterTeardown, "Teardown Was Unexpectedly Run");
|
82
|
-
}
|
83
|
-
|
84
|
-
void spec_ThisTestPassesWhenNormalSuiteSetupAndTeardownRan(void)
|
85
|
-
{
|
86
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CounterSuiteSetup, "Suite Setup Was Unexpectedly Run");
|
87
|
-
}
|
88
|
-
|
89
|
-
void spec_ThisTestPassesWhenNormalSetupRan(void)
|
90
|
-
{
|
91
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSetup, "Normal Setup Wasn't Run");
|
92
|
-
}
|
93
|
-
|
94
|
-
void spec_ThisTestPassesWhenNormalTeardownRan(void)
|
95
|
-
{
|
96
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterTeardown, "Normal Teardown Wasn't Run");
|
97
|
-
}
|
98
|
-
|
99
|
-
void custtest_ThisTestPassesWhenCustomSetupRan(void)
|
100
|
-
{
|
101
|
-
TEST_ASSERT_EQUAL_MESSAGE(2, CounterSetup, "Custom Setup Wasn't Run");
|
102
|
-
}
|
103
|
-
|
104
|
-
void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
105
|
-
{
|
106
|
-
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
107
|
-
}
|
108
|
-
|
109
|
-
//void test_NewStyleCommentsShouldBeIgnored(void)
|
110
|
-
//{
|
111
|
-
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
112
|
-
//}
|
113
|
-
|
114
|
-
void test_NotBeConfusedByLongComplicatedStrings(void)
|
115
|
-
{
|
116
|
-
const char* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
|
117
|
-
|
118
|
-
TEST_ASSERT_EQUAL_STRING_MESSAGE(crazyString, crazyString, "These Strings Are The Same");
|
119
|
-
}
|
120
|
-
|
121
|
-
void test_NotDisappearJustBecauseTheTestBeforeAndAfterHaveCrazyStrings(void)
|
122
|
-
{
|
123
|
-
TEST_ASSERT_TRUE_MESSAGE(1, "1 Should be True");
|
124
|
-
}
|
125
|
-
|
126
|
-
void test_StillNotBeConfusedByLongComplicatedStrings(void)
|
127
|
-
{
|
128
|
-
const char* crazyString = "GET / HTTP/1.1\r\nHost: 127.0.0.1:8081\r\nConnection: keep-alive\r\nCache-Control: no-cache\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36\r\nPostman-Token: 768c7149-c3fb-f704-71a2-63918d9195b2\r\nAccept: */*\r\nAccept-Encoding: gzip, deflate, sdch\r\nAccept-Language: en-GB,en-US;q=0.8,en;q=0.6\r\n\r\n";
|
129
|
-
|
130
|
-
TEST_ASSERT_EQUAL_STRING_MESSAGE(crazyString, crazyString, "These Strings Are Still The Same");
|
131
|
-
}
|
132
|
-
|
133
|
-
void should_RunTestsStartingWithShouldByDefault(void)
|
134
|
-
{
|
135
|
-
TEST_ASSERT_TRUE_MESSAGE(1, "1 Should be True");
|
136
|
-
}
|
137
|
-
|
138
|
-
TEST_CASE(25)
|
139
|
-
TEST_CASE(125)
|
140
|
-
TEST_CASE(5)
|
141
|
-
void paratest_ShouldHandleParameterizedTests(int Num)
|
142
|
-
{
|
143
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, (Num % 5), "All The Values Are Divisible By 5");
|
144
|
-
}
|
145
|
-
|
146
|
-
TEST_CASE(7)
|
147
|
-
void paratest_ShouldHandleParameterizedTests2(int Num)
|
148
|
-
{
|
149
|
-
TEST_ASSERT_EQUAL_MESSAGE(7, Num, "The Only Call To This Passes");
|
150
|
-
}
|
151
|
-
|
152
|
-
void paratest_ShouldHandleNonParameterizedTestsWhenParameterizationValid(void)
|
153
|
-
{
|
154
|
-
TEST_PASS();
|
155
|
-
}
|
156
|
-
|
157
|
-
TEST_CASE(17)
|
158
|
-
void paratest_ShouldHandleParameterizedTestsThatFail(int Num)
|
159
|
-
{
|
160
|
-
TEST_ASSERT_EQUAL_MESSAGE(3, Num, "This call should fail");
|
161
|
-
}
|
162
|
-
|
163
|
-
#ifdef USE_CEXCEPTION
|
164
|
-
void extest_ShouldHandleCExceptionInTest(void)
|
165
|
-
{
|
166
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CEXCEPTION_BEING_USED, "Should be pulling in CException");
|
167
|
-
}
|
168
|
-
#endif
|
169
|
-
|
170
|
-
#ifdef USE_ANOTHER_MAIN
|
171
|
-
int custom_main(void);
|
172
|
-
|
173
|
-
int main(void)
|
174
|
-
{
|
175
|
-
return custom_main();
|
176
|
-
}
|
177
|
-
#endif
|
178
|
-
|
179
|
-
void suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan(void)
|
180
|
-
{
|
181
|
-
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSuiteSetup, "Suite Setup Should Have Run");
|
182
|
-
}
|
183
|
-
|
184
|
-
void test_ShouldCallMockInitAndVerifyFunctionsForEachTest(void)
|
185
|
-
{
|
186
|
-
int passesOrIgnores = (int)(Unity.NumberOfTests - Unity.TestFailures);
|
187
|
-
TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests, mockMock_Init_Counter, "Mock Init Should Be Called Once Per Test Started");
|
188
|
-
TEST_ASSERT_EQUAL_MESSAGE(passesOrIgnores, mockMock_Verify_Counter, "Mock Verify Should Be Called Once Per Test Passed");
|
189
|
-
TEST_ASSERT_EQUAL_MESSAGE(Unity.NumberOfTests - 1, mockMock_Destroy_Counter, "Mock Destroy Should Be Called Once Per Test Completed");
|
190
|
-
TEST_ASSERT_EQUAL_MESSAGE(0, CMockMemFreeFinalCounter, "Mock MemFreeFinal Should Not Be Called Until End");
|
191
|
-
}
|
192
|
-
|