]> git.lyx.org Git - lyx.git/blob - development/autotests/export-in.sh
Autotools: optimize with -Og when debugging
[lyx.git] / development / autotests / export-in.sh
1 #!/bin/bash
2
3 failed=0
4 for libsubdir in doc examples templates; do
5     for format in xhtml lyx16x; do
6         for f in $LYX_ROOT/lib/$libsubdir/*lyx; do
7             if $LYX_EXE -e $format $f >> lyx-log.txt 2>&1; then
8                 echo $format $f TEST_GOOD
9             else
10                 echo $format $f TEST_BAD
11                 failed=$[$failed+1];
12             fi;
13         done;
14     done;
15 done
16
17 if [ $failed -eq 0 ]; then
18     echo "All formats SUCCESSFUL"
19     exit 0;
20 else
21     echo "There were $failed FAILED format tests"
22     exit -1;
23 fi