Skip to content

Commit 1ad6b0a

Browse files
committed
test: add uefi test
1 parent 2d8ee33 commit 1ad6b0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

GNUmakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,10 @@ ifneq ($(WASM), 0)
770770
$(TINYGO) build -size short -o wasm.wasm -target=wasm examples/wasm/export
771771
$(TINYGO) build -size short -o wasm.wasm -target=wasm examples/wasm/main
772772
endif
773+
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 examples/empty
774+
@$(MD5SUM) test.exe
775+
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 examples/time-offset
776+
@$(MD5SUM) test.exe
773777
# test various compiler flags
774778
$(TINYGO) build -size short -o test.hex -target=pca10040 -gc=none -scheduler=none examples/blinky1
775779
@$(MD5SUM) test.hex
@@ -786,6 +790,7 @@ endif
786790
GOOS=windows GOARCH=arm64 $(TINYGO) build -size short -o test.exe ./testdata/cgo
787791
GOOS=darwin GOARCH=amd64 $(TINYGO) build -size short -o test ./testdata/cgo
788792
GOOS=darwin GOARCH=arm64 $(TINYGO) build -size short -o test ./testdata/cgo
793+
$(TINYGO) build -size short -o test.exe -target=uefi-amd64 ./testdata/cgo
789794
ifneq ($(OS),Windows_NT)
790795
# TODO: this does not yet work on Windows. Somehow, unused functions are
791796
# not garbage collected.

0 commit comments

Comments
 (0)