js/src/jit-test/tests/wasm/spec/import_tests.sh
author Benjamin Bouvier <benj@benj.me>
Mon, 24 Oct 2016 18:48:47 +0200
changeset 320006 0418a48ed6f28cd74878531acddaf6478ec766b1
parent 301780 394f71580dca6026a38e64294eee2f8620d74f92
permissions -rwxr-xr-x
Bug 1313024: Update import_tests.sh to the latest spec repository; r=luke MozReview-Commit-ID: Aw8Rmy2FUWE

#!/bin/bash

rm -rf ./*.wast ./*.wast.js

git clone https://github.com/WebAssembly/spec spec
mv spec/interpreter/test/*.wast ./
rm -rf spec/

# TODO not handled yet
rm -f *.fail.wast

for i in $(ls *.wast);
do
    echo "// |jit-test| test-also-wasm-baseline" > $i.js
    echo "var importedArgs = ['$i']; load(scriptdir + '../spec.js');" >> $i.js
done;