_link_out_file()
{
- if [ -z "$1" ]; then
- echo Error must pass \$seq.
- exit
- fi
- rm -f $1
- if [ "`uname`" == "IRIX64" ] || [ "`uname`" == "IRIX" ]; then
- ln -s $1.irix $1
- elif [ "`uname`" == "Linux" ]; then
- ln -s $1.linux $1
- else
- echo Error test $seq does not run on the operating system: `uname`
- exit
- fi
+ if [ -z "$1" -o -z "$2" ]; then
+ echo Error must pass src and dst.
+ exit
+ fi
+ rm -f $2
+ if [ "`uname`" == "IRIX64" ] || [ "`uname`" == "IRIX" ]; then
+ ln -s $1.irix $2
+ elif [ "`uname`" == "Linux" ]; then
+ ln -s $1.linux $2
+ else
+ echo Error test $seq does not run on the operating system: `uname`
+ exit
+ fi
}
_die()
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
}
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs generic
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
# link correct .out file
# This is done bacause udf and xfs print attrs in different orders.
-rm -rf $seq.out
+rm -rf $seqfull.out
if [ "$FSTYP" == "xfs" ]; then
- ln -s $seq.out.xfs $seq.out
+ ln -s $seq.out.xfs $seqfull.out
else
- ln -s $seq.out.udf $seq.out
+ ln -s $seq.out.udf $seqfull.out
fi
# real QA test starts here
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
_require_v2log
# link correct .out file
-_link_out_file $seq.op
+_link_out_file $seq.op $seqfull.op
echo "*** init FS"
_check_log
_print_operation
- _cmp_op_output $seq.op $filtered
+ _cmp_op_output $seqfull.op $filtered
_print_transaction_inode $start_blk
- _cmp_output $seq.trans_inode $filtered
+ _cmp_output $seqfull.trans_inode $filtered
_print_transaction_buf $start_blk
- _cmp_output $seq.trans_buf $filtered
+ _cmp_output $seqfull.trans_buf $filtered
done
# got thru it all so we may have success
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.repair
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# nuke the superblock, AGI, AGF, AGFL; then try repair the damage
#
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.filter
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
_check_repair()
{
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.repair
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# nuke the root, rt bitmap, and rt summary inodes
#
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
. ./common.dump
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
# real QA test starts here
_supported_fs xfs
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
bitsperlong=`src/feature -w`
# link correct .out file
-rm -f $seq.out
+rm -f $seqfull.out
if [ "$bitsperlong" -eq 32 ]; then
- ln -s $seq.out.32 $seq.out
+ ln -s $seq.out.32 $seqfull.out
else
- ln -s $seq.out.64 $seq.out
+ ln -s $seq.out.64 $seqfull.out
fi
_filter_io()
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
_require_v2log
# link correct .out file
-_link_out_file $seq.op
+_link_out_file $seq.op $seqfull.op
echo "*** init FS"
umount $SCRATCH_DEV >/dev/null 2>&1
:
else
_print_operation
- _cmp_op_output $seq.op $filtered
+ _cmp_op_output $seqfull.op $filtered
fi
_print_transaction_inode $start
- _cmp_output $seq.trans_inode $filtered
+ _cmp_output $seqfull.trans_inode $filtered
_print_transaction_buf $start
- _cmp_output $seq.trans_buf $filtered
+ _cmp_output $seqfull.trans_buf $filtered
done
done
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
_require_v2log
# choose .out file based on internal/external log
-rm -f $seq.out
+rm -f $seqfull.out
if [ "$USE_EXTERNAL" = yes ]; then
- ln -s $seq.external $seq.out
+ ln -s $seq.external $seqfull.out
else
- ln -s $seq.internal $seq.out
+ ln -s $seq.internal $seqfull.out
fi
# maximum log record size
#-----------------------------------------------------------------------
#
+seqfull=$0
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
_supported_os Linux IRIX
# link correct .out file
-_link_out_file $seq.out
+_link_out_file $seq.out $seqfull.out
_require_scratch
_scratch_mkfs_xfs >/dev/null 2>&1