summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/spec/import_tests.sh
blob: 78203ec191fc45718be32c2bbff5f2e611a41cfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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 "var importedArgs = ['$i']; load(scriptdir + '../spec.js');" > $i.js
done;