Skip to content

Commit 90a6831

Browse files
committed
Output all-tests results summary
1 parent 4ba696d commit 90a6831

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

GNUmakefile.in

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ECHO = echo
6565
TESTNDIR = test ! -d
6666
TESTFILE = test -f
6767
AND = &&
68+
COUNT_UNIQ = uniq -c
6869

6970
# If not.
7071
#RM = erase
@@ -140,7 +141,7 @@ LFLAGS = $(ARCH)
140141
# non-compliant, but applications that make assumptions that POSIX
141142
# does not garrantee may fail or misbehave under some settings.
142143
#
143-
# PTW32_THREAD_ID_REUSE_INCREMENT
144+
# __PTW32_THREAD_ID_REUSE_INCREMENT
144145
# Purpose:
145146
# POSIX says that applications should assume that thread IDs can be
146147
# recycled. However, Solaris and some other systems use a [very large]
@@ -220,7 +221,7 @@ all:
220221
@ $(MAKE) clean GC-static
221222
@ $(MAKE) clean GCE-static
222223

223-
TEST_ENV = PTW32_FLAGS="$(PTW32_FLAGS) -DNO_ERROR_DIALOGS" DLL_VER=$(DLL_VER) ARCH="$(ARCH)"
224+
TEST_ENV = __PTW32_FLAGS="$(PTW32_FLAGS) -DNO_ERROR_DIALOGS" DLL_VER=$(DLL_VER) ARCH="$(ARCH)"
224225

225226
all-tests:
226227
$(MAKE) realclean GC-small-static
@@ -236,11 +237,11 @@ all-tests:
236237
cd tests && $(MAKE) clean GC-static $(TEST_ENV) && $(MAKE) clean GCX-static $(TEST_ENV)
237238
$(MAKE) realclean GCE-static
238239
cd tests && $(MAKE) clean GCE-static $(TEST_ENV)
239-
@ - $(GREP) FAILED *.log
240-
$(MAKE) realclean
240+
@ $(GREP) FAILED *.log || $(GREP) Passed *.log | $(COUNT_UNIQ)
241+
$(MAKE) clean
241242

242243
all-tests-cflags:
243-
$(MAKE) all-tests PTW32_FLAGS="-Wall -Wextra"
244+
$(MAKE) all-tests __PTW32_FLAGS="-Wall -Wextra"
244245
@ $(ECHO) "$@ completed."
245246

246247
GC:
@@ -376,6 +377,7 @@ realclean: clean
376377
-$(RM) pthread*.dll
377378
-$(RM) *_stamp
378379
-$(RM) make.log.txt
380+
-$(RM) *.log
379381
-cd tests && $(MAKE) realclean
380382

381383
var_check_list =

0 commit comments

Comments
 (0)