1
0
mirror of https://github.com/ceph/ceph synced 2024-12-22 03:22:00 +00:00
ceph/qa/run-standalone.sh
Kefu Chai 75e361433d qa/run-standalone.sh: fix the find option to be compatible with GNU find
also re-indent to be consistent with other part of this script

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-28 14:22:02 +08:00

26 lines
451 B
Bash
Executable File

#!/bin/sh -ex
if [ ! -e Makefile ]; then
echo 'run this from the build dir'
exit 1
fi
if [ `uname` = FreeBSD ]; then
# otherwise module prettytable will not be found
export PYTHONPATH=/usr/local/lib/python2.7/site-packages
exec_mode=+111
else
exec_mode=/111
fi
for f in `find ../qa/standalone -perm $exec_mode -type f`
do
echo '--- $f ---'
PATH=$PATH:bin \
CEPH_ROOT=.. \
CEPH_LIB=lib \
$f || exit 1
done
exit 0