Class: OrigenTesters::Test::CustomTestInterface

Inherits:
Object
  • Object
show all
Includes:
ProgramGenerators
Defined in:
lib/origen_testers/test/custom_test_interface.rb

Constant Summary

Constants included from ProgramGenerators

ProgramGenerators::PLATFORMS

Instance Method Summary collapse

Methods included from ProgramGenerators

#_load_generator, #pre_initialize, #tester

Constructor Details

#initialize(options = {}) ⇒ CustomTestInterface

Returns a new instance of CustomTestInterface.



6
7
8
9
# File 'lib/origen_testers/test/custom_test_interface.rb', line 6

def initialize(options = {})
  add_custom_til if tester.try(:igxl_based?)
  add_custom_tml if tester.v93k?
end

Instance Method Details

#custom(name, options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/origen_testers/test/custom_test_interface.rb', line 11

def custom(name, options = {})
  name = "custom_#{name}".to_sym
  if tester.try(:igxl_based?)
    ti = test_instances.mylib.test_a(name)
    ti.my_arg0 = 'arg0_set'
    ti.my_arg2_alias = 'curr'
    ti.set_my_arg4('arg4_set_from_method')

  elsif tester.v93k?
    ti = test_methods.my_tml.test_a
    ti.my_arg0 = 'arg0_set'
    ti.my_arg2_alias = 'CURR'
    ti.set_my_arg4('arg4_set_from_method')

  end
end