]> Dogcows Code - chaz/tar/blob - tests/before
Quote TAR_ARCHIVE_FORMATS
[chaz/tar] / tests / before
1 #! /bin/sh
2 # Do common operations before a particular test.
3
4 case $# in
5 0) TAR_ARCHIVE_FORMATS="${TAR_ARCHIVE_FORMATS:-v7 oldgnu ustar posix gnu}"
6 for format in $TAR_ARCHIVE_FORMATS
7 do
8 $0 $format
9 R=$?
10 test $R -eq 0 || exit $R
11 done
12 exit 0;;
13 1) if test "x$1" = xauto; then
14 TAR_OPTIONS=
15 else
16 TAR_OPTIONS="--format=$1"
17 fi;;
18 *) echo "Too many arguments" >&2
19 exit 2;;
20 esac
21
22 mkdir tmp-$$
23 cd tmp-$$
24
25 out=
26 err=
27
28 export TAR_OPTIONS
29 #echo "$0 $1"
30 echo "$0 $1" > checking
31 exec 1> stdout
32 exec 2> stderr
33
34
This page took 0.046205 seconds and 5 git commands to generate.