aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/wast2json.sh
blob: 26f677b3c0507f43b6fed6d1b259f37193152120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

set -eux

if [[ -v WAST2JSON_PATH ]]; then
    wast2json="$WAST2JSON_PATH"
else
    wast2json=wast2json
fi

cd tests/fixtures/spec_testsuites/core
find . -name '*.wast' -print0 | xargs -0 -n 1 "$wast2json"
find . -name '*.wat' -print0 | xargs -0 rm -f