Permalink
Browse files

Added testrb script and -S param to allow running commands in bin dir…

… with jruby script

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@2894 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
headius committed Feb 1, 2007
1 parent 5184770 commit eb201c41ce84f6dc3518d6cd51bd4c4c38f7fa27
Showing with 8 additions and 0 deletions.
  1. +5 −0 bin/testrb
  2. +3 −0 src/org/jruby/util/CommandlineParser.java
View
@@ -0,0 +1,5 @@
+#!/usr/bin/env jruby
+require 'test/unit'
+(r = Test::Unit::AutoRunner.new(true)).process_args(ARGV) or
+ abort r.options.banner + " tests..."
+exit r.run
@@ -172,6 +172,9 @@ private void processArgument() {
String eArg = grabValue("provide a value for -K");
kcode = KCode.create(null, eArg);
break;
+ case 'S':
+ scriptFileName = System.getProperty("jruby.home") + "/bin/" + grabValue("provide a value for -S");
+ break;
case '-' :
if (argument.equals("--version")) {
setShowVersion(true);

0 comments on commit eb201c4

Please sign in to comment.