summaryrefslogtreecommitdiff
path: root/qa/workunits/suites/fsstress.sh
blob: 7f945172687021a74fb7eddb590d19e26ac90be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

if [ ! -f /usr/lib/ltp/testcases/bin/fsstress ]
then
    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
fi

command="/usr/lib/ltp/testcases/bin/fsstress -d fsstress-`hostname`$$ -l 1 -n 1000 -p 10 -v"

echo "Starting fsstress $command"
mkdir fsstress`hostname`-$$
$command