mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
Make abicheck.sh output TAP
So that we can run it under the TAP harness like the rest of the conformance test suite.
This commit is contained in:
parent
b4044292d3
commit
ad39d3d1ae
7
.gitignore
vendored
7
.gitignore
vendored
@ -23,13 +23,16 @@ stamp-marshal
|
|||||||
/clutter/gcov-report.txt
|
/clutter/gcov-report.txt
|
||||||
/clutter/clutter-json.h
|
/clutter/clutter-json.h
|
||||||
/clutter/cex100/clutter-cex100.h
|
/clutter/cex100/clutter-cex100.h
|
||||||
|
/clutter/*.log
|
||||||
|
/clutter/*.trs
|
||||||
/clutter-lcov.info
|
/clutter-lcov.info
|
||||||
/clutter-lcov
|
/clutter-lcov
|
||||||
/build/autotools/*.m4
|
|
||||||
/build/test-driver
|
|
||||||
!/build/autotools/introspection.m4
|
!/build/autotools/introspection.m4
|
||||||
!/build/autotools/as-linguas.m4
|
!/build/autotools/as-linguas.m4
|
||||||
!/build/autotools/as-compiler-flag.m4
|
!/build/autotools/as-compiler-flag.m4
|
||||||
|
!/build/autotools/glibtests.m4
|
||||||
|
/build/autotools/*.m4
|
||||||
|
/build/test-driver
|
||||||
*.gir
|
*.gir
|
||||||
*.typelib
|
*.typelib
|
||||||
*.gcda
|
*.gcda
|
||||||
|
@ -1054,6 +1054,7 @@ clutter_all_c_sources = \
|
|||||||
$(built_source_c)
|
$(built_source_c)
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = srcdir="$(srcdir)" CLUTTER_BACKENDS="$(CLUTTER_BACKENDS)"
|
TESTS_ENVIRONMENT = srcdir="$(srcdir)" CLUTTER_BACKENDS="$(CLUTTER_BACKENDS)"
|
||||||
|
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build/autotools/tap-driver.sh
|
||||||
if OS_LINUX
|
if OS_LINUX
|
||||||
TESTS = abicheck.sh
|
TESTS = abicheck.sh
|
||||||
endif
|
endif
|
||||||
|
@ -24,7 +24,23 @@ if [ $has_wayland_backend = "yes" ]; then
|
|||||||
cppargs="$cppargs -DCLUTTER_WINDOWING_WAYLAND"
|
cppargs="$cppargs -DCLUTTER_WINDOWING_WAYLAND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "1..1"
|
||||||
|
echo "# Start of abicheck"
|
||||||
|
|
||||||
cpp -P ${cppargs} ${srcdir:-.}/clutter.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
|
cpp -P ${cppargs} ${srcdir:-.}/clutter.symbols | sed -e '/^$/d' -e 's/ G_GNUC.*$//' -e 's/ PRIVATE//' -e 's/ DATA//' | sort > expected-abi
|
||||||
|
|
||||||
nm -D -g --defined-only .libs/libclutter-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
nm -D -g --defined-only .libs/libclutter-1.0.so | cut -d ' ' -f 3 | egrep -v '^(__bss_start|_edata|_end)' | sort > actual-abi
|
||||||
diff -u expected-abi actual-abi && rm -f expected-abi actual-abi
|
|
||||||
|
diff -u expected-abi actual-abi > diff-abi
|
||||||
|
|
||||||
|
if [ $? = 0 ]; then
|
||||||
|
echo "ok 1 expected abi"
|
||||||
|
rm -f diff-abi
|
||||||
|
else
|
||||||
|
echo "not ok 1 expected abi"
|
||||||
|
echo "# difference in diff-abi"
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -f actual-abi expected-abi
|
||||||
|
|
||||||
|
echo "# End of abicheck"
|
||||||
|
Loading…
Reference in New Issue
Block a user