- add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos - new separate project for tests
This commit is contained in:
27
tests/vendor/ceedling/lib/ceedling.rb
vendored
Normal file
27
tests/vendor/ceedling/lib/ceedling.rb
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
require 'rake'
|
||||
|
||||
ERR_MSG = <<EOF
|
||||
I expected to see a project.yml file in the current directoy. Please create one
|
||||
by hand or by using the 'ceedling' shell command.
|
||||
EOF
|
||||
|
||||
def ceedling_dir
|
||||
File.join(
|
||||
File.dirname(__FILE__),
|
||||
'..')
|
||||
end
|
||||
|
||||
def builtin_ceedling_plugins_path
|
||||
File.join(
|
||||
ceedling_dir,
|
||||
'plugins')
|
||||
end
|
||||
|
||||
ceeling_lib_rakefile = File.join( ceedling_dir,
|
||||
'lib',
|
||||
'rakefile.rb')
|
||||
if File.exists? "./project.yml"
|
||||
load ceeling_lib_rakefile
|
||||
else
|
||||
$stderr.puts ERR_MSG
|
||||
end
|
||||
Reference in New Issue
Block a user