Created
October 17, 2012 03:21
-
-
Save owenthereal/3903528 to your computer and use it in GitHub Desktop.
Run ecmascript test262 suite for Dynjs with nailgun
This file contains hidden or 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
#!/bin/sh | |
# Usage: | |
# | |
# * copy this file to the test262 folder | |
# * start nailgun server with `ng-server` | |
# * run suite with `sh run-test262-nailgun.sh <dynjs-folder>` | |
if [ $# = 0 ] | |
then | |
echo "Usage: run-test262 <dynjs-folder>" | |
exit 0 | |
fi | |
TEST_FOLDER=`pwd` | |
cd $1 | |
if [ ! -f target/dynjs-all.jar ]; then | |
mvn clean package -Pshade | |
fi | |
echo "Adding dynjs-all.jar to nailgun class path" | |
ng ng-cp `pwd`/target/dynjs-all.jar | |
echo "Running test262 suite..." | |
cd ${TEST_FOLDER} | |
python tools/packaging/test262.py --command "ng org.dynjs.cli.Main" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
test262
folderng-server
sh run-test262-nailgun.sh <dynjs-folder>