Merge remote-tracking branch 'upstream/development/test-framework' into development...
authorJim Morris <morris@wolfman.com>
Sun, 13 Sep 2015 06:07:12 +0000 (23:07 -0700)
committerJim Morris <morris@wolfman.com>
Sun, 13 Sep 2015 06:07:12 +0000 (23:07 -0700)
Conflicts:
Rakefile
src/testframework/Test_kernel.cpp

1  2 
Rakefile
src/testframework/Test_kernel.cpp

diff --cc Rakefile
+++ b/Rakefile
@@@ -119,10 -119,8 +119,11 @@@ if TESTIN
    TESTMODULES= %w(tools/temperatureswitch) unless defined? EXCLUDE_MODULES
    puts "Modules under test: #{TESTMODULES}"
    excludes << %w(Kernel.cpp main.cpp) # we replace these with mock versions in testframework
 -  testmodules= FileList['src/testframework/*.{c,cpp}', 'src/testframework/easyunit/*.{c,cpp}', 'src/modules/communication/SerialConsole.cpp', 'src/modules/communication/utils/Gcode.cpp'].include(TESTMODULES.collect { |e| "src/modules/#{e}/**/*.{c,cpp}"}).include(TESTMODULES.collect { |e| "src/testframework/unittests/#{e}/*.{c,cpp}"})
 -  SRC = FileList['src/libs/**/*.{c,cpp}'].exclude(/#{excludes.join('|')}/) + testmodules
++
 +  frameworkfiles= FileList['src/testframework/*.{c,cpp}', 'src/testframework/easyunit/*.{c,cpp}']
 +  extrafiles= FileList['src/modules/communication/SerialConsole.cpp', 'src/modules/communication/utils/Gcode.cpp', 'src/modules/robot/Conveyor.cpp', 'src/modules/robot/Block.cpp']
 +  testmodules= FileList['src/libs/**/*.{c,cpp}'].include(TESTMODULES.collect { |e| "src/modules/#{e}/**/*.{c,cpp}"}).include(TESTMODULES.collect { |e| "src/testframework/unittests/#{e}/*.{c,cpp}"}).exclude(/#{excludes.join('|')}/)
 +  SRC =  frameworkfiles + extrafiles + testmodules
  else
    excludes << %w(testframework)
    SRC = FileList['src/**/*.{c,cpp}'].exclude(/#{excludes.join('|')}/)
@@@ -64,11 -57,6 +57,11 @@@ Kernel::Kernel()
  
      this->current_path   = "/";
  
-     // dummies (woul dbe noce to refactor to not have to create a conveyor)
 +    this->slow_ticker = new SlowTicker();
 +
++    // dummies (would be nice to refactor to not have to create a conveyor)
 +    this->conveyor= new Conveyor();
 +
      // Configure UART depending on MRI config
      // Match up the SerialConsole to MRI UART. This makes it easy to use only one UART for both debug and actual commands.
      NVIC_SetPriorityGrouping(0);