]>
Dogcows Code - chaz/tar/blob - tests/star/quicktest.sh
2 # This file is part of GNU tar testsuite.
3 # Copyright (C) 2004 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 # Usage: quicktest FILELIST ARCHIVE-NAME
30 tar -cf ..
/archive
-H ustar
-T $1
33 ${TARTEST:-tartest} -v < $2 > $DIR/old.out
34 ${TARTEST:-tartest} -v < archive
> $DIR/new.out
36 if cmp $DIR/old.out
$DIR/new.out
; then
41 echo "FAIL. Examine $DIR for details"
50 echo "$1 does not exist or is unreadable"
56 if [ "$STAR_TESTSCRIPTS" = "" ]; then
57 echo "STAR_TESTSCRIPTS not set"
61 if [ -d $STAR_TESTSCRIPTS ]; then
64 echo "STAR_TESTSCRIPTS is not a directory"
68 ARCHIVE
=$STAR_TESTSCRIPTS/ustar
-all-quicktest.
tar
70 FILELIST
=$STAR_TESTSCRIPTS/quicktest.filelist
73 ${TARTEST:-tartest} < /dev
/null
> /dev
/null
2>&1
74 if [ $?
-eq 127 ]; then
75 echo "tartest not in your path"
85 *) echo "Unknown option: $option" >&2
94 quicktest
$FILELIST $ARCHIVE
96 echo "You need to be root to run this test"
100 # End of quicktest.sh
This page took 0.035347 seconds and 4 git commands to generate.