js/src/jit-test/tests/wasm/spec/import_tests.sh
author Sebastian Hengst <archaeopteryx@coole-files.de>
Mon, 31 Oct 2016 19:59:07 +0100
changeset 320276 1aa20bcbb80e1014e4d01057f7d52269b0c2d908
parent 320006 0418a48ed6f28cd74878531acddaf6478ec766b1
permissions -rwxr-xr-x
Merge m-c to fx-team. r=merge a=merge

#!/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;