Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit eb201c41ce84f6dc3518d6cd51bd4c4c38f7fa27 1 parent 5184770
@headius headius authored
Showing with 8 additions and 0 deletions.
  1. +5 −0 bin/testrb
  2. +3 −0  src/org/jruby/util/CommandlineParser.java
View
5 bin/testrb
@@ -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
View
3  src/org/jruby/util/CommandlineParser.java
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.