aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2014-01-10 10:39:01 +0000
committerJulio Merino <jmmv@FreeBSD.org>2014-01-10 10:39:01 +0000
commit287083efce131101b33d1d613e6b83525d36a6c8 (patch)
treefb53e52579b547549223a537f6bda7411cbe878e /bin
parentd7efee230d547e18675348e20eb131c10e8246ff (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/tests/Kyuafile12
-rw-r--r--bin/sh/tests/Makefile1
-rw-r--r--bin/test/tests/Kyuafile12
-rw-r--r--bin/test/tests/Makefile1
4 files changed, 26 insertions, 0 deletions
diff --git a/bin/sh/tests/Kyuafile b/bin/sh/tests/Kyuafile
new file mode 100644
index 0000000000000..b2e4b320dd899
--- /dev/null
+++ b/bin/sh/tests/Kyuafile
@@ -0,0 +1,12 @@
+-- $FreeBSD$
+
+syntax(2)
+
+test_suite("FreeBSD")
+
+-- Some tests in here are silently not run when the tests are executed as
+-- root. Explicitly tell Kyua to drop privileges.
+--
+-- TODO(jmmv): Kyua needs to do this by default, not only when explicitly
+-- requested. See https://code.google.com/p/kyua/issues/detail?id=6
+tap_test_program{name="legacy_test", required_user="unprivileged"}
diff --git a/bin/sh/tests/Makefile b/bin/sh/tests/Makefile
index cd8b7a2958bc0..94bcba6062d84 100644
--- a/bin/sh/tests/Makefile
+++ b/bin/sh/tests/Makefile
@@ -3,6 +3,7 @@
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/bin/sh
+KYUAFILE= yes
TAP_TESTS_SH= legacy_test
TAP_TESTS_SH_SED_legacy_test= -e 's,__SH__,/bin/sh,g'
diff --git a/bin/test/tests/Kyuafile b/bin/test/tests/Kyuafile
new file mode 100644
index 0000000000000..b2e4b320dd899
--- /dev/null
+++ b/bin/test/tests/Kyuafile
@@ -0,0 +1,12 @@
+-- $FreeBSD$
+
+syntax(2)
+
+test_suite("FreeBSD")
+
+-- Some tests in here are silently not run when the tests are executed as
+-- root. Explicitly tell Kyua to drop privileges.
+--
+-- TODO(jmmv): Kyua needs to do this by default, not only when explicitly
+-- requested. See https://code.google.com/p/kyua/issues/detail?id=6
+tap_test_program{name="legacy_test", required_user="unprivileged"}
diff --git a/bin/test/tests/Makefile b/bin/test/tests/Makefile
index c5743de39c707..dfffbedd735ae 100644
--- a/bin/test/tests/Makefile
+++ b/bin/test/tests/Makefile
@@ -3,6 +3,7 @@
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/bin/test
+KYUAFILE= yes
TAP_TESTS_SH= legacy_test