Skip to content

Instantly share code, notes, and snippets.

@leobalter
Created March 2, 2016 22:24
Show Gist options
  • Save leobalter/a6e525696761a9b3977a to your computer and use it in GitHub Desktop.
Save leobalter/a6e525696761a9b3977a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
RUNNER=tools/packaging/test262.py
LOCAL_CHAKRA="C:\Users\leona\dev\ChakraCore\Build\VcBuild\bin\x64_test\ch.exe"
function help() {
cat <<HELP
Usage: run-tests.sh [RUNTIME]
Execute the "new" Test262 tests (any files in the current branch but not in
master). In the absense of a specific RUNTIME, the locally-built version of V8
will be used.
HELP
}
if [[ "$1" == "-h" || "$1" == "--help" ]]; then help; exit; fi
RUNTIME=$1
if [ -z "$RUNTIME" ]; then
RUNTIME=$LOCAL_CHAKRA
fi
while IFS= read -r -d '' NEW_TEST; do
NEW_TEST_WIN=$(echo $NEW_TEST | sed 's/\//\\/g')
python.bat $RUNNER --command $RUNTIME $NEW_TEST_WIN
done < <(git diff master -z --name-only --relative=test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment