2017-07-20 22:26:42 +00:00
|
|
|
#!/usr/bin/env bash
|
2011-03-02 23:54:43 +00:00
|
|
|
|
2015-09-23 11:58:46 +00:00
|
|
|
BIN_PATH=${TESTDIR}/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress
|
2013-08-23 02:44:40 +00:00
|
|
|
|
2015-09-23 11:58:46 +00:00
|
|
|
path=`pwd`
|
|
|
|
trap "rm -rf ${TESTDIR}/fsstress" EXIT
|
|
|
|
mkdir -p ${TESTDIR}/fsstress
|
|
|
|
cd ${TESTDIR}/fsstress
|
|
|
|
wget -q -O ${TESTDIR}/fsstress/ltp-full.tgz http://download.ceph.com/qa/ltp-full-20091231.tgz
|
|
|
|
tar xzf ${TESTDIR}/fsstress/ltp-full.tgz
|
|
|
|
rm ${TESTDIR}/fsstress/ltp-full.tgz
|
|
|
|
cd ${TESTDIR}/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress
|
|
|
|
make
|
|
|
|
cd $path
|
|
|
|
|
|
|
|
command="${BIN_PATH} -d fsstress-`hostname`$$ -l 1 -n 1000 -p 10 -v"
|
2011-03-02 23:54:43 +00:00
|
|
|
|
|
|
|
echo "Starting fsstress $command"
|
|
|
|
mkdir fsstress`hostname`-$$
|
|
|
|
$command
|