3 if test "$VERBOSE" = yes; then
8 . $srcdir/../lang-default
9 . $srcdir/../envvar-check
12 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
13 trap 'status=$?; cd $pwd; rm -rf $t0 && exit $status' 0
14 trap '(exit $?); exit' 1 2 13 15
17 mkdir -p $tmp || framework_failure=1
18 cd $tmp || framework_failure=1
20 echo a > a || framework_failure=1
21 echo a-tilde > a~ || framework_failure=1
23 if test $framework_failure = 1; then
24 echo "$0: failure in testing framework" 1>&2
28 # This cp command should exit nonzero.
29 cp --b=simple a~ a > out 2>&1 && fail=1
31 sed "s,cp:,XXX:," out > out2
34 XXX: backing up `a' would destroy source; `a~' not copied
37 cmp out2 exp || fail=1
39 (exit $fail); exit $fail