js/src/jit-test/tests/wasm/spec/import_tests.sh
author Lars T Hansen <lhansen@mozilla.com>
Fri, 10 Jun 2016 09:22:23 +0200
changeset 301780 394f71580dca6026a38e64294eee2f8620d74f92
parent 300898 926f11001e01b01ef7969a6fe836aa20ea775104
child 320006 0418a48ed6f28cd74878531acddaf6478ec766b1
permissions -rwxr-xr-x
Bug 1232205 - Wasm baseline: Add wasm baseline directives to wasm tests. r=bbouvier

#!/bin/bash

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

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

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;