File: 0001-Parallel-friendly-test-runner.patch

package info (click to toggle)
re2 20170101%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,748 kB
  • ctags: 2,620
  • sloc: cpp: 19,513; makefile: 294; python: 281; sh: 228; perl: 224; ansic: 9
file content (35 lines) | stat: -rw-r--r-- 1,006 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 3577f00694aca3d9a518d06d2dc9d09e0a9df90c Mon Sep 17 00:00:00 2001
From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 4 Jul 2015 13:12:35 -0700
Subject: Parallel-friendly test-runner

Use our own test runner that can test in parallel with readable output
and errors included in the build log.

Output a . after each line of test output so slow buildds don't give up on us.
Only perform cursory tests on the static library.

Forwarded: not-needed
---
 Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 645b364..075e372 100644
--- a/Makefile
+++ b/Makefile
@@ -243,7 +243,13 @@ clean:
 
 testofiles: $(TESTOFILES)
 
-test: $(DTESTS) $(TESTS) $(STESTS) debug-test static-test shared-test
+test: $(patsubst %,%.log,$(TESTS) $(STESTS) $(SBIGTESTS))
+
+obj/so/test/%.log: obj/so/test/%
+	@LD_LIBRARY_PATH=obj/so:$(LD_LIBRARY_PATH) sh debian/runtest.sh $<
+
+obj/test/%.log: obj/test/%
+	@sh debian/runtest.sh $<
 
 debug-test: $(DTESTS)
 	@echo