summaryrefslogtreecommitdiff
path: root/tests/tools/test-glib-gtypes-generator.sh
blob: 0230cd1a2e9509173583fe8c657e124cab9154c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

${PYTHON} ${top_srcdir}/tools/glib-gtypes-generator.py \
    ${top_srcdir}/tests/tools/glib-gtypes-generator.xml \
    actual The_Prefix

e=0
# We assume POSIX diff, until someone complains
diff -b -c ${srcdir}/expected-gtypes.h actual.h || e=$?
diff -b -c ${srcdir}/expected-gtypes-gtk-doc.h actual-gtk-doc.h || e=$?
diff -b -c ${srcdir}/expected-gtypes-body.h actual-body.h || e=$?

exit $e