lyx_mirror/development/autotests/export-in.sh
Tommaso Cucinotta bf5f1eb3e8 Added the possibility to build arbitrary scripts (*-in.sh) as tests. They are all launched
together with the others when typing 'make', and also they can be selectively
launched by using: ./run-tests.sh filename-in.sh.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39241 a592a061-630c-0410-9148-cb99ea01b6c8
2011-07-03 17:00:18 +00:00

22 lines
439 B
Bash
Executable File

#!/bin/bash
failed=0
for format in xhtml lyx16x; do
for f in $LYX_ROOT/lib/doc/*lyx; do
if $LYX_EXE -e $format $f >> lyx-log.txt 2>&1; then
echo $format $f TEST_GOOD
else
echo $format $f TEST_BAD
failed=$[$failed+1];
fi;
done;
done
if [ $failed -eq 0 ]; then
echo "All formats SUCCESSFUL"
exit 0;
else
echo "There were $failed FAILED format tests"
exit -1;
fi