summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandon Van Ness <sandon@inktank.com>2013-08-22 19:44:40 -0700
committerSandon Van Ness <sandon@inktank.com>2013-08-22 19:52:16 -0700
commit40f43a028e7649d6db2d3a361b7e8b4b3a1d67c7 (patch)
tree1b3a129029c689cb6acdbffbb4f737dd8ae280e5
parent3d55534268de7124d29bd365ea65da8d2f63e501 (diff)
downloadceph-40f43a028e7649d6db2d3a361b7e8b4b3a1d67c7.tar.gz
QA: Compile fsstress if missing on machine.
Some distro's have a lack of ltp-kernel packages and all we need is fstress. This just modified the shell script to download/compile fstress from source and copy it to the right location if it doesn't currently exist where it is expected. It is a very small/quick compile and currently only SLES and debian do not have it already. Reviewed-by: Sage Weil <sage@inktank.com> Signed-off-by: Sandon Van Ness <sandon@inktank.com>
-rwxr-xr-xqa/workunits/suites/fsstress.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/qa/workunits/suites/fsstress.sh b/qa/workunits/suites/fsstress.sh
index d511e375f6f..7f945172687 100755
--- a/qa/workunits/suites/fsstress.sh
+++ b/qa/workunits/suites/fsstress.sh
@@ -1,5 +1,20 @@
#!/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"