Sha256: 0d3bf8a186d8c0ad879f04e2b5dde17c5727a8d298cb3830375430e41aedd412
Contents?: true
Size: 1.29 KB
Versions: 33
Compression:
Stored size: 1.29 KB
Contents
module OrigenTesters module SmartestBasedTester class Base class TestSuites # Origen::Tester::Generator not included since test suites do not have their # own top-level sheet, they will be incorporated within the flow sheet attr_accessor :flow, :collection def initialize(flow) @flow = flow @collection = [] end def filename flow.filename end def add(name, options = {}) name = make_unique(name) suite = platform::TestSuite.new(name, options) @collection << suite # c = Origen.interface.consume_comments # Origen.interface.descriptions.add_for_test_definition(name, c) suite end alias_method :run, :add alias_method :run_and_branch, :add def platform Origen.interface.platform end def finalize # collection.each do |suite| # end end private def make_unique(name) @existing_names ||= {} if @existing_names[name] @existing_names[name] += 1 "#{name}_#{@existing_names[name]}" else @existing_names[name] = 0 name end end end end end end
Version data entries
33 entries across 33 versions & 1 rubygems