-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README, Makefile: update testing instructions, add make golden target
- Loading branch information
Showing
2 changed files
with
30 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
wit_files = $(sort $(shell find testdata -name '*.wit' ! -name '*.golden.*')) | ||
|
||
# json recompiles the JSON intermediate representation test files. | ||
.PHONY: json | ||
json: $(wit_files) | ||
|
||
.PHONY: $(wit_files) | ||
$(wit_files): | ||
wasm-tools component wit -j --all-features $@ > $@.json | ||
|
||
# golden recompiles the .golden.wit test files. | ||
.PHONY: golden | ||
golden: json | ||
go test ./wit -update |
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