28 lines
469 B
Bash
28 lines
469 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# run's all the available tests
|
||
|
|
||
|
for test in */; do
|
||
|
if [ ! -x "${test}/run.sh" ]; then
|
||
|
continue
|
||
|
fi
|
||
|
|
||
|
testName="${test%/}"
|
||
|
|
||
|
LOGFILE=/tmp/sanoid_test_run_"${testName}".log
|
||
|
|
||
|
pushd . > /dev/null
|
||
|
|
||
|
echo -n "Running test ${testName} ... "
|
||
|
cd "${test}"
|
||
|
echo | bash run.sh > "${LOGFILE}" 2>&1
|
||
|
|
||
|
if [ $? -eq 0 ]; then
|
||
|
echo "[PASS]"
|
||
|
else
|
||
|
echo "[FAILED] (see ${LOGFILE})"
|
||
|
fi
|
||
|
|
||
|
popd > /dev/null
|
||
|
done
|