mirror of
https://github.com/ceph/ceph
synced 2024-12-21 10:54:42 +00:00
858059ed01
This test required root in order to copy its built binary into /usr (presumably to avoid rebuilding it). That's not really a good thing anyway because there's no guarantee that a binary in that path is the binary we wanted, so just run the thing straight out of /tmp. The build is really quick anyway. Signed-off-by: John Spray <john.spray@redhat.com> Reviewed-by: Greg Farnum <gfarnum@redhat.com>
21 lines
598 B
Bash
Executable File
21 lines
598 B
Bash
Executable File
#!/bin/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
|