summaryrefslogtreecommitdiff
path: root/tests/tools/test-gobject-foo.sh
blob: 6bce48c6587850a03e9f9bac365d0b6c0d9d1fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

${PYTHON} ${top_srcdir}/tools/gobject-foo.py Xyz_Badger Mushroom_Snake \
    > gobject-foo.h
${PYTHON} ${top_srcdir}/tools/gobject-foo.py --interface \
    Xyz_Badger Irritable > ginterface-foo.h

e=0
# We assume POSIX diff, until someone complains
diff -b -c ${srcdir}/expected-gobject-foo.h gobject-foo.h || e=$?
diff -b -c ${srcdir}/expected-ginterface-foo.h ginterface-foo.h || e=$?

rm -f gobject-foo.h
rm -f ginterface-foo.h

exit $e