[libpeas] Fix test make rule dependencies
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix test make rule dependencies
- Date: Wed, 23 Mar 2011 21:42:40 +0000 (UTC)
commit 84c29795e9d502631a670fcabfe0011f17bea717
Author: Garrett Regier <alias301 gmail com>
Date: Sat Mar 19 14:06:20 2011 -0700
Fix test make rule dependencies
tests/Makefile.am | 4 ++--
tests/Makefile.tests | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 619f975..a1969fb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -6,7 +6,7 @@ if ENABLE_GTK
SUBDIRS += libpeas-gtk
endif
-test test-gdb test-valgrind test-callgrind:
+test test-gdb test-valgrind test-callgrind: all
@for subdir in $(SUBDIRS) ; do \
test "$$subdir" = "plugins" -o "$$subdir" = "testing-util" || \
( cd $$subdir && \
@@ -23,7 +23,7 @@ test test-gdb test-valgrind test-callgrind:
# test-report: run tests and generate report
# perf-report: run tests with -m perf and generate report
# full-report: run tests with -m perf -m slow and generate report
-test-report perf-report full-report:
+test-report perf-report full-report: all
@export GTESTER_LOGDIR=`mktemp -d "$(abs_srcdir)/.testlogs-XXXXXX"` ; \
if test -d "$(top_srcdir)/.git" ; then \
export REVISION="`git describe`" ; \
diff --git a/tests/Makefile.tests b/tests/Makefile.tests
index 3a74265..302e8e0 100644
--- a/tests/Makefile.tests
+++ b/tests/Makefile.tests
@@ -2,13 +2,13 @@ GTESTER = gtester
TEST_PROGS =
-test: $(TEST_PROGS)
+test: all
@test -z "$(TEST_PROGS)" || \
G_SLICE=debug-blocks $(GTESTER) --verbose $(TEST_PROGS)
if GDB_ENABLED
-test-gdb: $(TEST_PROGS)
+test-gdb: all
@test -z "$(TEST_PROGS)" || \
for test_prog in $(TEST_PROGS) ; do \
G_SLICE=debug-blocks $(GTESTER) --verbose $$test_prog || { \
@@ -27,7 +27,7 @@ endif # GDB_ENABLED
if VALGRIND_ENABLED
-test-valgrind: $(TEST_PROGS)
+test-valgrind: all
@test -z "$(TEST_PROGS)" || \
for test_prog in $(TEST_PROGS) ; do \
if test -e vgdump-$$test_prog; then \
@@ -39,7 +39,7 @@ test-valgrind: $(TEST_PROGS)
--log-file=vgdump-$$test_prog $$test_prog ; \
done
-test-callgrind:
+test-callgrind: all
@test -z "$(TEST_PROGS)" || \
for test_prog in $(TEST_PROGS) ; do \
if test -e cgdump-$$test_prog; then \
@@ -57,7 +57,7 @@ test-valgrind test-callgrind:
endif # VALGRIND_ENABLED
-generate-report: $(TEST_PROGS)
+generate-report: all
@test -z "$(TEST_PROGS)" || \
G_SLICE=debug-blocks $(GTESTER) $(GTESTER_ARGS) $(TEST_PROGS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]