Skip to content
This repository has been archived by the owner on Sep 25, 2018. It is now read-only.

Commit

Permalink
Checked in scripts to run tests with spartan shell.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeard4 committed Aug 7, 2011
1 parent f1abc88 commit ae1d947
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/run-all-tests-spartan-shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dn=`dirname $0`
abspath=`cd $dn; pwd`
basedir=`dirname $abspath`

for interpreter in spidermonkey-js v8-js webcore-js; do
$basedir/bin/run-tests-spartan-shell.sh $interpreter;
done;
29 changes: 29 additions & 0 deletions bin/run-optimization-tests-spartan-shell.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
dn=`dirname $0`
abspath=`cd $dn; pwd`
basedir=`dirname $abspath`

if [ ! -e $basedir/build/spartanLoaderForAllTests.js ]; then
echo Please run \"make scion gen-requirejs-test-loader-module\" before running this file.
exit 1
fi;

defaultShell=spidermonkey-js
shell=${1-$defaultShell}
echo $shell

pushd $basedir/build
if [ -e main.js ]; then
mv main.js /tmp/
fi;

ln -s scxml/test/spartan-optimization-harness.js main.js

$shell $basedir/lib/js/r.js

#move original main.js back
rm main.js
if [ -e /tmp/main.js ]; then
mv /tmp/main.js .
fi;

popd

0 comments on commit ae1d947

Please sign in to comment.