Sha256: 5137a70f11e257b30996b2c9781938bf173fbf38b6ad27f8642d5e6badb013fc

Contents?: true

Size: 1.54 KB

Versions: 10

Compression:

Stored size: 1.54 KB

Contents

# This file should be used to extend the origen command line tool with tasks 
# specific to your application.
#
# Also see the official docs on adding commands:
#   http://origen-sdk.org/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 ={
#  "-x" => "execute",
}

# 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

# Now branch to the specific task code
case @command

when "examples"  
  Origen.load_application
  status = 0
  
  # Pattern generator tests
  ARGV = %w(example -t debug -r approved)
  load "#{Origen.top}/lib/origen/commands/generate.rb"
    
  if Origen.app.stats.changed_files == 0 &&
     Origen.app.stats.new_files == 0 &&
     Origen.app.stats.changed_patterns == 0 &&
     Origen.app.stats.new_patterns == 0

     Origen.app.stats.report_pass
  else
     Origen.app.stats.report_fail
     status = 1
  end
  puts
  exit status

# Always leave an else clause to allow control to fall back through to the
# Origen command handler.
# You probably want to also add the command details to the help shown via
# origen -h, you can do this be assigning the required text to @application_commands
# before handing control back to Origen. Un-comment the example below to get started.
else
  @application_commands = <<-EOT
 examples     Run the examples (tests), -c will enable coverage
  EOT

end 

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
origen_swd-0.4.0 config/commands.rb
origen_swd-0.3.9 config/commands.rb
origen_swd-0.3.8 config/commands.rb
origen_swd-0.3.7 config/commands.rb
origen_swd-0.3.6 config/commands.rb
origen_swd-0.3.5 config/commands.rb
origen_swd-0.3.4 config/commands.rb
origen_swd-0.3.3 config/commands.rb
origen_swd-0.3.2 config/commands.rb
origen_swd-0.3.1 config/commands.rb