-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dce3a74
commit 6ecdcf1
Showing
1 changed file
with
1 addition
and
10 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,13 +1,4 @@ | ||
.PHONY test | ||
test: | ||
# Use this command on amd64 systems | ||
go test -v -ldflags ./... | ||
|
||
.PHONY test-arm64 | ||
test-arm64: | ||
# Use this command on arm64, otherwise you will encounter linker errors. | ||
# It's not perfect: it will fail due to 'undefined symbols' errors | ||
# for packges using cgo. Still, it will get you farther than running | ||
# the default command. | ||
# To test a single package, use these -ldflags with e.g. ./pkg/governor | ||
go test -ldflags '-extldflags "-Wl,-ld_classic " ' ./... | ||
go test -v ./... |