ceedling 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3f080a37226ca2bad23bea2e314e7ac3828b4093
4
- data.tar.gz: 37841e6f0c39ee415bb4607ecea0d5d8278ce8ee
3
+ metadata.gz: 51a11a8292cd1fb5d6278208a7bc687bb98d9079
4
+ data.tar.gz: 8c729bd71ea4928e6f33d32a62f32b33ac8db1e2
5
5
  SHA512:
6
- metadata.gz: 26397b81e50d88ba54f0d9cb8510ea4f164bd34392bdf5af85fb274d6ea03f83bcf22c6a2d236e1bab8f1a13d8aa29097dcfb12101b27d812fc831059cf26827
7
- data.tar.gz: 26c57f493b4d8b378aa6c40e3df248a3422a00f7ae82e2b87f8daa55e81d4d8203862a44c899534b6e80ea17502d8c74ccfa88890a8133e83a0c8af93368dca2
6
+ metadata.gz: f1139841553193bf878268f97526a8684f94bd10a3aa5efd81a5c59953aa85a72c7002cb1adce639e561cf9ae5621be4f294247f7086166fc1a942fcffc0391b
7
+ data.tar.gz: b548f7b16b85aeb75524bce5a51db838888dee2bfe1ae295a8f76b3a02e2ba865393abcbdfe46a837de79fa465bb914f38d6da028a4d2d36ed4f4b5ab07b354a
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.version = Ceedling::Version::GEM
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Mike Karlesky, Mark VanderVoord", "Greg Williams", "Matt Fletcher"]
11
- s.email = ["michael@karlesky.net, mvandervoord@gmail.com, williams@atomicembedded.com, fletcher@atomicobject.com"]
11
+ s.email = ["michael@karlesky.net, mvandervoord@gmail.com, williams@atomicobject.com, fletcher@atomicobject.com"]
12
12
  s.homepage = "http://throwtheswitch.org/"
13
13
  s.summary = %q{Ceedling is a set of tools for the automation of builds and test running for C}
14
14
  s.description = %q{Ceedling provides a set of tools to deploy its guts in a folder or which can be required in a Rakefile}
@@ -2,13 +2,13 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.17.0"
5
+ GEM = "0.18.0"
6
6
  # @private
7
7
  CEEDLING = GEM
8
8
  # @private
9
9
  CEXCEPTION = "1.3.17"
10
10
  # @private
11
- CMOCK = "2.1.0"
11
+ CMOCK = "2.3.0"
12
12
  # @private
13
13
  UNITY = "2.2.0"
14
14
  end
@@ -2,8 +2,7 @@
2
2
  module Ceedling
3
3
  module Version
4
4
  # @private
5
- GEM = "0.17.0"
6
-
5
+ GEM = "0.18.0"
7
6
  # @private
8
7
  CEEDLING = "<%= versions["CEEDLING"] %>"
9
8
  # @private
@@ -439,8 +439,7 @@ class GeneratorTestRunnerTest < Test::Unit::TestCase
439
439
  expected_output = %Q[
440
440
  int main(void)
441
441
  {
442
- UnityBegin();
443
- Unity.TestFile = "TestMe.c";
442
+ UnityBegin("TestMe.c");
444
443
 
445
444
  // RUN_TEST calls runTest
446
445
  RUN_TEST(test_a_little_test);
@@ -462,9 +461,7 @@ class GeneratorTestRunnerTest < Test::Unit::TestCase
462
461
  expected_output = %Q[
463
462
  int main(void)
464
463
  {
465
- UnityBegin();
466
- Unity.TestFile = "TestIfy.c";
467
-
464
+ UnityBegin("TestIfy.c");
468
465
 
469
466
  UnityEnd();
470
467
  return 0;
@@ -3,9 +3,7 @@ source "http://rubygems.org/"
3
3
  gem "bundler", "~> 1.1.rc.7"
4
4
  gem "rake", ">= 0.9.2.2"
5
5
 
6
- gem 'hardmock', '1.3.8'
7
- gem "rspec"
6
+ gem "minitest"
8
7
  gem "require_all"
9
8
  gem "constructor"
10
9
  gem "diy"
11
- gem "rr"
@@ -10,8 +10,6 @@ require 'rake/clean'
10
10
  require 'rake/testtask'
11
11
  require './rakefile_helper'
12
12
 
13
- require 'rspec/core/rake_task'
14
-
15
13
  include RakefileHelpers
16
14
 
17
15
  DEFAULT_CONFIG_FILE = 'gcc.yml'
@@ -33,9 +31,9 @@ task :prep_system_tests => SYSTEM_TEST_SUPPORT_DIRS
33
31
  configure_clean
34
32
  configure_toolchain(DEFAULT_CONFIG_FILE)
35
33
 
36
- task :default => ['test:all']
37
- task :ci => [:no_color, :default]
38
- task :cruise => :ci
34
+ task :default => [:test]
35
+ task :ci => [:no_color, :default]
36
+ task :cruise => :ci
39
37
 
40
38
  desc "Load configuration"
41
39
  task :config, :config_file do |t, args|
@@ -44,10 +42,10 @@ task :config, :config_file do |t, args|
44
42
  configure_toolchain(args[:config_file])
45
43
  end
46
44
 
47
- namespace :test do
48
- desc "Run all unit and system tests"
49
- task :all => [:clobber, :prep_system_tests, 'test:units', 'test:c', 'test:system']
45
+ desc "Run all unit, c, and system tests"
46
+ task :test => [:clobber, :prep_system_tests, 'test:units', 'test:c', 'test:system']
50
47
 
48
+ namespace :test do
51
49
  desc "Run Unit Tests"
52
50
  Rake::TestTask.new('units') do |t|
53
51
  t.pattern = 'test/unit/*_test.rb'
@@ -56,7 +54,7 @@ namespace :test do
56
54
 
57
55
  #individual unit tests
58
56
  FileList['test/unit/*_test.rb'].each do |test|
59
- Rake::TestTask.new(File.basename(test,'.*')) do |t|
57
+ Rake::TestTask.new(File.basename(test,'.*').sub('_test','')) do |t|
60
58
  t.pattern = test
61
59
  t.verbose = true
62
60
  end
@@ -88,8 +86,9 @@ namespace :test do
88
86
 
89
87
  #individual system tests
90
88
  FileList['test/system/test_interactions/*.yml'].each do |test|
91
- desc "Run system test #{File.basename(test,'.*')}"
92
- task "test:#{File.basename(test,'.*')}" do
89
+ basename = File.basename(test,'.*')
90
+ desc "Run system test #{basename}"
91
+ task basename do
93
92
  run_system_test_interactions([test])
94
93
  end
95
94
  end
@@ -103,9 +102,3 @@ end
103
102
  task :no_color do
104
103
  $colour_output = false
105
104
  end
106
-
107
- RSpec::Core::RakeTask.new(:spec) do |t|
108
- spec_path = File.join(CMOCK_ROOT, 'test/spec')
109
- t.pattern = spec_path + '/*_spec.rb'
110
- end
111
-
@@ -1,31 +1,19 @@
1
- Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
1
+ Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
2
2
 
3
- Permission is hereby granted, free of charge, to any person
4
- obtaining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use,
7
- copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the
9
- Software is furnished to do so, subject to the following
10
- conditions:
11
-
12
- The above copyright notice and this permission notice shall be
13
- included in all copies or substantial portions of the Software.
14
-
15
- The end-user documentation included with the redistribution, if
16
- any, must include the following acknowledgment: "This product
17
- includes software developed for the CMock Project, by Mike Karlesky,
18
- Mark VanderVoord, and Greg Williams and other contributors", in
19
- the same place and form as other third-party acknowledgments.
20
- Alternately, this acknowledgment may appear in the software
21
- itself, in the same form and location as other such third-party
22
- acknowledgments.
23
-
24
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
26
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
27
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
28
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
29
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
30
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
31
- OTHER DEALINGS IN THE SOFTWARE.
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -11,7 +11,7 @@ compiler:
11
11
  - 'src/'
12
12
  - '../src/'
13
13
  - '../vendor/unity/src/'
14
- - '../vendor/unity/examples/helper/'
14
+ - '../vendor/unity/examples/example_3/helper/'
15
15
  - 'mocks/'
16
16
  - *unit_tests_path
17
17
  defines:
@@ -40,4 +40,4 @@ linker:
40
40
  :includes:
41
41
  - Types.h
42
42
 
43
- colour: true
43
+ colour: true
@@ -14,7 +14,7 @@ compiler:
14
14
  - --no_code_motion
15
15
  - --no_tbaa
16
16
  - --no_clustering
17
- - --no_scheduling
17
+ - --no_scheduling
18
18
  - --debug
19
19
  - --cpu_mode thumb
20
20
  - --endian little
@@ -32,7 +32,7 @@ compiler:
32
32
  - 'src/'
33
33
  - '../src/'
34
34
  - '../vendor/unity/src/'
35
- - '../vendor/unity/examples/helper/'
35
+ - '../vendor/unity/examples/example_3/helper/'
36
36
  - 'mocks/'
37
37
  - [*tools_root, 'arm\inc\']
38
38
  - *unit_tests_path
@@ -88,4 +88,4 @@ simulator:
88
88
  :plugins: []
89
89
  :includes:
90
90
  - Types.h
91
-
91
+
@@ -13,7 +13,7 @@ compiler:
13
13
  - --no_code_motion
14
14
  - --no_tbaa
15
15
  - --no_clustering
16
- - --no_scheduling
16
+ - --no_scheduling
17
17
  - --debug
18
18
  - --cpu_mode thumb
19
19
  - --endian=little
@@ -31,7 +31,7 @@ compiler:
31
31
  - 'src/'
32
32
  - '../src/'
33
33
  - '../vendor/unity/src/'
34
- - '../vendor/unity/examples/helper/'
34
+ - '../vendor/unity/examples/example_3/helper/'
35
35
  - 'mocks/'
36
36
  - [*tools_root, 'arm\inc\']
37
37
  - *unit_tests_path
@@ -77,4 +77,4 @@ simulator:
77
77
  :plugins: []
78
78
  :includes:
79
79
  - Types.h
80
-
80
+
@@ -7,29 +7,29 @@ require '../vendor/unity/auto/colour_reporter'
7
7
  module RakefileHelpers
8
8
 
9
9
  C_EXTENSION = '.c'
10
-
10
+
11
11
  def load_configuration(config_file)
12
12
  $cfg_file = config_file
13
13
  $cfg = YAML.load(File.read($cfg_file))
14
14
  $colour_output = false unless $cfg['colour']
15
15
  end
16
-
16
+
17
17
  def configure_clean
18
18
  CLEAN.include($cfg['compiler']['build_path'] + '*.*') unless $cfg['compiler']['build_path'].nil?
19
19
  end
20
-
20
+
21
21
  def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
22
22
  config_file += '.yml' unless config_file =~ /\.yml$/
23
23
  load_configuration(config_file)
24
24
  configure_clean
25
25
  end
26
-
26
+
27
27
  def get_unit_test_files
28
28
  path = $cfg['compiler']['unit_tests_path'] + 'Test*' + C_EXTENSION
29
29
  path.gsub!(/\\/, '/')
30
30
  FileList.new(path)
31
31
  end
32
-
32
+
33
33
  def get_local_include_dirs
34
34
  include_dirs = $cfg['compiler']['includes']['items'].dup
35
35
  include_dirs.delete_if {|dir| dir.is_a?(Array)}
@@ -57,7 +57,7 @@ module RakefileHelpers
57
57
  end
58
58
  return nil
59
59
  end
60
-
60
+
61
61
  def tackit(strings)
62
62
  case(strings)
63
63
  when Array
@@ -70,7 +70,7 @@ module RakefileHelpers
70
70
  strings
71
71
  end
72
72
  end
73
-
73
+
74
74
  def squash(prefix, items)
75
75
  result = ''
76
76
  items.each { |item| result += " #{prefix}#{tackit(item)}" }
@@ -98,7 +98,7 @@ module RakefileHelpers
98
98
  execute(cmd_str + obj_file)
99
99
  return obj_file
100
100
  end
101
-
101
+
102
102
  def build_linker_fields
103
103
  command = tackit($cfg['linker']['path'])
104
104
  if $cfg['linker']['options'].nil?
@@ -114,17 +114,17 @@ module RakefileHelpers
114
114
  includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
115
115
  return {:command => command, :options => options, :includes => includes}
116
116
  end
117
-
117
+
118
118
  def link_it(exe_name, obj_list)
119
119
  linker = build_linker_fields
120
- cmd_str = "#{linker[:command]}#{linker[:options]}#{linker[:includes]} " +
120
+ cmd_str = "#{linker[:command]}#{linker[:includes]} " +
121
121
  (obj_list.map{|obj|"#{$cfg['linker']['object_files']['path']}#{obj} "}).join +
122
122
  $cfg['linker']['bin_files']['prefix'] + ' ' +
123
123
  $cfg['linker']['bin_files']['destination'] +
124
- exe_name + $cfg['linker']['bin_files']['extension']
124
+ exe_name + $cfg['linker']['bin_files']['extension'] + " #{linker[:options]}"
125
125
  execute(cmd_str)
126
126
  end
127
-
127
+
128
128
  def build_simulator_fields
129
129
  return nil if $cfg['simulator'].nil?
130
130
  if $cfg['simulator']['path'].nil?
@@ -144,7 +144,7 @@ module RakefileHelpers
144
144
  end
145
145
  return {:command => command, :pre_support => pre_support, :post_support => post_support}
146
146
  end
147
-
147
+
148
148
  def execute(command_string, verbose=true)
149
149
  report command_string
150
150
  output = `#{command_string}`.chomp
@@ -154,7 +154,7 @@ module RakefileHelpers
154
154
  end
155
155
  return output
156
156
  end
157
-
157
+
158
158
  def report_summary
159
159
  summary = UnityTestSummary.new
160
160
  summary.set_root_path(HERE)
@@ -165,34 +165,34 @@ module RakefileHelpers
165
165
  report summary.run
166
166
  raise "There were failures" if (summary.failures > 0)
167
167
  end
168
-
168
+
169
169
  def run_tests(test_files)
170
-
170
+
171
171
  report 'Running system tests...'
172
-
172
+
173
173
  # Tack on TEST define for compiling unit tests
174
174
  load_configuration($cfg_file)
175
175
  test_defines = ['TEST']
176
176
  $cfg['compiler']['defines']['items'] = [] if $cfg['compiler']['defines']['items'].nil?
177
177
  $cfg['compiler']['defines']['items'] << 'TEST'
178
-
178
+
179
179
  include_dirs = get_local_include_dirs
180
-
180
+
181
181
  # Build and execute each unit test
182
182
  test_files.each do |test|
183
183
  obj_list = []
184
-
184
+
185
185
  # Detect dependencies and build required required modules
186
186
  header_list = extract_headers(test) + ['cmock.h']
187
187
  header_list.each do |header|
188
-
188
+
189
189
  #create mocks if needed
190
- if (header =~ /Mock/)
191
- require "../lib/cmock.rb"
192
- @cmock ||= CMock.new($cfg_file)
190
+ if (header =~ /Mock/)
191
+ require "../lib/cmock.rb"
192
+ @cmock ||= CMock.new($cfg_file)
193
193
  @cmock.setup_mocks([$cfg['compiler']['source_path']+header.gsub('Mock','')])
194
194
  end
195
-
195
+
196
196
  end
197
197
 
198
198
  #compile all mocks
@@ -203,7 +203,7 @@ module RakefileHelpers
203
203
  obj_list << compile(src_file, test_defines)
204
204
  end
205
205
  end
206
-
206
+
207
207
  # Build the test runner (generate if configured to do so)
208
208
  test_base = File.basename(test, C_EXTENSION)
209
209
  runner_name = test_base + '_Runner.c'
@@ -216,13 +216,13 @@ module RakefileHelpers
216
216
  end
217
217
 
218
218
  obj_list << compile(runner_path, test_defines)
219
-
219
+
220
220
  # Build the test module
221
221
  obj_list << compile(test, test_defines)
222
-
222
+
223
223
  # Link the test executable
224
224
  link_it(test_base, obj_list)
225
-
225
+
226
226
  # Execute unit test and generate results file
227
227
  simulator = build_simulator_fields
228
228
  executable = $cfg['linker']['bin_files']['destination'] + test_base + $cfg['linker']['bin_files']['extension']
@@ -241,11 +241,11 @@ module RakefileHelpers
241
241
  File.open(test_results, 'w') { |f| f.print output }
242
242
  end
243
243
  end
244
-
244
+
245
245
  def build_application(main)
246
-
246
+
247
247
  report "Building application..."
248
-
248
+
249
249
  obj_list = []
250
250
  load_configuration($cfg_file)
251
251
  main_path = $cfg['compiler']['source_path'] + main + C_EXTENSION
@@ -258,13 +258,13 @@ module RakefileHelpers
258
258
  obj_list << compile(src_file)
259
259
  end
260
260
  end
261
-
261
+
262
262
  # Build the main source file
263
263
  main_base = File.basename(main_path, C_EXTENSION)
264
264
  obj_list << compile(main_path)
265
-
265
+
266
266
  # Create the executable
267
267
  link_it(main_base, obj_list)
268
268
  end
269
-
269
+
270
270
  end