]> Dogcows Code - chaz/tar/blob - tests/before
04cbfdde156c1c383f6a2bcbd1e5074ce92a440b
[chaz/tar] / tests / before
1 #! /bin/sh
2
3 # Do common operations before a particular test.
4
5 # This file is part of GNU tar testsuite.
6 # Copyright (C) 2004 Free Software Foundation, Inc.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 # 02111-1307, USA.
22
23 case $# in
24 0) TAR_ARCHIVE_FORMATS="${TAR_ARCHIVE_FORMATS:-v7 oldgnu ustar posix gnu}"
25 for format in $TAR_ARCHIVE_FORMATS
26 do
27 $0 $format
28 R=$?
29 test $R -eq 0 || exit $R
30 done
31 exit 0;;
32 1) if test "x$1" = xauto; then
33 TAR_OPTIONS=
34 else
35 TAR_OPTIONS="--format=$1"
36 fi;;
37 *) echo "Too many arguments" >&2
38 exit 2;;
39 esac
40
41 mkdir tmp-$$
42 cd tmp-$$
43
44 out=
45 err=
46
47 export TAR_OPTIONS
48 #echo "$0 $1"
49 echo "$0 $1" > checking
50 exec 1> stdout
51 exec 2> stderr
52
53
This page took 0.038703 seconds and 3 git commands to generate.