forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1703105 - wasm: Move generate-spectest tool into tree. r=lth
This commit moves the wasm-generate-testuite [1] tool into the tree so that we have everything we need to update spectests in one place. Documentation is updated. Differential Revision: https://phabricator.services.mozilla.com/D111306
- Loading branch information
Showing
16 changed files
with
2,356 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
.PHONY: update run expectations | ||
.PHONY: update | ||
|
||
warning = '\# Wasm Spec Tests\n\nThese tests are autogenerated using a tool, do not edit.\n\nSee `jit-test/etc/wasm/` for more information.' | ||
|
||
update: | ||
[ -d ./wasm-generate-testsuite ] || git clone https://github.com/eqrion/wasm-generate-testsuite ./wasm-generate-testsuite | ||
cp ./config.toml ./wasm-generate-testsuite/config.toml | ||
cp ./config-lock.toml ./wasm-generate-testsuite/config-lock.toml | ||
(cd ./wasm-generate-testsuite && RUST_LOG=info cargo run) | ||
cp ./wasm-generate-testsuite/config-lock.toml ./config-lock.toml | ||
(cd ./generate-spectests && RUST_LOG=info cargo run) | ||
rm -r ../../tests/wasm/spec | ||
cp -R wasm-generate-testsuite/tests/js ../../tests/wasm/spec | ||
cp -R generate-spectests/tests/js ../../tests/wasm/spec | ||
echo $(warning) > ../../tests/wasm/spec/README.md | ||
[ ! -d ./spec-tests.patch ] || (cd ../../tests/wasm/spec && patch -u -p7 < ../../../etc/wasm/spec-tests.patch) | ||
|
||
run: | ||
@[ -z $(MOZCONFIG) ] && echo "You need to define the MOZCONFIG env variable first." | ||
@[ -z $(MOZCONFIG) ] || ../../../../../mach wpt /_mozilla/wasm | ||
|
||
expectations: | ||
@[ -z $(MOZCONFIG) ] && echo "You need to define the MOZCONFIG env variable first." || true | ||
@[ -z $(MOZCONFIG) ] || ../../../../../mach wpt /_mozilla/wasm --log-raw /tmp/expectations.log || true | ||
@[ -z $(MOZCONFIG) ] || ../../../../../mach wpt-update /tmp/expectations.log --no-patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.