Created
January 28, 2014 18:49
-
-
Save subbuss/8673710 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[subbu@earth ir] cat !$ | |
cat ~/bin/runspecs | |
#!/bin/sh | |
if [ $1 ] | |
then | |
echo "Running all specs with passes $1" | |
jruby -J-ea -X-CIR -Xir.passes=$1 -J-Djruby.launch.inproc=true -S spec/mspec/bin/mspec ci -B spec/jruby.1.9.spec -V -T -J-Djruby.compile.mode=OFFIR -T -J-Djruby.ir.passes=$1 | |
else | |
echo "Running all specs with default passes" | |
jruby -J-ea -X-CIR -J-Djruby.launch.inproc=true -S spec/mspec/bin/mspec ci -B spec/jruby.1.9.spec -V -T -J-Djruby.compile.mode=OFFIR | |
#jruby -d -J-Djruby.ir.debug=true -J-Djruby.backtrace.style=raw -J-ea -X-CIR -J-Djruby.launch.inproc=true -S spec/mspec/bin/mspec ci -B spec/jruby.1.9.spec -V -T -J-Djruby.compile.mode=OFFIR -T -d -T -J-Djruby.ir.debug=true -T -J-Djruby.backtrace.style=raw | |
fi | |
[subbu@earth ir] cat ~/bin/mspec | |
#!/bin/sh | |
if [ $1 ] | |
then | |
if [ $2 ] | |
then | |
echo "Running $1 with passes $2" | |
jruby -J-ea -X-CIR -Xir.passes=$2 -J-Djruby.launch.inproc=true $JRUBY_HOME/spec/mspec/bin/mspec -T -J-Djruby.compile.mode=OFFIR -T -J-Djruby.ir.passes=$2 $1 | |
else | |
echo "Running $1 with default passes" | |
# jruby -J-ea -X-CIR -J-Djruby.launch.inproc=true $JRUBY_HOME/spec/mspec/bin/mspec -T -J-Djruby.compile.mode=OFFIR -T -d -T -J-Djruby.ir.debug=true -T -J-Djruby.backtrace.style=raw $1 | |
jruby -J-ea -X-CIR -J-Djruby.launch.inproc=true $JRUBY_HOME/spec/mspec/bin/mspec -T -J-Djruby.compile.mode=OFFIR $1 | |
fi | |
else | |
echo "Usage: mspec spec-file [optional-passes]" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment