Sha256: ac1348990c531a767b88e14ac476a2198cc5812427af3aa44b345529d5584a08

Contents?: true

Size: 1.96 KB

Versions: 27

Compression:

Stored size: 1.96 KB

Contents

# This file should be used to extend the origen command line tool with tasks 
# specific to your application.
# The comments below should help to get started and you can also refer to
# lib/origen/commands.rb in your Origen core workspace for more examples and 
# inspiration.
#
# Also see the official docs on adding commands:
#   http://origen.freescale.net/origen/latest/guides/custom/commands/

# Map any command aliases here, for example to allow origen -x to refer to a 
# command called execute you would add a reference as shown below: 
aliases ={
  "g"  => "generate"
}

# The requested command is passed in here as @command, this checks it against
# the above alias table and should not be removed.
@command = aliases[@command] || @command

case @command

  #when "latpc"
  #  require "#{Origen.root(:testers)}/lib/commands/latpc"
  # Need to see if --compile is included and setup compiler
  when "generate"
  @application_options << ["--compile", "Compile the current pattern or the list"]
  @application_options << ["-v", "--vector_comments", "Add the vector and cycle number to the vector comments"]
  if ARGV.include?('--compile')
    compiler_instance_name = ARGV[ARGV.index('--compile')+1]
    if compiler_instance_name.nil?
      $compiler = :use_app_default
    else
      ARGV.delete(compiler_instance_name) 
      $compiler = compiler_instance_name.to_sym
    end
    ARGV.delete("--compile")
  end
  $_testers_enable_vector_comments = ARGV.delete("-v") || ARGV.delete("--vector_comments")
  $_testers_no_inline_comments = ARGV.delete("--no_inline_comments")

  when "testers:build"
   require "#{Origen.root!}/lib/commands/build"
    exit 0

  when "testers:run"
   require "#{Origen.root!}/lib/commands/run"
    exit 0


  else
  @plugin_commands << " testers:build   Build a test program from a collection of sub-programs"
  @plugin_commands << " testers:run     Run the last test program generated for the current target"

end 

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
origen_testers-0.14.0 config/shared_commands.rb
origen_testers-0.13.2 config/shared_commands.rb
origen_testers-0.13.1 config/shared_commands.rb
origen_testers-0.13.0 config/shared_commands.rb
origen_testers-0.12.0 config/shared_commands.rb
origen_testers-0.11.1 config/shared_commands.rb
origen_testers-0.11.0 config/shared_commands.rb
origen_testers-0.10.0 config/shared_commands.rb
origen_testers-0.9.9 config/shared_commands.rb
origen_testers-0.9.8 config/shared_commands.rb
origen_testers-0.9.7 config/shared_commands.rb
origen_testers-0.9.6 config/shared_commands.rb
origen_testers-0.9.5 config/shared_commands.rb
origen_testers-0.9.4 config/shared_commands.rb
origen_testers-0.9.3 config/shared_commands.rb
origen_testers-0.9.2 config/shared_commands.rb
origen_testers-0.9.1 config/shared_commands.rb
origen_testers-0.9.0 config/shared_commands.rb
origen_testers-0.8.13 config/shared_commands.rb
origen_testers-0.8.11 config/shared_commands.rb