mkhtml2: tolerate wonky glossterms
[gtk-doc.git] / tests / tools.sh.in
blob343844a5aafa6dd56a019bcd3472281424d2d739
1 #!/bin/sh
3 suite="tools"
5 failed=0
6 tested=0
8 echo "Running suite(s): gtk-doc-$suite";
10 # we use 'which' here as we override the path in TEST_ENVIRONMENT
13 # test shell scripts
14 for file in gtkdocize; do
15 sh -n `which $file`
16 if test $? != 0 ; then failed=`expr $failed + 1`; fi
17 tested=`expr $tested + 1`
18 done
21 # test xsl files
22 for file in $ABS_TOP_SRCDIR/*.xsl; do
23 xmllint --noout --noent $file
24 if test $? != 0 ; then failed=`expr $failed + 1`; fi
25 tested=`expr $tested + 1`
26 done
29 # test python scripts
30 # TODO: also test the module files
31 for file in gtkdoc-check gtkdoc-depscan gtkdoc-fixxref gtkdoc-mkdb gtkdoc-mkhtml gtkdoc-mkhtml2 gtkdoc-mkman gtkdoc-mkpdf gtkdoc-rebase gtkdoc-scangobj; do
32 fullfile=`which $file`
33 @PYTHON@ -m py_compile $fullfile
34 if test $? != 0 ; then failed=`expr $failed + 1`; fi
35 tested=`expr $tested + 1`
36 done
39 # summary
40 successes=`expr $tested - $failed`
42 rate=`expr 100 \* $successes / $tested`;
43 echo "$rate %: Checks $tested, Failures: $failed"
45 test $failed = 0
46 exit $?