diff options
author | Jim Meyering <meyering@redhat.com> | 2007-10-09 09:58:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-10-09 10:13:39 +0200 |
commit | 4597f40b7fa6f93ec798a6f0143b51c1e555a837 (patch) | |
tree | d455f2ab3f9aca9f9f8652eadd8d57df6c04d859 /tests/selinux | |
parent | 91bef1af623fc76d767ffb0af5c6d61c6f6383c5 (diff) | |
download | coreutils-4597f40b7fa6f93ec798a6f0143b51c1e555a837.tar.xz |
Skip the chcon test on a system with no SELinux support.
* tests/test-lib.sh (require_selinux_): New function.
* tests/misc/chcon: Use it.
* tests/misc/selinux: Use it here, too.
* tests/cp/cp-a-selinux: and here.
* tests/selinux: Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove selinux.
Reported by Mike Frysinger and Bauke Jan Douma.
Diffstat (limited to 'tests/selinux')
-rw-r--r-- | tests/selinux | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/selinux b/tests/selinux deleted file mode 100644 index 2026a6a98..000000000 --- a/tests/selinux +++ /dev/null @@ -1,23 +0,0 @@ -# Skip this test if there is insufficient SELinux support. -# Copyright (C) 2007 Free Software Foundation, Inc. - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -case `ls -Zd .` in - '? .'|'unlabeled .') - echo "$0: skipping this test; this system (or maybe just" 1>&2 - echo " the current file system) lacks SELinux support" 1>&2 - (exit 77); exit 77 - ;; -esac |