2 # Test POSIX-mandated -H option.
4 if test "$VERBOSE" = yes; then
9 .
$srcdir/..
/group-names
15 t0
=`echo "$0"|sed 's,.*/,,'`.tmp
; tmp
=$t0/$$
16 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
17 trap '(exit $?); exit $?' 1 2 13 15
20 mkdir
-p $tmp || framework_failure
=1
21 cd $tmp || framework_failure
=1
23 mkdir
1 2 3 || framework_failure
=1
24 touch 1/1F
2/2F
3/3F || framework_failure
=1
25 ln -s 1 1s || framework_failure
=1
26 ln -s ..
/3 2/2s || framework_failure
=1
27 chgrp
-R $g1 1 2 3 || framework_failure
=1
29 if test $framework_failure = 1; then
30 echo "$0: failure in testing framework" 1>&2
36 chgrp
-HR $g2 1s
2 || fail
=1
38 # These must have group $g2.
39 # =========================
48 # Filter out symlinks (entries that end in `s'), since it's not
49 # possible to change their group/owner information on some systems.
50 case $i in *s
) continue;; esac
51 set _
`ls -dg $i`; shift
53 test $group = $g2 || fail
=1
56 # These must have group $g1.
57 # =========================
63 for i
in $not_changed; do
64 # Filter out symlinks (entries that end in `s'), since it's not
65 # possible to change their group/owner information on some systems.
66 case $i in *s
) continue;; esac
67 set _
`ls -dg $i`; shift
69 test $group = $g1 || fail
=1
72 (exit $fail); exit $fail