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>
diff --git a/Makefile b/Makefile
index a5024e7..b52ae03 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,13 @@
 endif
 	make -C progs test
 
+sudotest: all
+	make -C tests sudotest
+ifeq ($(GOLANG),yes)
+	make -C go sudotest
+endif
+	make -C progs sudotest
+
 morganrelease: distclean
 	@echo "sign the tag twice: older DSA key; and newer RSA kernel.org key"
 	git tag -u D41A6DF2 -s libcap-$(VERSION).$(MINOR) -m "This is libcap-$(VERSION).$(MINOR)"
diff --git a/go/Makefile b/go/Makefile
index ce22f78..9eab88a 100644
--- a/go/Makefile
+++ b/go/Makefile
@@ -40,7 +40,7 @@
 	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 @@
 	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/*
diff --git a/progs/Makefile b/progs/Makefile
index 4d97454..4c24f16 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -35,6 +35,8 @@
 endif
 
 test: $(PROGS)
+
+sudotest: test
 	sudo ./quicktest.sh
 
 clean:
diff --git a/tests/Makefile b/tests/Makefile
index 8a0f919..95e4ca6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -14,6 +14,8 @@
 
 test: run_psx_test run_libcap_psx_test
 
+sudotest: test
+
 install: all
 
 run_psx_test: psx_test psx_test_wrap