# link correct .out file
_link_out_file $seq.out
-# put operating system in $os
-_get_os
-
[ -x $here/src/dbtest ] || _notrun "dbtest was not built for this platform"
# real QA test starts here
cd $testdir
-if [ $os == 'irix' ]; then
- $here/src/dbtest -l 5 -n 500 2>&1 | tee -a $here/$seq.full | _filter_dbtest
-elif [ $os == 'linux' ]; then
- $here/src/dbtest -l 5 -n 3000 2>&1 | tee -a $here/$seq.full | _filter_dbtest
-fi
+$here/src/dbtest -l 5 -n 3000 2>&1 | tee -a $here/$seq.full | _filter_dbtest
# success, all done
exit
. ./common.rc
. ./common.filter
-# put operating system in $os
-_get_os
-
_do_test()
{
_n="$1"
rm -f $here/$seq.full
echo "brevity is wit..."
-if [ $os == 'irix' ]; then
- count=1024
-elif [ $os == 'linux' ]; then
- count=2000
-else
- echo Error test $seq does not run on the operating system: `uname`
- exit
-fi
+count=2000
procs=20
_check_test_fs
. ./common.rc
. ./common.filter
-_get_os
-
_cleanup()
{
cd /
_supported_fs xfs udf nfs
_supported_os Linux
-
_require_scratch
rm -f $tmp.backup1 $tmp.backup2 $seq.full
. ./common.rc
. ./common.filter
-# put operating system in $os
-_get_os
-
# real QA test starts here
_supported_fs xfs
_supported_os IRIX Linux
rm -f $seq.full
rm -f $tmp.log
-
-if [ $os == 'irix' ]; then
- tail -f /var/adm/SYSLOG >$tmp.log &
-elif [ $os == 'linux' ]; then
- tail -f /var/log/messages >$tmp.log &
-else
- echo Error test $seq does not run on the operating system: `uname`
- exit
-fi
-
-pid=$!
-cp $tmp.log $tmp.log.orig # note the original log
-
_require_scratch
echo "mkfs"
[ -f check.time ] || touch check.time
-_get_os
-if [ $os == "linux" ]; then
-
FULL_FSTYP_DETAILS=`_full_fstyp_details`
FULL_HOST_DETAILS=`_full_platform_details`
FULL_MKFS_OPTIONS=`_scratch_mkfs_options`
MOUNT_OPTIONS -- $FULL_MOUNT_OPTIONS
EOF
-fi
-
-#Linux specific flag '-f'
-if [ $os == "linux" ]; then
- flag='-f'
-fi
umount $SCRATCH_DEV 2>/dev/null
# call the overridden mkfs.xfs - make sure the FS is built
export CHECK_OPTIONS=${CHECK_OPTIONS:="-g auto"}
export BENCH_PASSES=${BENCH_PASSES:=5}
export XFS_MKFS_OPTIONS=${XFS_MKFS_OPTIONS:=-bsize=4096}
-[ "$HOSTOS" == "Linux" ] && export XFS_MOUNT_OPTIONS=${XFS_MOUNT_OPTIONS:=-ologbufs=2}
-export UDF_MKFS_OPTIONS=${UDF_MKFS_OPTIONS}
-export UDF_MOUNT_OPTIONS=${UDF_MOUNT_OPTIONS}
-export NFS_MKFS_OPTIONS=${NFS_MKFS_OPTIONS}
-export NFS_MOUNT_OPTIONS=${NFS_MOUNT_OPTIONS}
#export DEBUG=${DEBUG:=...} # arbitrary CFLAGS really.
export MALLOCLIB=${MALLOCLIB:=/usr/lib/libefence.a}
case $type in
mkfs)
+ [ "$HOSTOS" != "IRIX" ] && SCRATCH_OPTIONS="$SCRATCH_OPTIONS -f"
rt_opt="-r"
log_opt="-l"
;;
return
fi
- case $type
- in
+ case $type in
mkfs)
rt_opt="-r"
log_opt="-l"
}
_scratch_mkfs_xfs()
-{
+{
_scratch_options mkfs
- [ "$HOSTOS" != "IRIX" ] && \
- SCRATCH_OPTIONS="$SCRATCH_OPTIONS -f"
$MKFS_XFS_PROG $SCRATCH_OPTIONS $MKFS_OPTIONS $* $SCRATCH_DEV
mkfs_status=$?
_check_scratch_fs()
{
-
-
case $FSTYP in
xfs)
SCRATCH_LOG=""
_check_testdir()
{
-
-
case $FSTYP in
xfs)
_check_test_fs
_setup_testdir()
{
-
-
case $FSTYP in
xfs)
_setup_xfs_testdir
_cleanup_testdir()
{
-
-
case $FSTYP in
xfs)
# do nothing, testdir is $TEST_DIR
fi
}
-_get_os()
-{
-
- if [ "`uname`" == "IRIX64" ] || [ "`uname`" == "IRIX" ]; then
- os=irix
- elif [ "`uname`" == "Linux" ]; then
- os=linux
- else
- echo Error test does not run on the operating system: `uname`
- exit
- fi
-}
-
# make sure this script returns success
/bin/true