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
Methods included from Interface
#add_description!, #add_flow_enable, #add_flow_enable=, #add_meta!, #all_pattern_references, #app_identifier, #atp, #clean_referenced_patterns, #clear_top_level_flow, #close, #comment, #comments, #compile, #consume_comments, #descriptions, #discard_comments, #flow_generator, #identity_map, #import, #on_program_completion, #pattern_references, #pattern_references_name, #pattern_references_name=, #platform, #record_pattern_reference, #referenced_patterns, #render, #resources_mode, resources_mode?, #resources_mode?, #set_top_level_flow, #test, #top_level_flow, #unique_test_names, #unique_test_names=, with_resources_mode, write=, #write?, write?, #write_files
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 |