Skip to content

Instantly share code, notes, and snippets.

@owenthereal
Created October 17, 2012 03:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owenthereal/3903528 to your computer and use it in GitHub Desktop.
Save owenthereal/3903528 to your computer and use it in GitHub Desktop.
Run ecmascript test262 suite for Dynjs with nailgun
#!/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"
@owenthereal
Copy link
Author

Usage:

  1. copy this file to the test262 folder
  2. start nailgun server with ng-server
  3. run suite with sh run-test262-nailgun.sh <dynjs-folder>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment