-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The run402 shell script now uses either v8 or spidermonkey
- Loading branch information
1 parent
1d485f8
commit dbe94de
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
#!/bin/sh | ||
|
||
command -v d8 >/dev/null 2>&1 || { echo >&2 "Could not find the d8 executable in your path."; exit 1; } | ||
command -v python >/dev/null 2>&1 || { echo >&2 "Could not find python in your path."; exit 1; } | ||
command -v python >/dev/null 2>&1 || { echo >&2 "Could not find python in your path (test262 requires it)."; exit 1; } | ||
|
||
EXEC=`command -v d8 || command -v js` || { echo >&2 "Could not find the d8 or js executables in your path."; exit 1; } | ||
CMD=`basename $EXEC` | ||
INTL=../Intl.min.js | ||
LOCALES=../locale-data/jsonp/de-DE.js | ||
LOCALES=../locale-data/jsonp/en-GB.js | ||
TESTDIR=./test262 | ||
TEST262="$TESTDIR/tools/packaging/test262.py" | ||
|
||
python $TEST262 --command "d8 $INTL $LOCALES" --tests="$TESTDIR" --summary intl402 > ./test262.log | ||
# TODO: Need to get this working with multiple locale files | ||
if [ "$CMD" = "js" ]; then | ||
python $TEST262 --command "$EXEC -f $INTL -f $LOCALES -f" --tests="$TESTDIR" --summary intl402 > ./test262.log | ||
else | ||
python $TEST262 --command "$EXEC $INTL $LOCALES" --tests="$TESTDIR" --summary intl402 > ./test262.log | ||
fi |