ceedling 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/ceedling.gemspec +1 -1
  3. data/lib/ceedling/version.rb +2 -2
  4. data/lib/ceedling/version.rb.erb +1 -2
  5. data/test_graveyard/unit/busted/generator_test_runner_test.rb +2 -5
  6. data/vendor/cmock/Gemfile +1 -3
  7. data/vendor/cmock/Rakefile +10 -17
  8. data/vendor/cmock/docs/license.txt +18 -30
  9. data/vendor/cmock/examples/gcc.yml +2 -2
  10. data/vendor/cmock/examples/iar_v4.yml +3 -3
  11. data/vendor/cmock/examples/iar_v5.yml +3 -3
  12. data/vendor/cmock/examples/rakefile_helper.rb +35 -35
  13. data/vendor/cmock/lib/cmock_generator.rb +17 -5
  14. data/vendor/cmock/lib/cmock_generator_plugin_array.rb +9 -3
  15. data/vendor/cmock/lib/cmock_generator_plugin_ignore_arg.rb +1 -1
  16. data/vendor/cmock/lib/cmock_generator_plugin_return_thru_ptr.rb +1 -1
  17. data/vendor/cmock/lib/cmock_header_parser.rb +7 -3
  18. data/vendor/cmock/release/version.info +1 -1
  19. data/vendor/cmock/test/c/TestCMockCDynamic_Runner.c +1 -2
  20. data/vendor/cmock/test/c/TestCMockC_Runner.c +1 -1
  21. data/vendor/cmock/test/system/systest_generator.rb +6 -2
  22. data/vendor/cmock/test/system/test_compilation/const.h +3 -1
  23. data/vendor/cmock/test/test_helper.rb +38 -40
  24. data/vendor/cmock/test/unit/cmock_config_test.rb +26 -29
  25. data/vendor/cmock/test/unit/cmock_file_writer_test.rb +8 -11
  26. data/vendor/cmock/test/unit/cmock_generator_main_test.rb +82 -80
  27. data/vendor/cmock/test/unit/cmock_generator_plugin_array_test.rb +62 -43
  28. data/vendor/cmock/test/unit/cmock_generator_plugin_callback_test.rb +44 -45
  29. data/vendor/cmock/test/unit/cmock_generator_plugin_cexception_test.rb +30 -31
  30. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_any_args_test.rb +15 -16
  31. data/vendor/cmock/test/unit/cmock_generator_plugin_expect_test.rb +76 -77
  32. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_arg_test.rb +19 -19
  33. data/vendor/cmock/test/unit/cmock_generator_plugin_ignore_test.rb +17 -18
  34. data/vendor/cmock/test/unit/cmock_generator_plugin_return_thru_ptr_test.rb +17 -17
  35. data/vendor/cmock/test/unit/cmock_generator_utils_test.rb +74 -65
  36. data/vendor/cmock/test/unit/cmock_header_parser_test.rb +103 -76
  37. data/vendor/cmock/test/unit/cmock_plugin_manager_test.rb +46 -36
  38. data/vendor/cmock/test/unit/cmock_unityhelper_parser_test.rb +85 -85
  39. data/vendor/unity/auto/generate_test_runner.rb +4 -3
  40. data/vendor/unity/auto/type_sanitizer.rb +8 -0
  41. data/vendor/unity/auto/unity_test_summary.py +135 -0
  42. data/vendor/unity/examples/example_1/makefile +16 -0
  43. data/vendor/unity/examples/example_1/src/ProductionCode2.c +2 -0
  44. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode2_Runner.c +0 -13
  45. data/vendor/unity/examples/example_1/test/test_runners/TestProductionCode_Runner.c +0 -13
  46. data/vendor/unity/examples/example_2/makefile +20 -1
  47. data/vendor/unity/examples/example_2/src/ProductionCode2.c +2 -0
  48. data/vendor/unity/examples/example_2/test/test_runners/all_tests.c +2 -2
  49. data/vendor/unity/examples/example_3/makefile +16 -0
  50. data/vendor/unity/examples/example_3/src/ProductionCode2.c +2 -0
  51. data/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode2_Runner.c +0 -13
  52. data/vendor/unity/examples/example_3/test/no_ruby/TestProductionCode_Runner.c +0 -13
  53. data/vendor/unity/extras/fixture/rakefile.rb +14 -3
  54. data/vendor/unity/extras/fixture/src/unity_fixture.c +21 -11
  55. data/vendor/unity/extras/fixture/src/unity_fixture.h +8 -4
  56. data/vendor/unity/extras/fixture/src/unity_fixture_internals.h +1 -1
  57. data/vendor/unity/extras/fixture/src/unity_fixture_malloc_overrides.h +5 -0
  58. data/vendor/unity/extras/fixture/test/main/AllTests.c +2 -2
  59. data/vendor/unity/extras/fixture/test/unity_fixture_Test.c +8 -8
  60. data/vendor/unity/extras/fixture/test/unity_output_Spy.c +2 -2
  61. data/vendor/unity/extras/fixture/test/unity_output_Spy.h +2 -2
  62. data/vendor/unity/release/version.info +1 -1
  63. data/vendor/unity/src/unity.c +26 -19
  64. data/vendor/unity/src/unity_internals.h +9 -12
  65. data/vendor/unity/test/targets/gcc_auto_stdint.yml +13 -0
  66. metadata +4 -5
  67. data/vendor/cmock/test/spec/cmock_file_writer_spec.rb +0 -45
  68. data/vendor/cmock/test/spec/cmock_generator_plugin_array_spec.rb +0 -52
  69. data/vendor/cmock/test/spec/spec_helper.rb +0 -12
@@ -1,52 +0,0 @@
1
- here = File.expand_path(File.dirname(__FILE__))
2
- require "#{here}/spec_helper" #add this to execute tests from the spec directory
3
- require 'cmock_generator_plugin_array'
4
-
5
- describe :CMockGeneratorPluginArray do
6
- before do
7
- @cmConfig = Object.new
8
- @cmUtils = Object.new
9
- mock(@cmConfig).when_ptr {:compare_data}
10
- mock(@cmConfig).enforce_strict_ordering {false}
11
- mock(@cmUtils).helpers { {} }
12
- #create instance of class under test
13
- @subject = CMockGeneratorPluginArray.new(@cmConfig, @cmUtils)
14
- end
15
-
16
- it "should not respond to include_files" do
17
- # @subject.should_not respond_to(:include_files)
18
- end
19
-
20
- # it "should not add to typedef structure for functions of " +
21
- # "style 'int* func(void)'" do
22
- # function = {:name => "Oak", :args => [], :return => :int_ptr}
23
- # returned = @subject.instance_typedefs(function)
24
- # returned.should == ""
25
- # end
26
-
27
- # it "should add to typedef structure mock needs of functions of style "+
28
- # "'void func(int chicken, int* pork)'" do
29
- # arg1 = { :name => "chicken", :type => "int", :ptr? => false}
30
- # arg2 = { :name => "pork", :type => "int*", :ptr? => true}
31
- # function = {:name => "Cedar",
32
- # :args => [arg1, arg2],
33
- # :return => :void}
34
- # expected = " int Expected_pork_Depth;\n"
35
- # returned = @subject.instance_typedefs(function)
36
- # returned.should == expected
37
- # end
38
-
39
- # it "should not add an additional mock interface for functions not containing pointers" do
40
- # function = {:name => "Maple", :args_string => "int blah", :return => :string,
41
- # :contains_ptr? => false}
42
- # returned = @subject.mock_function_declarations(function)
43
- # returned.should_be nil
44
- # end
45
-
46
- # describe 'create_file' do
47
- # it "complain if a block was not specified when calling create" do
48
- # expect {@subject.create_file("text.txt")}.should raise_error
49
- # # should.be_false
50
- # end
51
- # end
52
- end
@@ -1,12 +0,0 @@
1
- require 'rubygems'
2
-
3
- proj_root = File.expand_path(File.dirname(__FILE__) + '/../..')
4
- # require proj_root + '/config/environment'
5
- $LOAD_PATH << proj_root + '/lib'
6
-
7
- require 'rspec'
8
- require 'rr'
9
-
10
- RSpec.configure do |config|
11
- config.mock_with :rr
12
- end