summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/etc/wasm/Makefile
blob: c659a7000e3d40e42e24e86dc7dd53671b3d65fa (plain)
1
2
3
4
5
6
7
8
9
10
.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:
	(cd ./generate-spectests && RUST_BACKTRACE=1 RUST_LOG=info cargo run --release)
	rm -r ../../tests/wasm/spec
	cp -R generate-spectests/tests/js ../../tests/wasm/spec
	echo $(warning) > ../../tests/wasm/spec/README.md
	[ -f ./spec-tests.patch ] && (cd ../../tests/wasm/spec && patch -u -p7 < ../../../etc/wasm/spec-tests.patch)