Skip to content

Instantly share code, notes, and snippets.

@subbuss
Created January 28, 2014 18:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subbuss/8673710 to your computer and use it in GitHub Desktop.
Save subbuss/8673710 to your computer and use it in GitHub Desktop.
[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