Skip to content

Commit

Permalink
test: add uefi test
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph committed Nov 21, 2023
1 parent 2d8ee33 commit 1ad6b0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,10 @@ ifneq ($(WASM), 0)
$(TINYGO) build -size short -o wasm.wasm -target=wasm examples/wasm/export
$(TINYGO) build -size short -o wasm.wasm -target=wasm examples/wasm/main
endif
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 examples/empty
@$(MD5SUM) test.exe
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 examples/time-offset
@$(MD5SUM) test.exe
# test various compiler flags
$(TINYGO) build -size short -o test.hex -target=pca10040 -gc=none -scheduler=none examples/blinky1
@$(MD5SUM) test.hex
Expand All @@ -786,6 +790,7 @@ endif
GOOS=windows GOARCH=arm64 $(TINYGO) build -size short -o test.exe ./testdata/cgo
GOOS=darwin GOARCH=amd64 $(TINYGO) build -size short -o test ./testdata/cgo
GOOS=darwin GOARCH=arm64 $(TINYGO) build -size short -o test ./testdata/cgo
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 ./testdata/cgo
ifneq ($(OS),Windows_NT)
# TODO: this does not yet work on Windows. Somehow, unused functions are
# not garbage collected.
Expand Down

0 comments on commit 1ad6b0a

Please sign in to comment.