[test] Rename test-symbols to check-symbols
Shows undocumented symbols.
This commit is contained in:
parent
376dafa6ed
commit
18bced134f
|
@ -51,21 +51,7 @@ test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# test-symbols: Finds untested API symbols
|
# Default test running environment
|
||||||
symbols-tested.txt: $(TEST_PROGS)
|
|
||||||
$(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
|
|
||||||
| grep ' U hb_' | sed 's/.* U hb_/hb_/' \
|
|
||||||
| sort | uniq > $@.tmp && mv $@.tmp $@
|
|
||||||
symbols-exported.txt: $(top_builddir)/src/.libs/libharfbuzz.so
|
|
||||||
$(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
|
|
||||||
| grep ' T ' | sed 's/.* T //' | grep -v '^\(_init\|_fini\)$$' \
|
|
||||||
| sort | uniq > $@.tmp && mv $@.tmp $@
|
|
||||||
symbols-untested.txt: symbols-tested.txt symbols-exported.txt
|
|
||||||
$(AM_V_GEN)diff $^ > $@.tmp; mv $@.tmp $@
|
|
||||||
CLEANFILES += symbols-tested.txt symbols-exported.txt symbols-untested.txt
|
|
||||||
test-symbols: symbols-untested.txt
|
|
||||||
@! cat $^ | grep .
|
|
||||||
|
|
||||||
TESTS = $(TEST_PROGS)
|
TESTS = $(TEST_PROGS)
|
||||||
TESTS_ENVIRONMENT = \
|
TESTS_ENVIRONMENT = \
|
||||||
MALLOC_CHECK_=2 \
|
MALLOC_CHECK_=2 \
|
||||||
|
@ -74,6 +60,7 @@ TESTS_ENVIRONMENT = \
|
||||||
G_SLICE=always-malloc \
|
G_SLICE=always-malloc \
|
||||||
$(ENV)
|
$(ENV)
|
||||||
|
|
||||||
|
|
||||||
# check-tool: Run tests under $(TOOL)
|
# check-tool: Run tests under $(TOOL)
|
||||||
check-tool:
|
check-tool:
|
||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
|
||||||
|
@ -90,6 +77,7 @@ GTESTER = gtester
|
||||||
check-gtester:
|
check-gtester:
|
||||||
$(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool-raw TOOL="$(GTESTER) --verbose"
|
$(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool-raw TOOL="$(GTESTER) --verbose"
|
||||||
|
|
||||||
|
|
||||||
# Check tests under valgrind. Saves log to valgrind-log
|
# Check tests under valgrind. Saves log to valgrind-log
|
||||||
VALGRIND_FLAGS = \
|
VALGRIND_FLAGS = \
|
||||||
--tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \
|
--tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \
|
||||||
|
@ -108,12 +96,29 @@ check-valgrind:
|
||||||
2>&1 | tee valgrind-log $(valgrind_verbose)
|
2>&1 | tee valgrind-log $(valgrind_verbose)
|
||||||
|
|
||||||
|
|
||||||
|
# check-symbols: Finds untested API symbols
|
||||||
|
symbols-tested.txt: $(TEST_PROGS)
|
||||||
|
$(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
|
||||||
|
| grep ' U hb_' | sed 's/.* U hb_/hb_/' \
|
||||||
|
| sort | uniq > $@.tmp && mv $@.tmp $@
|
||||||
|
symbols-exported.txt: $(top_builddir)/src/.libs/libharfbuzz.so
|
||||||
|
$(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
|
||||||
|
| grep ' T ' | sed 's/.* T //' | grep -v '^\(_init\|_fini\)$$' \
|
||||||
|
| sort | uniq > $@.tmp && mv $@.tmp $@
|
||||||
|
symbols-untested.txt: symbols-tested.txt symbols-exported.txt
|
||||||
|
$(AM_V_GEN)diff $^ > $@.tmp; mv $@.tmp $@
|
||||||
|
CLEANFILES += symbols-tested.txt symbols-exported.txt symbols-untested.txt
|
||||||
|
check-symbols: symbols-untested.txt
|
||||||
|
@! cat $^ | grep .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
check-am:
|
check-am:
|
||||||
@echo "You need to have glib support enabled to run the tests"
|
@echo "You need to have glib support enabled to run the tests"
|
||||||
@exit 77
|
@exit 77
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: test-symbols check-tool check-valgrind
|
.PHONY: check-symbols check-tool check-valgrind
|
||||||
|
|
||||||
-include $(top_srcdir)/git.mk
|
-include $(top_srcdir)/git.mk
|
||||||
|
|
Loading…
Reference in New Issue