summaryrefslogtreecommitdiff
path: root/tests/group-names
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-16 09:19:34 +0000
committerJim Meyering <jim@meyering.net>2000-12-16 09:19:34 +0000
commitbbc027cf8bc69cc29a3242283341ed2430a217fc (patch)
treeae4ec1c1411754eae2cda61c5bf5efb0b34ace03 /tests/group-names
parent43da73f06430de52a1785cc9d8ef38d8e2e91b34 (diff)
downloadcoreutils-bbc027cf8bc69cc29a3242283341ed2430a217fc.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/group-names')
-rw-r--r--tests/group-names19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/group-names b/tests/group-names
new file mode 100644
index 000000000..ee1e5b94d
--- /dev/null
+++ b/tests/group-names
@@ -0,0 +1,19 @@
+# -*- sh -*-
+# Set `groups' to a space-separated list of at least two groups of which
+# the user is a member.
+
+groups=${FETISH_GROUPS-`id -nG 2>/dev/null`}
+case "$groups" in
+ *' '*) ;;
+ *) cat <<EOF 1>&2
+$0: this test requires that you be a member of more than one group,
+but running \`id -nG' either failed or found just one. If you really
+are a member of at least two group, then rerun this test with FETISH_GROUPS
+set in your environment to the space-separated list of names. E.g.,
+
+ env FETISH_GROUPS='users cdrom' make check
+
+EOF
+ (exit 77); exit
+ ;;
+esac