diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2019-12-15 10:52:55 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2019-12-15 10:52:55 -0800 |
commit | dada271ca4e9604a0373e39bc7621c95084d78ea (patch) | |
tree | ebf45eec80164e294184bb828c144f47eb5c9661 /go | |
parent | 2b5f5635be6131d7e89b4c6244b29f32ebd163c1 (diff) | |
download | platform_external_libcap-dada271ca4e9604a0373e39bc7621c95084d78ea.tar.gz platform_external_libcap-dada271ca4e9604a0373e39bc7621c95084d78ea.tar.bz2 platform_external_libcap-dada271ca4e9604a0373e39bc7621c95084d78ea.zip |
Break out test into two parts: test or sudotest.
The latter will invoke tests with sudo. Not all builds
can support this, but we do need a convenient way
to test this stuff...
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'go')
-rw-r--r-- | go/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/go/Makefile b/go/Makefile index ce22f78..9eab88a 100644 --- a/go/Makefile +++ b/go/Makefile @@ -40,7 +40,7 @@ $(CAPGOPACKAGE): src/libcap/cap/syscalls.go src/libcap/cap/names.go src/libcap/c CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" GOPATH=$(GOPATH) go install libcap/cap # Compiles something with this package to compare it to libcap. This -# tests more when run under sudo (see ../progs/quicktest.sh for that). +# tests more when run under sudotest (see ../progs/quicktest.sh for that). compare-cap: compare-cap.go $(CAPGOPACKAGE) CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" GOPATH=$(GOPATH) go build $< @@ -57,6 +57,8 @@ test: all CGO_LDFLAGS_ALLOW="$(CGO_LDFLAGS_ALLOW)" CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" GOPATH=$(GOPATH) go test libcap/cap ./compare-cap +sudotest: test + install: all mkdir -p $(FAKEROOT)$(GOPKGDIR)/libcap/psx rm -f $(FAKEROOT)$(GOPKGDIR)/libcap/psx/* |