mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-30 15:41:12 +00:00
9f4927e855
Now all export tests can be run with: ctest -R "export" Only export tests for manuals can be run with: ctest -R "export/doc" And only export tests for examples can be run with: ctest -R "export/examples"
24 lines
533 B
Bash
Executable File
24 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
|
|
failed=0
|
|
for libsubdir in doc examples; do
|
|
for format in xhtml lyx16x; do
|
|
for f in $LYX_ROOT/lib/$libsubdir/*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;
|
|
done
|
|
|
|
if [ $failed -eq 0 ]; then
|
|
echo "All formats SUCCESSFUL"
|
|
exit 0;
|
|
else
|
|
echo "There were $failed FAILED format tests"
|
|
exit -1;
|
|
fi
|