Skip to content

Commit ceb461e

Browse files
Jake ChampionJakeChampion
authored andcommitted
update build-wpt-runtime to use the js cli
1 parent 216a9ab commit ceb461e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ node_modules/
1313
/rusturl/
1414
# compiler_flags
1515
/js-compute-runtime.wasm
16+
tests/wpt-harness/wpt-test-runner.js
17+
wpt-runtime.wasm
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env bash
22

33
set -euo pipefail
4-
54
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
65

76
inputs=(
@@ -10,5 +9,5 @@ inputs=(
109
"${script_dir}/post-harness.js"
1110
)
1211

13-
cat "${inputs[@]}" | \
14-
wizer --allow-wasi --dir=. -r _start=wizer.resume -o wpt-runtime.wasm js-compute-runtime.wasm
12+
cat "${inputs[@]}" > "${script_dir}/wpt-test-runner.js"
13+
node "${script_dir}/../../js-compute-runtime-cli.js" "${script_dir}/wpt-test-runner.js" wpt-runtime.wasm

0 commit comments

Comments
 (0)