Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] Rename test-symbols to check-symbols

Shows undocumented symbols.
  • Loading branch information...
commit 18bced134fc3379c9124ba029e22ff3f6434ca0f 1 parent 376dafa
@behdad behdad authored
Showing with 21 additions and 16 deletions.
  1. +21 −16 test/Makefile.am
View
37 test/Makefile.am
@@ -51,21 +51,7 @@ test_object_LIBS = $(LDADD) $(FREETYPE_LIBS)
endif
-# test-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
-test-symbols: symbols-untested.txt
- @! cat $^ | grep .
-
+# Default test running environment
TESTS = $(TEST_PROGS)
TESTS_ENVIRONMENT = \
MALLOC_CHECK_=2 \
@@ -74,6 +60,7 @@ TESTS_ENVIRONMENT = \
G_SLICE=always-malloc \
$(ENV)
+
# check-tool: Run tests under $(TOOL)
check-tool:
$(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
@@ -90,6 +77,7 @@ GTESTER = gtester
check-gtester:
$(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool-raw TOOL="$(GTESTER) --verbose"
+
# Check tests under valgrind. Saves log to valgrind-log
VALGRIND_FLAGS = \
--tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \
@@ -108,12 +96,29 @@ check-valgrind:
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
check-am:
@echo "You need to have glib support enabled to run the tests"
@exit 77
endif
-.PHONY: test-symbols check-tool check-valgrind
+.PHONY: check-symbols check-tool check-valgrind
-include $(top_srcdir)/git.mk
Please sign in to comment.
Something went wrong with that request. Please try again.