ceph/qa/workunits/suites/fsstress.sh
Alan Somers 3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00

21 lines
606 B
Bash
Executable File

#!/usr/bin/env bash
BIN_PATH=${TESTDIR}/fsstress/ltp-full-20091231/testcases/kernel/fs/fsstress/fsstress
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"
echo "Starting fsstress $command"
mkdir fsstress`hostname`-$$
$command