Files
apfstests/tests/generic/010
T

53 lines
950 B
Bash
Raw Normal View History

#! /bin/bash
2018-06-09 11:35:42 +10:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
#
# FS QA Test No. 010
#
# dbtest
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
tmp=/tmp/$$
status=0 # success is the default!
2004-06-15 07:32:36 +00:00
trap "_cleanup; exit \$status" 0 1 2 3 15
_cleanup()
{
2004-06-15 07:32:36 +00:00
cd /
rm -f $tmp.*
2013-12-03 10:29:26 +11:00
rm -f $TEST_DIR/DBtest*.{pag,dir}
}
# filter random number output from dbtest
#
_filter_dbtest()
{
sed \
-e '/were [0-9][0-9]* duplicate/s//were BLEEP duplicate/' \
-e '/using [0-9][0-9]* as seed/s//using BLEEP as seed/'
}
# get standard environment, filters and checks
2013-03-15 12:28:04 +00:00
. ./common/rc
. ./common/filter
_require_test_program "dbtest"
# real QA test starts here
2009-05-28 11:37:38 -05:00
_supported_fs generic
_supported_os Linux
_require_test
2004-06-15 07:32:36 +00:00
rm -f $seqres.full
2004-06-15 07:32:36 +00:00
2013-12-03 10:29:26 +11:00
cd $TEST_DIR
2004-06-15 07:32:36 +00:00
$here/src/dbtest -l 5 -n 1000 2>&1 | tee -a $seqres.full | _filter_dbtest
# success, all done
exit