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