libreoffice-online/loolwsd/test/run_unit.sh

26 lines
886 B
Bash
Raw Normal View History

#!/bin/sh
export LOOL_LOGLEVEL=trace
mkdir -p test_output
# result logging
echo > run_unit.sh.trs
for tst in timeout storage prefork; do
tst_log="test_output/$tst.log"
2016-04-07 14:15:18 -05:00
echo "Running test: $tst | $tst_log ...";
if ../loolwsd --systemplate=${systemplate} --lotemplate="${LO_PATH}" --childroot="${jails}" --unitlib=".libs/unit-$tst.so" 2> "$tst_log"; then
echo "Test $tst passed."
echo ":test-result: PASS $tst" >> run_unit.sh.trs
else
cat "$tst_log"
echo "============================================================="
echo "Test failed on unit: $tst re-run with:"
echo " $ gdb --args ../loolwsd --systemplate=${systemplate} --lotemplate=\"${LO_PATH}\" --childroot=\"${jails}\" --unitlib=\".libs/unit-$tst.so\""
echo "============================================================="
echo ":test-result: FAIL $tst" >> run_unit.sh.trs
fi
done