summaryrefslogtreecommitdiff
blob: eeaa63945b7bbfe34354f1f40084324a95bc1129 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
	Add an easily-greppable string to the output of test runs.
	If a test fails, the output will contain a line:
	FAILED <test output filename>
	which indicates the test that failed.  Find with 'grep ^FAILED'
	Kevin F. Quinn <kevquinn@gentoo.org> 15 Dec 2006

--- Rules.orig	2006-02-28 08:05:48.000000000 +0100
+++ Rules	2006-08-05 14:18:39.000000000 +0200
@@ -142,11 +142,11 @@
 make-test-out = GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \
 		$($*-ENV) $(built-program-cmd) $($*-ARGS)
 $(objpfx)%-bp.out: %.input $(objpfx)%-bp
-	$(make-test-out) > $@ < $(word 1,$^)
+	$(make-test-out) > $@ < $(word 1,$^) || echo FAILED $@
 $(objpfx)%.out: %.input $(objpfx)%
-	$(make-test-out) > $@ < $(word 1,$^)
+	$(make-test-out) > $@ < $(word 1,$^) || echo FAILED $@
 $(objpfx)%.out: /dev/null $(objpfx)%	# Make it 2nd arg for canned sequence.
-	$(make-test-out) > $@
+	$(make-test-out) > $@ || echo FAILED $@
 
 endif	# tests