config/commands.rb in atp-0.1.0 vs config/commands.rb in atp-0.2.0
- old
+ new
@@ -27,17 +27,17 @@
require "commands/my_command" # Would load file lib/commands/my_command.rb
# You must always exit upon successfully capturing a command to prevent
# control flowing back to Origen
exit 0
-## Example of how to make a command to run unit tests, this simply invokes RSpec on
-## the spec directory
-#when "specs"
-# ARGV.unshift "spec"
-# require "rspec"
-# require "rspec/autorun"
-# exit 0 # This will never be hit on a fail, RSpec will automatically exit 1
+# Example of how to make a command to run unit tests, this simply invokes RSpec on
+# the spec directory
+when "specs"
+ ARGV.unshift "spec"
+ require "rspec"
+ require "rspec/autorun"
+ exit 0 # This will never be hit on a fail, RSpec will automatically exit 1
## Example of how to make a command to run diff-based tests
#when "examples"
# Origen.load_application
# status = 0
@@ -66,11 +66,11 @@
# Origen command handler.
else
# You probably want to also add the your commands 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.
-# @application_commands = <<-EOT
-# specs Run the specs (tests), -c will enable coverage
+ @application_commands = <<-EOT
+ specs Run the specs (tests), -c will enable coverage
+ EOT
# examples Run the examples (tests), -c will enable coverage
-# EOT
end