Class: RakeOE::TestFramework

Inherits:
Object
  • Object
show all
Defined in:
lib/rakeoe/test_framework.rb

Instance Method Summary collapse

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_pathObject

Returns test framework binary path



24
25
26
# File 'lib/rakeoe/test_framework.rb', line 24

def binary_path
  @params[:binary_path]
end

#cflagsObject

Return test framework specific compilation flags



35
36
37
# File 'lib/rakeoe/test_framework.rb', line 35

def cflags
  @params[:cflags]
end

#includeObject

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

#nameObject



19
20
21
# File 'lib/rakeoe/test_framework.rb', line 19

def name
  @params[:name]
end