Sha256: 719a3bfbf2ba43f64aaa85da22eccc9c5159f2ec2df6ee3de6576f27ec19e0e1

Contents?: true

Size: 1.71 KB

Versions: 10

Compression:

Stored size: 1.71 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")

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

  else
  @plugin_commands << " testers:build   Build a test program from a collection of sub-programs"

end 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
origen_testers-0.5.7 config/shared_commands.rb
origen_testers-0.5.6 config/shared_commands.rb
origen_testers-0.5.5 config/shared_commands.rb
origen_testers-0.5.4 config/shared_commands.rb
origen_testers-0.5.3 config/shared_commands.rb
origen_testers-0.5.2 config/shared_commands.rb
origen_testers-0.5.1 config/shared_commands.rb
origen_testers-0.5.0 config/shared_commands.rb
origen_testers-0.4.1 config/shared_commands.rb
origen_testers-0.4.0 config/shared_commands.rb