Class: OrigenTesters::Test::CustomTestInterface
- Inherits:
-
Object
- Object
- OrigenTesters::Test::CustomTestInterface
- Includes:
- ProgramGenerators
- Defined in:
- lib/origen_testers/test/custom_test_interface.rb
Constant Summary
Constants included from ProgramGenerators
Instance Method Summary collapse
- #custom(name, options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ CustomTestInterface
constructor
A new instance of CustomTestInterface.
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( = {}) 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, = {}) 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 |