]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: RESULTS_DIR needs to be an absolute path
authorDave Chinner <dchinner@redhat.com>
Fri, 15 Mar 2013 12:28:06 +0000 (12:28 +0000)
committerRich Johnston <rjohnston@sgi.com>
Wed, 27 Mar 2013 02:46:23 +0000 (21:46 -0500)
Some tests 'cd <somedir>' and then direct output to $RESULT_DIR,
which fails if the current working directory is not $here.
Regardless, if an external results directory is to be used it needs
to have a full path specified and the use of $here as the base of
the results files is completely incorrect.

Hence change all the $here/$seqres* references to simply be
$seqres*, and instead encode the full path to the results in
$RESULT_DIR.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Phil White <pwhite@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
33 files changed:
check
common/attr
common/defrag
common/dump
common/filestreams
common/log
common/quota
common/rc
common/scsi_debug
tests/generic/001
tests/generic/010
tests/generic/013
tests/generic/074
tests/generic/075
tests/generic/089
tests/generic/100
tests/generic/112
tests/generic/192
tests/generic/232
tests/generic/233
tests/generic/269
tests/generic/270
tests/shared/305
tests/xfs/008
tests/xfs/012
tests/xfs/024
tests/xfs/067
tests/xfs/114
tests/xfs/115
tests/xfs/168
tests/xfs/186
tests/xfs/282
tests/xfs/283

diff --git a/check b/check
index 17bc004dc991ef8b56040f762b1c046d1b82d6e8..18cae754c3b5f4e315624efcfef47d7512506883 100755 (executable)
--- a/check
+++ b/check
@@ -36,25 +36,38 @@ here=`pwd`
 FSTYP=xfs
 xfile=""
 
-SUPPORTED_TESTS="[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]"
-SRC_GROUPS="generic shared"
-export SRC_DIR="tests"
-export RESULT_BASE=${RESULT_BASE:="results"}
-
-# generic initialization
+# start the initialisation work now
 iam=check
 
+export MSGVERB="text:action"
 export QA_CHECK_FS=${QA_CHECK_FS:=true}
 
-# by default don't output timestamps
-timestamp=${TIMESTAMP:=false}
-
 # number of diff lines from a failed test, 0 for whole output
 export DIFF_LENGTH=${DIFF_LENGTH:=10}
 
 # by default don't output timestamps
 timestamp=${TIMESTAMP:=false}
 
+rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist
+
+# Autodetect fs type based on what's on $TEST_DEV
+if [ "$HOSTOS" == "Linux" ]; then
+    FSTYP=`blkid -c /dev/null -s TYPE -o value $TEST_DEV`
+fi
+export FSTYP
+
+# we need common.config
+if ! . ./common/config
+then
+    echo "$iam: failed to source common/config"
+    exit 1
+fi
+
+SUPPORTED_TESTS="[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]"
+SRC_GROUPS="generic shared"
+export SRC_DIR="tests"
+export RESULT_BASE=${RESULT_BASE:="$here/results"}
+
 usage()
 {
     echo "Usage: $0 [options] [testlist]"'
@@ -79,12 +92,6 @@ testlist options
            exit 0
 }
 
-_setenvironment()
-{
-    MSGVERB="text:action"
-    export MSGVERB
-}
-
 get_group_list()
 {
        grp=$1
@@ -147,24 +154,6 @@ _timestamp()
     echo -n " [$now]"
 }
 
-# start the initialisation work now
-_setenvironment
-
-rm -f $tmp.list $tmp.tmp $tmp.grep $here/$iam.out $tmp.xlist
-
-# Autodetect fs type based on what's on $TEST_DEV
-if [ "$HOSTOS" == "Linux" ]; then
-    FSTYP=`blkid -c /dev/null -s TYPE -o value $TEST_DEV`
-fi
-export FSTYP
-
-# we need common.config
-if ! . ./common/config
-then
-    echo "$iam: failed to source common/config"
-    exit 1
-fi
-
 # Process command arguments first.
 while [ $# -gt 0 ]; do
        case "$1" in
index 69bcb0142587755377c0f05bf3430be98bdd48f1..e5070bf48b4068b2800b906d4e565bddc44f2652 100644 (file)
@@ -129,7 +129,7 @@ _require_acls()
     #
     touch $TEST_DIR/syscalltest
     chacl -l $TEST_DIR/syscalltest > $TEST_DIR/syscalltest.out 2>&1
-    cat $TEST_DIR/syscalltest.out >> $RESULT_DIR/$seq.full
+    cat $TEST_DIR/syscalltest.out >> $seqres.full
 
     if grep -q 'Function not implemented' $TEST_DIR/syscalltest.out; then
       _notrun "kernel does not support ACLs"
@@ -164,7 +164,7 @@ _require_attrs()
     #
     touch $TEST_DIR/syscalltest
     attr -s "user.xfstests" -V "attr" $TEST_DIR > $TEST_DIR/syscalltest.out 2>&1
-    cat $TEST_DIR/syscalltest.out >> $RESULT_DIR/$seq.full
+    cat $TEST_DIR/syscalltest.out >> $seqres.full
 
     if grep -q 'Function not implemented' $TEST_DIR/syscalltest.out; then
       _notrun "kernel does not support attrs"
index 13405a48e8c21790bfd04f5eab7a4c55f2e34137..f04fd42d28242ae28a903b758fb10a237acb73b1 100644 (file)
@@ -44,7 +44,7 @@ _require_defrag()
 _extent_count()
 {
        $FILEFRAG_PROG $1 | awk '{print $2}'
-       $FILEFRAG_PROG -v $1  >> $RESULT_DIR/$seq.full 2>&1
+       $FILEFRAG_PROG -v $1  >> $seqres.full 2>&1
 }
 
 # Defrag file, check it, and remove it.
@@ -54,7 +54,7 @@ _defrag()
        _extent_count $1
        CSUM_BEFORE=`md5sum $1`
        STAT_BEFORE=`stat -c "a: %x m: %y c: %z" $1`
-       $DEFRAG_PROG -v $1 >> $RESULT_DIR/$seq.full 2>&1
+       $DEFRAG_PROG -v $1 >> $seqres.full 2>&1
        _scratch_remount
        STAT_AFTER=`stat -c "a: %x m: %y c: %z" $1`
        CSUM_AFTER=`md5sum $1`
index 0395ee32da2570c165280434b94ba295a0e1ea61..3df619125018c945e0b3a2793906623e47f8e3ea 100644 (file)
@@ -20,7 +20,7 @@
 #
 
 # --- initializations ---
-rm -f $RESULT_DIR/$seq.full
+rm -f $seqres.full
 
 if [ -n "$DEBUGDUMP" ]; then
        _dump_debug=-v4
@@ -125,7 +125,7 @@ _check_onl()
     _limit=10
     i=0
     while [ $i -lt $_limit ]; do
-        echo "Checking online..." >>$RESULT_DIR/$seq.full
+        echo "Checking online..." >>$seqres.full
        if _mt status >$tmp.status 2>&1; then
            break;
        else
@@ -159,12 +159,12 @@ _check_onl()
 
 _wait_tape()
 {
-    echo "Wait for tape, $dumptape, ..." >>$RESULT_DIR/$seq.full
+    echo "Wait for tape, $dumptape, ..." >>$seqres.full
 
     i=0
     while [ $i -lt 20 ]; do
-        echo "Checking status..." >>$RESULT_DIR/$seq.full
-       if _mt status 2>&1 | tee -a $RESULT_DIR/$seq.full | egrep -i "onl|ready" >/dev/null; then
+        echo "Checking status..." >>$seqres.full
+       if _mt status 2>&1 | tee -a $seqres.full | egrep -i "onl|ready" >/dev/null; then
            break;
        else
            sleep 1
@@ -178,7 +178,7 @@ _wait_tape()
 #
 _rewind()
 {
-    echo "Initiate rewind..." >>$RESULT_DIR/$seq.full
+    echo "Initiate rewind..." >>$seqres.full
     _wait_tape
     _mt rewind >/dev/null
     _wait_tape
@@ -191,7 +191,7 @@ _rewind()
 #
 _erase_soft()
 {
-    echo "Erasing tape" | tee -a $RESULT_DIR/$seq.full
+    echo "Erasing tape" | tee -a $seqres.full
     _rewind
     _mt weof 3
     _rewind
@@ -199,7 +199,7 @@ _erase_soft()
 
 _erase_hard()
 {
-    echo "Erasing tape" | tee -a $RESULT_DIR/$seq.full
+    echo "Erasing tape" | tee -a $seqres.full
     _mt erase
 }
 
@@ -230,7 +230,7 @@ _require_tape()
 
     if [ -z "$dumptape" -o "@" == "$dumptape" ]; then
         echo "This test requires a dump tape - none was specified"
-       echo "No dump tape specified" >$RESULT_DIR/$seq.notrun
+       echo "No dump tape specified" >$seqres.notrun
        status=$NOTRUNSTS
        exit
     fi
@@ -243,8 +243,8 @@ _wipe_fs()
 {
     _require_scratch
 
-    _scratch_mkfs_xfs >>$RESULT_DIR/$seq.full || _fail "mkfs failed"
-    _scratch_mount >>$RESULT_DIR/$seq.full || _fail "mount failed"
+    _scratch_mkfs_xfs >>$seqres.full || _fail "mkfs failed"
+    _scratch_mount >>$seqres.full || _fail "mount failed"
 }
 
 #
@@ -266,8 +266,8 @@ _cleanup()
        # save it for inspection
        for dir in /var/xfsdump/inventory /var/lib/xfsdump/inventory; do
            [ -d $dir ] || continue
-           tar -cvf $RESULT_DIR/$seq.inventory.tar $dir
-           ls -nR $dir >$RESULT_DIR/$seq.inventory.ls
+           tar -cvf $seqres.inventory.tar $dir
+           ls -nR $dir >$seqres.inventory.ls
        done
     fi
 
@@ -295,8 +295,8 @@ _cleanup()
 _stable_fs()
 {
     _saveddir=`pwd`; cd /
-    umount $SCRATCH_MNT >>$RESULT_DIR/$seq.full || _fail "unmount failed"
-    _scratch_mount >>$RESULT_DIR/$seq.full || _fail "mount failed"
+    umount $SCRATCH_MNT >>$seqres.full || _fail "unmount failed"
+    _scratch_mount >>$seqres.full || _fail "mount failed"
     cd $_saveddir
 }
 
@@ -326,12 +326,12 @@ _create_dumpdir_stress()
     echo "-----------------------------------------------"
     if ! $here/ltp/fsstress $_param -s 1 $FSSTRESS_AVOID -n $_count -d $dump_dir >$tmp.out 2>&1
     then
-        echo "    fsstress (count=$_count) returned $? - see $RESULT_DIR/$seq.full"
+        echo "    fsstress (count=$_count) returned $? - see $seqres.full"
 
-        echo "--------------------------------------"       >>$RESULT_DIR/$seq.full
-        echo "output from fsstress:"                        >>$RESULT_DIR/$seq.full
-        echo "--------------------------------------"       >>$RESULT_DIR/$seq.full
-        cat $tmp.out                                        >>$RESULT_DIR/$seq.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "output from fsstress:"                        >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        cat $tmp.out                                        >>$seqres.full
         status=1
     fi
 
@@ -1043,7 +1043,7 @@ _do_dump_sub()
     echo "Dumping to tape..."
     opts="$_dump_debug$dump_args -s $dump_sdir -f $dumptape -M $media_label -L $session_label $SCRATCH_MNT"
     echo "xfsdump $opts" | _dir_filter
-    $XFSDUMP_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1056,7 +1056,7 @@ _do_dump()
     echo "Dumping to tape..."
     opts="$_dump_debug$dump_args -f $dumptape -M $media_label -L $session_label $SCRATCH_MNT"
     echo "xfsdump $opts" | _dir_filter
-    $XFSDUMP_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 
@@ -1071,7 +1071,7 @@ _do_dump_min()
     onemeg=1048576
     opts="$_dump_debug$dump_args -m -b $onemeg -l0 -f $dumptape -M $media_label -L $session_label $SCRATCH_MNT"
     echo "xfsdump $opts" | _dir_filter
-    $XFSDUMP_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 
@@ -1085,7 +1085,7 @@ _do_dump_file()
     echo "Dumping to file..."
     opts="$_dump_debug$dump_args -f $dump_file -M $media_label -L $session_label $SCRATCH_MNT"
     echo "xfsdump $opts" | _dir_filter
-    $XFSDUMP_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1107,7 +1107,7 @@ _do_dump_multi_file()
     echo "Dumping to files..."
     opts="$_dump_debug$dump_args $multi_args -L $session_label $SCRATCH_MNT"
     echo "xfsdump $opts" | _dir_filter
-    $XFSDUMP_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 
@@ -1140,7 +1140,7 @@ _do_restore()
     echo "Restoring from tape..."
     opts="$_restore_debug$restore_args -f $dumptape  -L $session_label $restore_dir"
     echo "xfsrestore $opts" | _dir_filter
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1155,7 +1155,7 @@ _do_restore_min()
     onemeg=1048576
     opts="$_restore_debug$restore_args -m -b $onemeg -f $dumptape  -L $session_label $restore_dir"
     echo "xfsrestore $opts" | _dir_filter
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1169,7 +1169,7 @@ _do_restore_file()
     echo "Restoring from file..."
     opts="$_restore_debug$restore_args -f $dump_file  -L $session_label $restore_dir"
     echo "xfsrestore $opts" | _dir_filter
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1184,7 +1184,7 @@ _do_restore_file_cum()
     echo "Restoring cumumlative from file..."
     opts="$_restore_debug$restore_args -f $dump_file -r $restore_dir"
     echo "xfsrestore $opts" | _dir_filter
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 _do_restore_toc()
@@ -1195,7 +1195,7 @@ _do_restore_toc()
     opts="$_restore_debug$restore_args -f $dump_file -t"
     echo "xfsrestore $opts" | _dir_filter
     cd $SCRATCH_MNT # for IRIX which needs xfs cwd
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter_main |\
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter_main |\
     _check_quota_file |\
     _check_quota_entries |\
     $AWK_PROG 'NF != 1 { print; next }
@@ -1226,7 +1226,7 @@ _do_restore_multi_file()
     echo "Restoring from file..."
     opts="$_restore_debug$restore_args $multi_args -L $session_label $restore_dir"
     echo "xfsrestore $opts" | _dir_filter
-    $XFSRESTORE_PROG $opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSRESTORE_PROG $opts 2>&1 | tee -a $seqres.full | _dump_filter
 }
 
 #
@@ -1246,7 +1246,7 @@ _do_dump_restore()
     restore_opts="$_restore_debug$restore_args - $restore_dir"
     dump_opts="$_dump_debug$dump_args -s $dump_sdir - $SCRATCH_MNT"
     echo "xfsdump $dump_opts | xfsrestore $restore_opts" | _dir_filter
-    $XFSDUMP_PROG $dump_opts 2>$tmp.dump.mlog | $XFSRESTORE_PROG $restore_opts 2>&1 | tee -a $RESULT_DIR/$seq.full | _dump_filter
+    $XFSDUMP_PROG $dump_opts 2>$tmp.dump.mlog | $XFSRESTORE_PROG $restore_opts 2>&1 | tee -a $seqres.full | _dump_filter
     _dump_filter <$tmp.dump.mlog
 }
 
@@ -1262,8 +1262,8 @@ _ls_compare_sub()
     # verify we got back what we dumped
     #
     echo "Comparing listing of dump directory with restore directory"
-    ls -nR $dump_dir | tee -a $RESULT_DIR/$seq.full | _ls_filter >$tmp.dump_dir
-    ls -nR $restore_dir/$dump_sdir | tee -a $RESULT_DIR/$seq.full | _ls_filter \
+    ls -nR $dump_dir | tee -a $seqres.full | _ls_filter >$tmp.dump_dir
+    ls -nR $restore_dir/$dump_sdir | tee -a $seqres.full | _ls_filter \
     | sed -e "s#$restore_sdir\/##" >$tmp.restore_dir
 
     diff -bcs $tmp.dump_dir $tmp.restore_dir | sed -e "s#$tmp#TMP#g"
@@ -1285,8 +1285,8 @@ _ls_nodate_compare_sub()
     # verify we got back what we dumped
     #
     echo "Comparing listing of dump directory with restore directory"
-    ls -nR $dump_dir | tee -a $RESULT_DIR/$seq.full | _ls_filter | _ls_nodate_filter >$tmp.dump_dir
-    ls -nR $restore_dir/$dump_sdir | tee -a $RESULT_DIR/$seq.full | _ls_filter \
+    ls -nR $dump_dir | tee -a $seqres.full | _ls_filter | _ls_nodate_filter >$tmp.dump_dir
+    ls -nR $restore_dir/$dump_sdir | tee -a $seqres.full | _ls_filter \
     | _ls_nodate_filter | sed -e "s#$restore_sdir\/##" >$tmp.restore_dir
 
     diff -bcs $tmp.dump_dir $tmp.restore_dir | sed -e "s#$tmp#TMP#g"
@@ -1359,13 +1359,13 @@ _diff_compare_eas()
     echo "Comparing dump directory with restore directory"
     echo "Looking at the extended attributes (EAs)"
     echo "EAs on dump"
-    _get_eas_on_path $dump_dir | tee $RESULT_DIR/$seq.ea1 | _dir_filter
+    _get_eas_on_path $dump_dir | tee $seqres.ea1 | _dir_filter
     echo "EAs on restore"
     _get_eas_on_path $restore_dir/$dump_sdir \
     | sed -e "s#$restore_sdir\/##" \
-    | tee $RESULT_DIR/$seq.ea2 \
+    | tee $seqres.ea2 \
     | _dir_filter
-    diff -s $RESULT_DIR/$seq.ea1 $RESULT_DIR/$seq.ea2
+    diff -s $seqres.ea1 $seqres.ea2
 }
 
 
@@ -1384,7 +1384,7 @@ _diff_compare()
 #
 _dump_inventory()
 {
-    $XFSDUMP_PROG $_dump_debug -I | tee -a $RESULT_DIR/$seq.full | _dump_filter_main
+    $XFSDUMP_PROG $_dump_debug -I | tee -a $seqres.full | _dump_filter_main
 }
 
 #
@@ -1394,9 +1394,9 @@ _dump_inventory()
 _do_invutil()
 {
     host=`hostname`
-    echo "xfsinvutil $_invutil_debug -M $host:$SCRATCH_MNT \"$middate\" $*" >$RESULT_DIR/$seq.full
+    echo "xfsinvutil $_invutil_debug -M $host:$SCRATCH_MNT \"$middate\" $*" >$seqres.full
     $XFSINVUTIL_PROG $_invutil_debug $* -M $host:$SCRATCH_MNT "$middate" \
-    | tee -a $RESULT_DIR/$seq.full | _invutil_filter
+    | tee -a $seqres.full | _invutil_filter
 }
 
 #
@@ -1416,7 +1416,7 @@ _check_quota()
     $here/src/feature -P $SCRATCH_DEV && pquota=1
 
     $AWK_PROG -v uquota=$uquota -v gquota=$gquota -v pquota=$pquota \
-             -v full=$RESULT_DIR/$seq.full -v usermsg="$usermsg" \
+             -v full=$seqres.full -v usermsg="$usermsg" \
              -v groupmsg="$groupmsg" -v projectmsg="$projectmsg" '
        $0 ~ projectmsg {
                        print "Found project quota:", $0 >>full
index b3aee27099928c44a1d7e0c89a516f2fcaea6bf6..590fa7f17805f056b9b6a926f46c438fe7e5b1d5 100644 (file)
@@ -116,7 +116,7 @@ _check_for_dupes()
                 for this_num_two in $num_str_two; do
                         if [ "$this_num_one" == "$this_num_two" ]; then
                                echo "duplicate AG $this_num_one found" \
-                                       >> $RESULT_DIR/$seq.full
+                                       >> $seqres.full
                                return 1
                        fi
                 done
@@ -189,7 +189,7 @@ _test_streams() {
        stream_index=1
        while [ $stream_index -le $stream_count ]; do
                this_stream_ags=`_get_stream_ags stream${stream_index}-dir`
-               echo "stream $stream_index AGs: $this_stream_ags" >> $RESULT_DIR/$seq.full
+               echo "stream $stream_index AGs: $this_stream_ags" >> $seqres.full
                _check_for_dupes "$ags_seen" "$this_stream_ags"
                if [ $? -ne 0 ]; then
                        # this stream is not in seperate AGs to previous streams
index 727bb6c7c3a29b29446f235163b84b3804d3d111..87074d971e2a1b90edf522d4e4544263d3da4f65 100644 (file)
@@ -20,7 +20,7 @@
 # Created by dxm@sgi.com & tes@sgi.com
 #
 
-fulldir=$RESULT_DIR/$seq.fulldir
+fulldir=$seqres.fulldir
 rm -rf $fulldir
 
 _cleanup_logfiles()
@@ -33,16 +33,16 @@ _cleanup_logfiles()
 
 _full()
 {
-    echo ""            >>$RESULT_DIR/$seq.full
-    echo "*** $* ***"  >>$RESULT_DIR/$seq.full
-    echo ""            >>$RESULT_DIR/$seq.full
+    echo ""            >>$seqres.full
+    echo "*** $* ***"  >>$seqres.full
+    echo ""            >>$seqres.full
 }
 
 _echofull()
 {
-    echo ""            | tee -a $RESULT_DIR/$seq.full
-    echo "*** $* ***"  | tee -a $RESULT_DIR/$seq.full
-    echo ""            | tee -a $RESULT_DIR/$seq.full
+    echo ""            | tee -a $seqres.full
+    echo "*** $* ***"  | tee -a $seqres.full
+    echo ""            | tee -a $seqres.full
 }
 
 # Handle the operations which get split over Log Record
@@ -212,13 +212,13 @@ _filter_logprint()
 _check_log()
 {
     _full "clean_log : xfs_logprint"
-    _scratch_xfs_logprint -t | tee -a $RESULT_DIR/$seq.full \
+    _scratch_xfs_logprint -t | tee -a $seqres.full \
         | head | grep -q "<CLEAN>" || _fail "DIRTY LOG"
 }
 
 _print_logstate()
 {
-    _scratch_xfs_logprint -t | tee -a $RESULT_DIR/$seq.full >$tmp.logprint
+    _scratch_xfs_logprint -t | tee -a $seqres.full >$tmp.logprint
     if grep -q "<DIRTY>" $tmp.logprint; then
        echo "dirty log"
     fi
@@ -288,7 +288,7 @@ _mkfs_log()
     # mkfs options to append to log size otion can be specified ($*)
     export MKFS_OPTIONS="-l size=2000b -l lazy-count=1 $*"
     _full "mkfs"
-    _scratch_mkfs_xfs >>$RESULT_DIR/$seq.full 2>&1
+    _scratch_mkfs_xfs >>$seqres.full 2>&1
     if [ $? -ne 0 ] ; then 
        _echofull "Cannot mkfs for this test using option specified: $MKFS_OPTIONS"
        return 1
@@ -305,7 +305,7 @@ _create_log()
 {
     # mount the FS
     _full "mount"
-    _scratch_mount >>$RESULT_DIR/$seq.full 2>&1
+    _scratch_mount >>$seqres.full 2>&1
     if [ $? -ne 0 ] ; then 
        _echofull "mount failed: $MOUNT_OPTIONS"
        return 1
@@ -318,7 +318,7 @@ _create_log()
        
     # unmount the FS
     _full "umount"
-    umount $SCRATCH_DEV >>$RESULT_DIR/$seq.full 2>&1
+    umount $SCRATCH_DEV >>$seqres.full 2>&1
     if [ $? -ne 0 ] ; then 
        _echofull "umount failed"
        return 1
@@ -334,7 +334,7 @@ _create_log_sync()
 {
     # mount the FS
     _full " mount"
-    _scratch_mount >>$RESULT_DIR/$seq.full 2>&1
+    _scratch_mount >>$seqres.full 2>&1
     if [ $? -ne 0 ] ; then 
        _echofull "mount failed: $MOUNT_OPTIONS"
        return 1
@@ -349,7 +349,7 @@ _create_log_sync()
 
     # unmount the FS
     _full "umount"
-    umount $SCRATCH_DEV >>$RESULT_DIR/$seq.full 2>&1
+    umount $SCRATCH_DEV >>$seqres.full 2>&1
     if [ $? -ne 0 ] ; then 
        _echofull "umount failed"
        return 1
@@ -448,21 +448,21 @@ _require_v2log()
 {
     # test out mkfs to see if it supports "-l version=2"
     export MKFS_OPTIONS="-l version=2"
-    if ! _scratch_mkfs_xfs >>$RESULT_DIR/$seq.full 2>&1; then
+    if ! _scratch_mkfs_xfs >>$seqres.full 2>&1; then
         _notrun "mkfs does not support v2 logs"
     fi
 
     # test out mount to see if it mounts a v2 log fs
     export MOUNT_OPTIONS="-o logbsize=32k"
-    if ! _scratch_mount >>$RESULT_DIR/$seq.full 2>&1; then
+    if ! _scratch_mount >>$seqres.full 2>&1; then
         _notrun "mount/kernel does not support v2 logs"
     fi
 
     # check after unmount to see if it is clean
     # i.e. it is not a 6.5.25 buggy version checking kernel
     touch $SCRATCH_MNT/file
-    umount $SCRATCH_DEV >>$RESULT_DIR/$seq.full 2>&1
-    if _scratch_xfs_logprint -t | tee -a $RESULT_DIR/$seq.full \
+    umount $SCRATCH_DEV >>$seqres.full 2>&1
+    if _scratch_xfs_logprint -t | tee -a $seqres.full \
         | head | grep -q "<DIRTY>"; then
         _notrun "kernel does not support v2 logs"
     fi
index ff8038251586796268da1722b58086e65d3dacd1..7f349abb567be453afa3560ac1dd41e7c6ba9fac 100644 (file)
@@ -96,8 +96,8 @@ _file_as_id()
 
     parent=`dirname $1`
     if [ $3 = p ]; then
-       echo PARENT: xfs_io -r -c "chproj $2" -c "chattr +P" $parent >>$RESULT_DIR/$seq.full
-       $XFS_IO_PROG -r -c "chproj $2" -c "chattr +P" $parent >>$RESULT_DIR/$seq.full 2>&1
+       echo PARENT: xfs_io -r -c "chproj $2" -c "chattr +P" $parent >>$seqres.full
+       $XFS_IO_PROG -r -c "chproj $2" -c "chattr +P" $parent >>$seqres.full 2>&1
        magik='$>'      # (irrelevent, above set projid-inherit-on-parent)
     elif [ $3 = u ]; then
        magik='$>'      # perlspeak for effective uid
@@ -107,7 +107,7 @@ _file_as_id()
        _notrun "broken type in call to _file_as_id in test $seq"
     fi
 
-    perl <<EOF >>$RESULT_DIR/$seq.full 2>&1
+    perl <<EOF >>$seqres.full 2>&1
        \$| = 1;
        $magik = $2;
        if ($5 == 0) {
@@ -119,11 +119,11 @@ _file_as_id()
        }
 EOF
 # for debugging the above euid change, try... [need write in cwd]
-#      exec "dd if=/dev/zero of=$1 bs=$4 count=$5 >>$RESULT_DIR/$seq.full 2>&1";
+#      exec "dd if=/dev/zero of=$1 bs=$4 count=$5 >>$seqres.full 2>&1";
 
     if [ $3 = p ]; then
-       echo PARENT: xfs_io -r -c "chproj 0" -c "chattr -P" $parent >>$RESULT_DIR/$seq.full
-       $XFS_IO_PROG -r -c "chproj 0" -c "chattr -P" $parent >>$RESULT_DIR/$seq.full 2>&1
+       echo PARENT: xfs_io -r -c "chproj 0" -c "chattr -P" $parent >>$seqres.full
+       $XFS_IO_PROG -r -c "chproj 0" -c "chattr -P" $parent >>$seqres.full 2>&1
     fi
 }
 
@@ -198,8 +198,8 @@ _qsetup()
        _notrun "No quota support at mount time"
     fi
 
-    echo "Using output from '" `ls -l $seq.out` "'" >>$RESULT_DIR/$seq.full
-    echo "and using type=$type id=$id" >>$RESULT_DIR/$seq.full
+    echo "Using output from '" `ls -l $seq.out` "'" >>$seqres.full
+    echo "and using type=$type id=$id" >>$seqres.full
 }
 
 #
@@ -229,7 +229,7 @@ _qmount_option()
 
        # Ensure we have the given quota option - duplicates are fine
        export MOUNT_OPTIONS="$MOUNT_OPTIONS -o $1"
-       echo "MOUNT_OPTIONS = $MOUNT_OPTIONS" >>$RESULT_DIR/$seq.full
+       echo "MOUNT_OPTIONS = $MOUNT_OPTIONS" >>$seqres.full
 }
 
 _check_quota_usage()
index 44469e9994522933c9bdb7cd38cbd03d0894b22a..5145cb64a1a02c06060c5dfc6aeab2ff76f98135 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -358,9 +358,9 @@ _scratch_mkfs_xfs()
 
     if [ $mkfs_status -ne 0 -a ! -z "$extra_mkfs_options" ]; then
         echo "** mkfs failed with extra mkfs options added to \"$MKFS_OPTIONS\" by test $seq **" \
-            >>$RESULT_DIR/$seq.full
+            >>$seqres.full
         echo "** attempting to mkfs using only test $seq options: $extra_mkfs_options **" \
-            >>$RESULT_DIR/$seq.full
+            >>$seqres.full
         # running mkfs again. overwrite previous mkfs output files
         $MKFS_XFS_PROG $SCRATCH_OPTIONS $extra_mkfs_options $SCRATCH_DEV \
             2>$tmp_dir.mkfserr 1>$tmp_dir.mkfsstd
@@ -796,7 +796,7 @@ _is_block_dev()
     fi
 }
 
-# Do a command, log it to $RESULT_DIR/$seq.full, optionally test return status
+# Do a command, log it to $seqres.full, optionally test return status
 # and die if command fails. If called with one argument _do executes the
 # command, logs it, and returns its exit status. With two arguments _do
 # first prints the message passed in the first argument, and then "done"
@@ -804,7 +804,7 @@ _is_block_dev()
 # second argument. If the command fails and the variable _do_die_on_error
 # is set to "always" or the two argument form is used and _do_die_on_error
 # is set to "message_only" _do will print an error message to
-# $RESULT_DIR/$seq.out and exit.
+# $seqres.out and exit.
 
 _do()
 {
@@ -819,9 +819,9 @@ _do()
        status=1; exit
     fi
 
-    (eval "echo '---' \"$_cmd\"") >>$RESULT_DIR/$seq.full
+    (eval "echo '---' \"$_cmd\"") >>$seqres.full
     (eval "$_cmd") >$tmp._out 2>&1; ret=$?
-    cat $tmp._out | _fix_malloc >>$RESULT_DIR/$seq.full
+    cat $tmp._out | _fix_malloc >>$seqres.full
     if [ $# -eq 2 ]; then
        if [ $ret -eq 0 ]; then
            echo "done"
@@ -834,7 +834,7 @@ _do()
            -o \( $# -eq 2 -a "$_do_die_on_error" = "message_only" \) ]
     then
        [ $# -ne 2 ] && echo
-       eval "echo \"$_cmd\" failed \(returned $ret\): see $RESULT_DIR/$seq.full"
+       eval "echo \"$_cmd\" failed \(returned $ret\): see $seqres.full"
        status=1; exit
     fi
 
@@ -845,7 +845,7 @@ _do()
 #
 _notrun()
 {
-    echo "$*" > $RESULT_DIR/$seq.notrun
+    echo "$*" > $seqres.notrun
     echo "$seq not run: $*"
     status=0
     exit
@@ -855,8 +855,8 @@ _notrun()
 #
 _fail()
 {
-    echo "$*" | tee -a $RESULT_DIR/$seq.full
-    echo "(see $RESULT_DIR/$seq.full for details)"
+    echo "$*" | tee -a $seqres.full
+    echo "(see $seqres.full for details)"
     status=1
     exit 1
 }
@@ -1343,12 +1343,12 @@ _check_generic_filesystem()
     fsck -t $FSTYP $FSCK_OPTIONS $device >$tmp.fsck 2>&1
     if [ $? -ne 0 ]
     then
-        echo "_check_generic_filesystem: filesystem on $device is inconsistent (see $RESULT_DIR/$seq.full)"
+        echo "_check_generic_filesystem: filesystem on $device is inconsistent (see $seqres.full)"
 
-        echo "_check_generic filesystem: filesystem on $device is inconsistent" >>$RESULT_DIR/$seq.full
-        echo "*** fsck.$FSTYP output ***"      >>$RESULT_DIR/$seq.full
-        cat $tmp.fsck                          >>$RESULT_DIR/$seq.full
-        echo "*** end fsck.$FSTYP output"      >>$RESULT_DIR/$seq.full
+        echo "_check_generic filesystem: filesystem on $device is inconsistent" >>$seqres.full
+        echo "*** fsck.$FSTYP output ***"      >>$seqres.full
+        cat $tmp.fsck                          >>$seqres.full
+        echo "*** end fsck.$FSTYP output"      >>$seqres.full
 
         ok=0
     fi
@@ -1356,9 +1356,9 @@ _check_generic_filesystem()
 
     if [ $ok -eq 0 ]
     then
-        echo "*** mount output ***"            >>$RESULT_DIR/$seq.full
-        _mount                                 >>$RESULT_DIR/$seq.full
-        echo "*** end mount output"            >>$RESULT_DIR/$seq.full
+        echo "*** mount output ***"            >>$seqres.full
+        _mount                                 >>$seqres.full
+        echo "*** end mount output"            >>$seqres.full
     elif [ "$type" = "$FSTYP" ]
     then
        # was mounted ...
@@ -1412,12 +1412,12 @@ _check_xfs_filesystem()
                 | tee $tmp.logprint | grep -q "<CLEAN>"
     if [ $? -ne 0 -a "$HOSTOS" = "Linux" ]
     then
-        echo "_check_xfs_filesystem: filesystem on $device has dirty log (see $RESULT_DIR/$seq.full)"
+        echo "_check_xfs_filesystem: filesystem on $device has dirty log (see $seqres.full)"
 
-        echo "_check_xfs_filesystem: filesystem on $device has dirty log"   >>$RESULT_DIR/$seq.full
-        echo "*** xfs_logprint -t output ***"  >>$RESULT_DIR/$seq.full
-        cat $tmp.logprint                      >>$RESULT_DIR/$seq.full
-        echo "*** end xfs_logprint output"     >>$RESULT_DIR/$seq.full
+        echo "_check_xfs_filesystem: filesystem on $device has dirty log"   >>$seqres.full
+        echo "*** xfs_logprint -t output ***"  >>$seqres.full
+        cat $tmp.logprint                      >>$seqres.full
+        echo "*** end xfs_logprint output"     >>$seqres.full
 
         ok=0
     fi
@@ -1431,12 +1431,12 @@ _check_xfs_filesystem()
     fi
     if [ -s $tmp.fs_check ]
     then
-        echo "_check_xfs_filesystem: filesystem on $device is inconsistent (c) (see $RESULT_DIR/$seq.full)"
+        echo "_check_xfs_filesystem: filesystem on $device is inconsistent (c) (see $seqres.full)"
 
-        echo "_check_xfs_filesystem: filesystem on $device is inconsistent" >>$RESULT_DIR/$seq.full
-        echo "*** xfs_check output ***"                >>$RESULT_DIR/$seq.full
-        cat $tmp.fs_check                      >>$RESULT_DIR/$seq.full
-        echo "*** end xfs_check output"                >>$RESULT_DIR/$seq.full
+        echo "_check_xfs_filesystem: filesystem on $device is inconsistent" >>$seqres.full
+        echo "*** xfs_check output ***"                >>$seqres.full
+        cat $tmp.fs_check                      >>$seqres.full
+        echo "*** end xfs_check output"                >>$seqres.full
 
         ok=0
     fi
@@ -1444,12 +1444,12 @@ _check_xfs_filesystem()
     $XFS_REPAIR_PROG -n $extra_log_options $extra_rt_options $device >$tmp.repair 2>&1
     if [ $? -ne 0 ]
     then
-        echo "_check_xfs_filesystem: filesystem on $device is inconsistent (r) (see $RESULT_DIR/$seq.full)"
+        echo "_check_xfs_filesystem: filesystem on $device is inconsistent (r) (see $seqres.full)"
 
-        echo "_check_xfs_filesystem: filesystem on $device is inconsistent" >>$RESULT_DIR/$seq.full
-        echo "*** xfs_repair -n output ***"    >>$RESULT_DIR/$seq.full
-        cat $tmp.repair | _fix_malloc          >>$RESULT_DIR/$seq.full
-        echo "*** end xfs_repair output"       >>$RESULT_DIR/$seq.full
+        echo "_check_xfs_filesystem: filesystem on $device is inconsistent" >>$seqres.full
+        echo "*** xfs_repair -n output ***"    >>$seqres.full
+        cat $tmp.repair | _fix_malloc          >>$seqres.full
+        echo "*** end xfs_repair output"       >>$seqres.full
 
         ok=0
     fi
@@ -1457,9 +1457,9 @@ _check_xfs_filesystem()
 
     if [ $ok -eq 0 ]
     then
-        echo "*** mount output ***"            >>$RESULT_DIR/$seq.full
-        _mount                                 >>$RESULT_DIR/$seq.full
-        echo "*** end mount output"            >>$RESULT_DIR/$seq.full
+        echo "*** mount output ***"            >>$seqres.full
+        _mount                                 >>$seqres.full
+        echo "*** end mount output"            >>$seqres.full
     elif [ "$type" = "xfs" ]
     then
        _mount_or_remount_rw "$extra_mount_options" $device $mountpoint
@@ -1507,12 +1507,12 @@ _check_udf_filesystem()
         OPT_ARG="-lastvalidblock $LAST_BLOCK"
     fi
 
-    rm -f $RESULT_DIR/$seq.checkfs
+    rm -f $seqres.checkfs
     sleep 1 # Due to a problem with time stamps in udf_test
-    $here/src/udf_test $OPT_ARG $device | tee $RESULT_DIR/$seq.checkfs | egrep "Error|Warning" | \
+    $here/src/udf_test $OPT_ARG $device | tee $seqres.checkfs | egrep "Error|Warning" | \
        _udf_test_known_error_filter | \
        egrep -iv "Error count:.*[0-9]+.*total occurrences:.*[0-9]+|Warning count:.*[0-9]+.*total occurrences:.*[0-9]+" | \
-       sed "s/^.*$/Warning UDF Verifier reported errors see $RESULT_DIR/$seq.checkfs./g"
+       sed "s/^.*$/Warning UDF Verifier reported errors see $seqres.checkfs./g"
 
 }
 
@@ -1553,12 +1553,12 @@ _check_btrfs_filesystem()
     btrfsck $device >$tmp.fsck 2>&1
     if [ $? -ne 0 ]
     then
-        echo "_check_btrfs_filesystem: filesystem on $device is inconsistent (see $RESULT_DIR/$seq.full)"
+        echo "_check_btrfs_filesystem: filesystem on $device is inconsistent (see $seqres.full)"
 
-        echo "_check_btrfs_filesystem: filesystem on $device is inconsistent" >>$RESULT_DIR/$seq.full
-        echo "*** fsck.$FSTYP output ***"      >>$RESULT_DIR/$seq.full
-        cat $tmp.fsck                          >>$RESULT_DIR/$seq.full
-        echo "*** end fsck.$FSTYP output"      >>$RESULT_DIR/$seq.full
+        echo "_check_btrfs_filesystem: filesystem on $device is inconsistent" >>$seqres.full
+        echo "*** fsck.$FSTYP output ***"      >>$seqres.full
+        cat $tmp.fsck                          >>$seqres.full
+        echo "*** end fsck.$FSTYP output"      >>$seqres.full
 
         ok=0
     fi
@@ -1566,9 +1566,9 @@ _check_btrfs_filesystem()
 
     if [ $ok -eq 0 ]
     then
-        echo "*** mount output ***"            >>$RESULT_DIR/$seq.full
-        _mount                                 >>$RESULT_DIR/$seq.full
-        echo "*** end mount output"            >>$RESULT_DIR/$seq.full
+        echo "*** mount output ***"            >>$seqres.full
+        _mount                                 >>$seqres.full
+        echo "*** end mount output"            >>$seqres.full
     elif [ "$type" = "$FSTYP" ]
     then
        # was mounted ...
@@ -2053,8 +2053,8 @@ _scale_fsstress_args()
 
 run_check()
 {
-       echo "# $@" >> $RESULT_DIR/$seq.full 2>&1
-       "$@" >> $RESULT_DIR/$seq.full 2>&1 || _fail "failed: '$@'"
+       echo "# $@" >> $seqres.full 2>&1
+       "$@" >> $seqres.full 2>&1 || _fail "failed: '$@'"
 }
 
 ################################################################################
index f05c8db911b82834371142eae4a5a66eec3970bf..d073b6d9e6961c2b5aea0f914541b97fe1f2dee4 100644 (file)
@@ -47,7 +47,7 @@ _get_scsi_debug_dev()
                let phys_exp=phys_exp+1
        done
        opts="sector_size=$logical physblk_exp=$phys_exp lowest_aligned=$unaligned dev_size_mb=$size"
-       echo "scsi_debug options $opts" >> $RESULT_DIR/$seq.full
+       echo "scsi_debug options $opts" >> $seqres.full
        modprobe scsi_debug $opts
        [ $? -eq 0 ] || _fail "scsi_debug modprobe failed"
        sleep 1
index c7d9e5fa44b24b017502cbc11620abeb00767788..326097142180f07b46ae5ebcd8b399cac2eff269 100755 (executable)
@@ -192,7 +192,7 @@ _mark_iteration()
 #
 _chain()
 {
-    $AWK_PROG -v full_file=$here/$seqres.full -v verify=$verify <$tmp.config '
+    $AWK_PROG -v full_file=$seqres.full -v verify=$verify <$tmp.config '
 BEGIN  { nfile = 0 }
 /^\#/  { next }
        { file[nfile] = $1
@@ -240,7 +240,7 @@ END { srand('$iter')
            }
          }
        }' \
-       | tee -a $here/$seqres.full | sh
+       | tee -a $seqres.full | sh
 }
 
 _check()
@@ -294,7 +294,7 @@ _cleanup()
     fi
 }
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 status=0
 _cleanup
 status=1
@@ -308,7 +308,7 @@ _setup
 for iter in 1 2 3 4 5
 do
     echo -n "iter $iter chain ... "
-    echo "iter $iter" >> $here/$seqres.full
+    echo "iter $iter" >> $seqres.full
     _chain
     _check
     if [ -f $tmp.bad ]
index 61f7a3ce951828c2436af3327f4da3c60921ca02..ccfa4ece6c6f043d1660e18b5621df41c4d4558a 100755 (executable)
@@ -66,7 +66,7 @@ rm -f $seqres.full
 
 cd $testdir
 
-$here/src/dbtest -l 5 -n 1000 2>&1 | tee -a $here/$seqres.full | _filter_dbtest
+$here/src/dbtest -l 5 -n 1000 2>&1 | tee -a $seqres.full | _filter_dbtest
 
 # success, all done
 exit
index 71caa2f61f85a73ead7588e3f4a56cda3d7dec97..281973086072345acd3830ebc0700b1f7948c643 100755 (executable)
@@ -80,11 +80,11 @@ _do_test()
     if ! $FSSTRESS_PROG $_param $FSSTRESS_AVOID -v -m 8 -n $_count -d $out >>$dbgoutfile 2>&1
     then
         echo "    fsstress (count=$_count) returned $? - see $seqres.full"
-        echo "--------------------------------------"       >>$here/$seqres.full
-        echo "$_n - output from fsstress:"                  >>$here/$seqres.full
-        echo "--------------------------------------"       >>$here/$seqres.full
-        echo "<NOT LOGGED>"                                 >>$here/$seqres.full
-        #cat $tmp.out                                       >>$here/$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from fsstress:"                  >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "<NOT LOGGED>"                                 >>$seqres.full
+        #cat $tmp.out                                       >>$seqres.full
         status=1
     fi
 
@@ -98,7 +98,7 @@ _supported_os IRIX Linux
 
 _setup_testdir
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 echo "brevity is wit..."
 
 count=1000
index dd0497fbf08a85d6164d7f8e4c1dddde1ac3d81f..637cad4425facdb644cc8ac9a02a336caa635ac0 100755 (executable)
@@ -110,7 +110,7 @@ _process_args()
 
 
 # real QA test starts here
-rm -f $here/$seqres.full
+rm -f $seqres.full
 
 _supported_fs generic
 _supported_os IRIX Linux
index 2d3d3ea85726c9910dca6330089f9d6a8773eebf..6dc9f96d3006468934cd4c85a7e8a8c3c60c76d4 100755 (executable)
@@ -80,10 +80,10 @@ _do_test()
     cd $out
     if ! $here/ltp/fsx $_param -P $here $seq.$_n &>/dev/null
     then
-       echo "    fsx ($_param) failed, $? - compare $seq.$_n.{good,bad,fsxlog}"
-       mv $out/$seq.$_n $here/$seq.$_n.full
-       od -xAx $here/$seq.$_n.full > $here/$seq.$_n.bad
-       od -xAx $here/$seq.$_n.fsxgood > $here/$seq.$_n.good
+       echo "    fsx ($_param) failed, $? - compare $seqres.$_n.{good,bad,fsxlog}"
+       mv $out/$seq.$_n $seqres.$_n.full
+       od -xAx $seqres.$_n.full > $seqres.$_n.bad
+       od -xAx $seqres.$_n.fsxgood > $seqres.$_n.good
        status=1
        exit
     fi
@@ -141,7 +141,7 @@ echo "Params: n = $numops1 N = $numops2 l = $filelen" >>$seqres.full
 
 _setup_testdir
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 echo "brevity is wit..."
 
 _check_test_fs
index 83d050d647837985b8a639882c74c24ecab15da5..4bb9103d9129662395f57e4d24d0a6e140b54e4a 100755 (executable)
@@ -75,8 +75,8 @@ mtab()
 
        echo directory entries:
        ls | grep mtab
-       echo directory entries >> $here/$seqres.full
-       ls -li >> $here/$seqres.full
+       echo directory entries >> $seqres.full
+       ls -li >> $seqres.full
 }
 
 # directory with only a few entries
index 8152fc1eb87de7dc18589ff1b62072c9597f1b0f..eae8395aa0ca40cbe983fb01ce3f2ea8d520ad33 100755 (executable)
@@ -64,10 +64,10 @@ rm -rf $POPULATED_DIR
 rm -f $TEMP_DIR/$TAR_FILE
 
 # Create the new directory structure
-_populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$here/$seqres.full 2>&1
+_populate_fs -n $NDIRS -f $NFILES -d $DEPTH -r $POPULATED_DIR -s $SIZE >>$seqres.full 2>&1
 
 # Then tar up the directory structure
-tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$here/$seqres.full 2>&1
+tar -cvf $TEMP_DIR/$TAR_FILE $POPULATED_DIR >>$seqres.full 2>&1
 
 # create f/s
 _require_scratch
@@ -75,12 +75,12 @@ _setup_testdir
 
 # untar on f/s
 cd $testdir
-tar -xRvf $TEMP_DIR/$TAR_FILE >>$here/$seqres.full 2>&1
+tar -xRvf $TEMP_DIR/$TAR_FILE >>$seqres.full 2>&1
 cd $here
 
 
 # use diff -qr to compare
-ls -R -l ${testdir}${POPULATED_DIR} >>$here/$seqres.full 2>&1
+ls -R -l ${testdir}${POPULATED_DIR} >>$seqres.full 2>&1
 diff -qr $POPULATED_DIR ${testdir}${POPULATED_DIR}
 
 cd /
index e8852ab1e4085515ec0ff3eaf0b7bec72c2c7bba..3fe9aa006f23ad0c786e46ff0fba54f9c5889153 100755 (executable)
@@ -81,7 +81,7 @@ _do_test()
     if ! $here/ltp/fsx $_param -P $here $seq.$_n &>/dev/null
     then
        echo "    fsx ($_param) returned $? - see $seq.$_n.full"
-       mv $seq.$_n.fsxlog $here/$seq.$_n.full
+       mv $seq.$_n.fsxlog $seqres.$_n.full
        status=1
        exit
     fi
@@ -142,7 +142,7 @@ echo "Params: n = $numops1 N = $numops2 l = $filelen" >>$seqres.full
 
 _setup_testdir
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 echo "brevity is wit..."
 
 _check_test_fs
index 3247ebd18baf4e12e928cb910e686b337f53683c..7bc5516da5b6b9db282bdcbf5b177de918ace3ae 100755 (executable)
@@ -69,7 +69,7 @@ time2=`_access_time $testfile | tee -a $seqres.full`
 cd /
 umount $TEST_DIR
 _test_mount
-time3=`_access_time $testfile | tee -a $here/$seqres.full`
+time3=`_access_time $testfile | tee -a $seqres.full`
 
 delta1=`expr $time2 - $time1`
 delta2=`expr $time3 - $time1`
index ca363769e09ed518a3c098b2402aefe288ad90dc..b309024c6dc3aacd938668aa6e1ff77ce142580b 100755 (executable)
@@ -41,7 +41,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
 
 _filter_num()
 {
-       tee -a $here/$seqres.full |\
+       tee -a $seqres.full |\
        sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
            -e 's/[0-9][0-9]* paths/P paths/g' \
            -e 's/seed = [0-9][0-9]*/seed = S/'
@@ -57,11 +57,11 @@ _fsstress()
        count=2000
        args=`_scale_fsstress_args -d $out -n $count -p 7`
 
-       echo "fsstress $args" >> tee -a $here/$seqres.full
-       if ! $FSSTRESS_PROG $args | tee -a $here/$seqres.full | _filter_num
+       echo "fsstress $args" >> tee -a $seqres.full
+       if ! $FSSTRESS_PROG $args | tee -a $seqres.full | _filter_num
        then
                echo "    fsstress $args returned $?"
-               cat $tmp.out | tee -a $here/$seqres.full
+               cat $tmp.out | tee -a $seqres.full
                status=1
        fi
 }
index 21748a6694d59482432c46f9307973b2e8a51abc..579134aac252b12c36c92222c822114284784c2c 100755 (executable)
@@ -45,7 +45,7 @@ FSX_ARGS="-q -l $FSX_FILE_SIZE -o 65536 -S 191110531 -N 100000"
 
 _filter_num()
 {
-       tee -a $here/$seqres.full |\
+       tee -a $seqres.full |\
        sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
            -e 's/[0-9][0-9]* paths/P paths/g' \
            -e 's/seed = [0-9][0-9]*/seed = S/'
@@ -64,11 +64,11 @@ _fsstress()
 -f rename=10 -f fsync=2 -f write=15 -f dwrite=15 \
 -n $count -d $out -p 7`
 
-       echo "fsstress $args" >> tee -a $here/$seqres.full
-       if ! su $qa_user -c "$FSSTRESS_PROG $args" | tee -a $here/$seqres.full | _filter_num
+       echo "fsstress $args" >> tee -a $seqres.full
+       if ! su $qa_user -c "$FSSTRESS_PROG $args" | tee -a $seqres.full | _filter_num
        then
                echo "    fsstress $args returned $?"
-               cat $tmp.out | tee -a $here/$seqres.full
+               cat $tmp.out | tee -a $seqres.full
                status=1
        fi
 }
index 47f5b2a763fa469edc589371b60e4106daa5edc8..b221dadd7a9658d61a856b1f70358cc281f7bd62 100755 (executable)
@@ -47,7 +47,7 @@ _workout()
        enospc_time=2
        out=$SCRATCH_MNT/fsstress.$$
        args=`_scale_fsstress_args -p128 -n999999999 -f setattr=1 $FSSTRESS_AVOID -d $out`
-       echo "fsstress $args" >> $here/$seqres.full
+       echo "fsstress $args" >> $seqres.full
        $FSSTRESS_PROG $args > /dev/null 2>&1 &
        pid=$!
        echo "Run dd writers in parallel"
@@ -55,7 +55,7 @@ _workout()
        do
                # File will be opened with O_TRUNC each time
                dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M \
-                       >> $here/$seqres.full 2>&1
+                       >> $seqres.full 2>&1
                sleep $enospc_time
        done
        kill $pid
index d7d9e309919017135fa9907d519e3d9a31e30da8..c5bc12a948369292b8a3ef128afe2c66ddcc8b89 100755 (executable)
@@ -50,7 +50,7 @@ _workout()
        enospc_time=2
        out=$SCRATCH_MNT/fsstress.$$
        args=`_scale_fsstress_args -p128 -n999999999 -f setattr=1 $FSSTRESS_AVOID -d $out`
-       echo "fsstress $args" >> $here/$seqres.full
+       echo "fsstress $args" >> $seqres.full
        # Grant chown capability 
        cp $FSSTRESS_PROG  $tmp.fsstress.bin
        if [ "`whereis setcap`" == "setcap:" ]; then
@@ -67,7 +67,7 @@ _workout()
                # File will be opened with O_TRUNC each time
                su $qa_user -c "dd if=/dev/zero \
                        of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M " \
-                       >> $here/$seqres.full 2>&1
+                       >> $seqres.full 2>&1
                sleep $enospc_time
        done
 
index 3beb8a527866b8eb04ec1f331528aaa5cb104dfc..eb33af4f70cc4bcd248760f38d9ab9302b4b776a 100644 (file)
@@ -64,7 +64,7 @@ disallow_fail_make_request()
 start_fail_scratch_dev()
 {
     echo "Force SCRATCH_DEV device failure"
-    echo " echo 1 > /sys/block/$SCRATCH_BDEV/make-it-fail" >> $here/$seqres.full
+    echo " echo 1 > /sys/block/$SCRATCH_BDEV/make-it-fail" >> $seqres.full
     echo 1 > /sys/block/$SCRATCH_BDEV/make-it-fail
 
 }
@@ -72,7 +72,7 @@ start_fail_scratch_dev()
 stop_fail_scratch_dev()
 {
     echo "Make SCRATCH_DEV device operable again"
-    echo " echo 0 > /sys/block/$SCRATCH_BDEV/make-it-fail" >> $here/$seqres.full
+    echo " echo 0 > /sys/block/$SCRATCH_BDEV/make-it-fail" >> $seqres.full
     echo 0 > /sys/block/$SCRATCH_BDEV/make-it-fail
 
 }
@@ -141,12 +141,12 @@ _workout()
        echo ""
        echo "Start fsstress.."
        echo ""
-       echo "fsstress $args" >> $here/$seqres.full
+       echo "fsstress $args" >> $seqres.full
        $FSSTRESS_PROG $args > /dev/null 2>&1 &
        fs_pid=$!
        echo "Start fio.."
        cat $tmp-$seq.fio >>  $seqres.full
-       $FIO_PROG $tmp-$seq.fio >> $here/$seqres.full 2>&1 &
+       $FIO_PROG $tmp-$seq.fio >> $seqres.full 2>&1 &
        fio_pid=$!
 
        # Let's it work for awhile, and force device failure
@@ -156,7 +156,7 @@ _workout()
        # that so buffered write(2) may succeed, but any integrity operations
        # such as (sync, fsync, fdatasync, direct-io) should fail.
        dd if=/dev/zero of=$SCRATCH_MNT/touch_failed_filesystem count=1 bs=4k conv=fsync \
-           >> $here/$seqres.full 2>&1 && \
+           >> $seqres.full 2>&1 && \
            _fail "failed: still able to perform integrity fsync on $SCRATCH_MNT"
 
        kill $fs_pid
@@ -178,7 +178,7 @@ _workout()
 
 # real QA test starts here
 
-_scratch_mkfs >> $here/$seqres.full 2>&1 || _fail "mkfs failed"
+_scratch_mkfs >> $seqres.full 2>&1 || _fail "mkfs failed"
 _scratch_mount || _fail "mount failed"
 allow_fail_make_request
 _workout
index a7733260bbed43e3bf0945a76e754ec913f82bee..f1e23af808036dac23d0a53b5543747668527fa4 100755 (executable)
@@ -75,14 +75,14 @@ _do_test()
        fi
     else
         echo "    randholes returned $? - see $seq.out.full"
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        echo "$_n - output from randholes:"                 >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        cat $tmp.out                                        >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        echo "$_n - output from bmap:"                      >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        xfs_bmap -vvv $out                                  >>$here/$seq.out.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from randholes:"                 >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        cat $tmp.out                                        >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from bmap:"                      >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        xfs_bmap -vvv $out                                  >>$seqres.full
         status=1
     fi
 }
@@ -93,7 +93,7 @@ _supported_os IRIX Linux
 
 _setup_testdir
 
-rm -f $here/$seq.out.full
+rm -f $seqres.full
 
 # Note on special numbers here.
 #
index 3d5c346278e51f820a185f35bed9ddc99b69d93f..5e1cc7a09bab946e9d3d464aed3f764e019ff688 100755 (executable)
@@ -64,7 +64,7 @@ _do_test()
     echo "-----------------------------------------------"
     if  ! $here/src/holes $_param $out >$tmp.out
     then
-        echo "    holes returned $? - see $seq.out.full"
+        echo "    holes returned $? - see $seqres.full"
         failed=1
         status=1
     fi
@@ -80,7 +80,7 @@ _do_test()
         
         if [ $count -ne $_count ]
         then
-            echo "    unexpected number of holes - see $seq.out.full"
+            echo "    unexpected number of holes - see $seqres.full"
             status=1
             failed=1
         fi
@@ -88,18 +88,18 @@ _do_test()
         
     if [ $failed -eq 1 ]
     then
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        echo "$_n - output from holes:"                     >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        cat $tmp.out                                        >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        echo "$_n - output from bmap:"                      >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        xfs_bmap -vvv $out                                  >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        echo "$_n - output from ls -li:"                    >>$here/$seq.out.full
-        echo "--------------------------------------"       >>$here/$seq.out.full
-        ls -li $out                                         >>$here/$seq.out.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from holes:"                     >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        cat $tmp.out                                        >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from bmap:"                      >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        xfs_bmap -vvv $out                                  >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        echo "$_n - output from ls -li:"                    >>$seqres.full
+        echo "--------------------------------------"       >>$seqres.full
+        ls -li $out                                         >>$seqres.full
         status=1
     fi
 }
@@ -110,7 +110,7 @@ _supported_os IRIX Linux
 
 _setup_testdir
 
-rm -f $here/$seq.out.full
+rm -f $seqres.full
 
 # small & fairly dense
 _do_test 1 "-l 40960000 -b 40960 -i 10 -c 1" 100
index a354916167f5c95d07ca65bbe78d2e1a0fe3fa79..823342a32051e6355bce59ecd5832e9cd62f68f9 100755 (executable)
@@ -45,11 +45,11 @@ _require_tape $TAPE_DEV
 _create_dumpdir_fill
 # ensure file/dir timestamps precede dump timestamp
 sleep 2
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 _erase_hard
 _do_dump
 _append_dumpdir_fill
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 _erase_hard
 _do_dump -l 1
 _do_restore
index 9c306f2e6404d4c45e9b291081b4db5d25f74a1f..f4f5d8cd1cb3c6a302c851889860137e1dd879b7 100755 (executable)
@@ -52,11 +52,11 @@ isize=0
 _scratch_mkfs_xfs | _filter_mkfs >$seqres.full 2>$tmp.mkfs
 [ $? -eq 0 ] && source $tmp.mkfs
 if [ "$isize" -lt 1024 ]; then
-    _scratch_mkfs_xfs -i size=1024 >>$here/$seqres.full \
+    _scratch_mkfs_xfs -i size=1024 >>$seqres.full \
        || _notrun "Cannot mkfs for this test using MKFS_OPTIONS specified"
 fi
-_scratch_mount >>$here/$seqres.full || _fail "mount failed"
-xfs_info $SCRATCH_MNT >>$here/$seqres.full
+_scratch_mount >>$seqres.full || _fail "mount failed"
+xfs_info $SCRATCH_MNT >>$seqres.full
 cd $SCRATCH_MNT
 
 echo ""
index 91bdd4d0a492c514a5c6bb36c5fea0bbc324afa2..411aab6e0aa12732d80d571d344e73b469415a58 100755 (executable)
@@ -82,8 +82,8 @@ _test_create()
        p=dir2/dir3/dir4/file4
        touch $p
 
-       #_print_names $p >>$here/$seqres.full
-       _print_names $p | tee -a $here/$seqres.full
+       #_print_names $p >>$seqres.full
+       _print_names $p | tee -a $seqres.full
 
        _check_paths $SCRATCH_MNT/$p
 }
@@ -133,13 +133,13 @@ _test_hardlink()
                ln $p $x
        done
 
-       _print_names $p >>$here/$seqres.full
+       _print_names $p >>$seqres.full
 
        echo ""
        echo "print out names and check after created hardlinks"
        echo ""
        for x in $paths; do
-               _print_names $x | tee -a $here/$seqres.full
+               _print_names $x | tee -a $seqres.full
                _check_paths $SCRATCH_MNT/$x
        done
 
@@ -163,7 +163,7 @@ _test_hardlink()
        echo ""
        for x in $paths; do
                if [ -e $x ]; then 
-                       _print_names $x | tee -a $here/$seqres.full
+                       _print_names $x | tee -a $seqres.full
                        _check_paths $SCRATCH_MNT/$x
                fi
        done
@@ -232,7 +232,7 @@ _test_rename()
 
 _filter_num()
 {
-       tee -a $here/$seqres.full |\
+       tee -a $seqres.full |\
        sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
            -e 's/[0-9][0-9]* paths/P paths/g' \
            -e 's/seed = [0-9][0-9]*/seed = S/'
@@ -257,7 +257,7 @@ _test_fsstress()
        if ! $FSSTRESS_PROG $args | _filter_num
        then
                echo "    fsstress $args returned $?"
-               cat $tmp.out | tee -a $here/$seqres.full
+               cat $tmp.out | tee -a $seqres.full
                status=1
        fi
 
@@ -286,8 +286,8 @@ _test_dirstress()
        if ! $here/src/dirstress $args >$tmp.out 2>&1 | _filter_num
        then
                echo "    dirstress failed"
-               echo "*** dirstress $args" | tee -a $here/$seqres.full
-               cat $tmp.out >>$here/$seqres.full
+               echo "*** dirstress $args" | tee -a $seqres.full
+               cat $tmp.out >>$seqres.full
                status=1
                exit
        fi
@@ -297,8 +297,8 @@ _test_dirstress()
        if ! $here/src/dirstress $args >$tmp.out 2>&1 | _filter_num
        then
                echo "    dirstress failed"
-               echo "*** dirstress $args" | tee -a $here/$seqres.full
-               cat $tmp.out >>$here/$seqres.full
+               echo "*** dirstress $args" | tee -a $seqres.full
+               cat $tmp.out >>$seqres.full
                status=1
                exit
        fi
@@ -318,16 +318,16 @@ _require_scratch
 _require_attrs
 _need_to_be_root
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 
 echo "mkfs"
-_scratch_mkfs_xfs >>$here/$seqres.full 2>&1 \
+_scratch_mkfs_xfs >>$seqres.full 2>&1 \
     || _fail "mkfs scratch failed"
-_scratch_mkfs_xfs -i parent=1 >>$here/$seqres.full 2>&1 \
+_scratch_mkfs_xfs -i parent=1 >>$seqres.full 2>&1 \
     || _notrun "parent inodes not supported"
 
 echo "mount"
-_scratch_mount >>$here/$seqres.full 2>&1 \
+_scratch_mount >>$seqres.full 2>&1 \
     || _fail "mount failed: $MOUNT_OPTIONS"
 
 # real QA test starts here
index 8d25f74fde4fb303ef0a908e736e65b80bb4fc54..b2c8c0edbb755d52d6cc769dae14c642a1bd3a6c 100755 (executable)
@@ -104,16 +104,16 @@ _supported_os IRIX
 _require_scratch
 _require_attrs
 
-rm -f $here/$seqres.full
+rm -f $seqres.full
 
 echo "mkfs"
-_scratch_mkfs_xfs >>$here/$seqres.full 2>&1 \
+_scratch_mkfs_xfs >>$seqres.full 2>&1 \
     || _fail "mkfs scratch failed"
-_scratch_mkfs_xfs -i paths=1 >>$here/$seqres.full 2>&1 \
+_scratch_mkfs_xfs -i paths=1 >>$seqres.full 2>&1 \
     || _notrun "i_paths not supported"
 
 echo "mount"
-_scratch_mount >>$here/$seqres.full 2>&1 \
+_scratch_mount >>$seqres.full 2>&1 \
     || _fail "mount failed: $MOUNT_OPTIONS"
 
 # real QA test starts here
index ca8d88df41de37854c842586aabc740d6c056349..b0d06d68dd74b45f7ac29d3fe21dd86e5a3c295b 100755 (executable)
@@ -109,7 +109,7 @@ wait
 # dmapi destroy events are asyncronous,  don't rely on fixed ordering of events
 # in print_event output, use sort.
 echo "# here comes the dmapi print_event filtered and sorted output"
-cat $tmp.print_event_out | tee -a $here/$seqres.full | _filter_dmapi_print_event | LC_COLLATE=POSIX sort
+cat $tmp.print_event_out | tee -a $seqres.full | _filter_dmapi_print_event | LC_COLLATE=POSIX sort
 rm $tmp.print_event_out
 
 status=0
index e36015909d3e9fbd340572b32b9ecbb22a4cb0b3..0685935eab98b77fab150d617d93c44a461e892f 100755 (executable)
@@ -80,7 +80,7 @@ _rmv_eas()
 
 _filter_inode()
 {
-       tee -a $here/$seqres.full | \
+       tee -a $seqres.full | \
                sed -e "s/core.forkoff/forkoff/g" | \
                egrep '^u.sfdir2|^a.sfattr|forkoff' | \
                egrep -v 'inumber|parent'
@@ -88,7 +88,7 @@ _filter_inode()
 
 _filter_version()
 {
-       tee -a $here/$seqres.full | tr ',' '\n' | grep ATTR
+       tee -a $seqres.full | tr ',' '\n' | grep ATTR
 }
 
 _print_inode()
index 2b9f124fcc89a19c61a755a80708091660e1b02a..87cb8a63d40c4efdfe5e912e8184b914001d4d19 100755 (executable)
@@ -48,13 +48,13 @@ _require_legacy_v2_format
 _create_dumpdir_fill
 # ensure file/dir timestamps precede dump timestamp
 sleep 2
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 
 echo "*** Level 0 dump, format 2"
 _do_dump_file -f $tmp.l0 -K
 
 _append_dumpdir_fill
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 
 echo "*** Level 1 dump, current format"
 _do_dump_file -l 1 -f $tmp.l1
index bdc4a5cf406bfe86ffa0dee3a8d1c784468346e6..ce0e2d41585c08e8e19d7114cc392eb4c5fd4c63 100755 (executable)
@@ -48,13 +48,13 @@ _require_legacy_v2_format
 _create_dumpdir_fill
 # ensure file/dir timestamps precede dump timestamp
 sleep 2
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 
 echo "*** Level 0 dump, current format"
 _do_dump_file -f $tmp.l0
 
 _append_dumpdir_fill
-src/bstat $SCRATCH_MNT >>$here/$seqres.full
+src/bstat $SCRATCH_MNT >>$seqres.full
 
 echo "*** Level 1 dump, format 2"
 _do_dump_file -l 1 -f $tmp.l1 -K