summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--tests/twisted/Makefile.am10
-rw-r--r--tools/lcov.am2
3 files changed, 12 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 8fb5722ff..eb7ce9650 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,4 +10,6 @@ check-twisted: all
check-all: check check-twisted
include tools/lcov.am
+LCOV_CHECK_ARGS = CHECK_TWISTED_SLEEP=6
+
include tools/telepathy.am
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am
index 95386479d..2a06e653c 100644
--- a/tests/twisted/Makefile.am
+++ b/tests/twisted/Makefile.am
@@ -98,12 +98,20 @@ TESTS_ENVIRONMENT = \
check-local: check-coding-style check-twisted
+# set to 6 when using refdbg, to give Gabble time to exit
+CHECK_TWISTED_SLEEP=0
+
check-twisted:
$(MAKE) -C tools
rm -f tools/core
rm -f tools/gabble-testing.log
+ if test -n "$$GABBLE_TEST_REFDBG"; then \
+ sleep=6; \
+ else \
+ sleep=$(CHECK_TWISTED_SLEEP); \
+ fi; \
sh $(srcdir)/tools/with-session-bus.sh \
- --sleep=6 \
+ --sleep=$$sleep \
--config-file=tools/tmp-session-bus.conf \
-- $(MAKE) check-TESTS \
TESTS="$(TWISTED_TESTS)" \
diff --git a/tools/lcov.am b/tools/lcov.am
index 494eea0fe..7384f1b99 100644
--- a/tools/lcov.am
+++ b/tools/lcov.am
@@ -18,7 +18,7 @@ lcov-report:
lcov-check:
$(MAKE) lcov-reset
- $(MAKE) check
+ $(MAKE) check $(LCOV_CHECK_ARGS)
$(MAKE) lcov-report
## vim:set ft=automake: