Class: RakeOE::TestFramework
- Inherits:
-
Object
- Object
- RakeOE::TestFramework
- Defined in:
- lib/rakeoe/test_framework.rb
Instance Method Summary collapse
-
#binary_path ⇒ Object
Returns test framework binary path.
-
#cflags ⇒ Object
Return test framework specific compilation flags.
-
#include ⇒ Object
Returns test framework include path.
-
#initialize(params) ⇒ TestFramework
constructor
Initialize framework.
- #name ⇒ Object
Constructor Details
#initialize(params) ⇒ TestFramework
Initialize framework
Example parameters
:name => 'CUnit',
:binary_path => @env['LIB_OUT']
:include_dir => lib_dir(name)
:cflags => ''
15 16 17 |
# File 'lib/rakeoe/test_framework.rb', line 15 def initialize(params) @params = params end |
Instance Method Details
#binary_path ⇒ Object
Returns test framework binary path
24 25 26 |
# File 'lib/rakeoe/test_framework.rb', line 24 def binary_path @params[:binary_path] end |
#cflags ⇒ Object
Return test framework specific compilation flags
35 36 37 |
# File 'lib/rakeoe/test_framework.rb', line 35 def cflags @params[:cflags] end |
#include ⇒ Object
Returns test framework include path
29 30 31 32 |
# File 'lib/rakeoe/test_framework.rb', line 29 def include raise 'No test framework include directory exported!' if @params[:include_dir].empty? @params[:include_dir] end |
#name ⇒ Object
19 20 21 |
# File 'lib/rakeoe/test_framework.rb', line 19 def name @params[:name] end |