2011-03-02 23:54:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-08-23 02:44:40 +00:00
|
|
|
if [ ! -f /usr/lib/ltp/testcases/bin/fsstress ]
|
|
|
|
then
|
2013-10-08 18:58:57 +00:00
|
|
|
path=`pwd`
|
2013-08-23 02:44:40 +00:00
|
|
|
mkdir -p /tmp/fsstress
|
|
|
|
cd /tmp/fsstress
|
|
|
|
wget -q -O /tmp/fsstress/ltp-full.tgz http://ceph.com/qa/ltp-full-20091231.tgz
|
|
|
|
tar xzf /tmp/fsstress/ltp-full.tgz
|
|
|
|
rm /tmp/fsstress/ltp-full.tgz
|
|
|
|
cd /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress
|
|
|
|
make
|
|
|
|
sudo mkdir -p /usr/lib/ltp/testcases/bin
|
|
|
|
sudo cp -avf /tmp/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress /usr/lib/ltp/testcases/bin/fsstress
|
|
|
|
sudo chmod 755 /usr/lib/ltp/testcases/bin/fsstress
|
|
|
|
rm -Rf /tmp/fsstress
|
2013-10-08 18:58:57 +00:00
|
|
|
cd $path
|
2013-08-23 02:44:40 +00:00
|
|
|
fi
|
|
|
|
|
2011-08-10 21:01:06 +00:00
|
|
|
command="/usr/lib/ltp/testcases/bin/fsstress -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
|