summaryrefslogtreecommitdiff
path: root/tests/test-lib.sh
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-29 08:55:47 +0100
committerJim Meyering <meyering@redhat.com>2008-02-09 10:30:33 +0100
commit0f197c8acd0b74a4496284491b59ceea84f8652b (patch)
tree87bd42a853aaf49fc332a912860cda26e8bc7812 /tests/test-lib.sh
parent1bfffd6a2dc1b62440429e3c7bd46564fbc1c1f9 (diff)
downloadcoreutils-0f197c8acd0b74a4496284491b59ceea84f8652b.tar.xz
tests: start migrating sourced-file function-like tests into test-lib.sh.
* tests/acl: Remove file. * tests/test-lib.sh (require_acl_): New function. * tests/cp/acl: Use require_acl_ instead. * tests/mv/acl: Likewise. * tests/Makefile.am (EXTRA_DIST): Remove acl.
Diffstat (limited to 'tests/test-lib.sh')
-rw-r--r--tests/test-lib.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test-lib.sh b/tests/test-lib.sh
index a3afba0bf..cfc386a1a 100644
--- a/tests/test-lib.sh
+++ b/tests/test-lib.sh
@@ -14,6 +14,16 @@ skip_test_()
(exit 77); exit 77
}
+require_acl_()
+{
+ getfacl --version < /dev/null > /dev/null 2>&1 \
+ && setfacl --version < /dev/null > /dev/null 2>&1 \
+ || skip_test_ "This test requires getfacl and setfacl."
+
+ id -u bin > /dev/null 2>&1 \
+ || skip_test_ "This test requires a local user named bin."
+}
+
require_ulimit_()
{
ulimit_works=yes