2 # FS QA Test No. 100. Modified from UDF QA test 030.
4 # Test whether a tarred directory structure can be untarred onto
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License as
12 # published by the Free Software Foundation.
14 # This program is distributed in the hope that it would be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write the Free Software Foundation,
21 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #-----------------------------------------------------------------------
27 echo "QA output created by $seq"
31 status=1 # failure is the default!
32 trap "_cleanup; exit \$status" 0 1 2 3 15
34 # get standard environment, filters and checks
40 rm -f $tmp.* $testfile
43 # real QA test starts here
45 _supported_os IRIX Linux
47 # Use _populate_fs() in common.rc to create a directory structure.
49 [ "$FSTYP" == "xfs" ] && TEMP_DIR=$TEST_DIR
54 POPULATED_DIR=$TEMP_DIR/populate_root
59 # Clean up if file exist from prevous run
61 rm -f $TEMP_DIR/$TAR_FILE
63 # Create the new directory structure
64 _populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$here/$seq.full 2>&1
66 # Then tar up the directory structure
67 tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$here/$seq.full 2>&1
75 tar -xRvf $TEMP_DIR/$TAR_FILE >>$here/$seq.full 2>&1
79 # use diff -qr to compare
80 ls -R -l ${testdir}${POPULATED_DIR} >>$here/$seq.full 2>&1
81 diff -qr $POPULATED_DIR ${testdir}${POPULATED_DIR}