]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
use ls to check the permissions
authorJim Meyering <jim@meyering.net>
Mon, 27 Jul 1998 13:26:58 +0000 (13:26 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 27 Jul 1998 13:26:58 +0000 (13:26 +0000)
tests/install/basic-1

index 30338157b06a5635d0bed543c9c2bfe91eb958c2..f44f5f0f1841e2c9491cc90bead3a132f5520497 100755 (executable)
@@ -3,6 +3,7 @@
 : ${MKDIR=mkdir}
 : ${RM=rm}
 : ${INSTALL=install}
+: ${LS=ls}
 
 dir=dir
 file=file
@@ -30,10 +31,11 @@ test -f $dir/$file || fail=1
 $INSTALL -s -c -m 555 ../../src/dd $dir || fail=1
 # Make sure the dest file has been created.
 test -f $dir/dd || fail=1
-# ...and that it is readable and executable but not writable.
-test -r $dir/dd || fail=1
-test -x $dir/dd || fail=1
-test -w $dir/dd && fail=1
+
+# ...and that the permissions are as requested.
+set X `$LS -l $dir/dd`
+shift
+test "$1" = -r-xr-xr-x || fail=1
 
 $RM -rf $dir $file