From 50174d98601856b656ea07e03aaed7b9250752c8 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sun, 19 Mar 2017 20:32:23 +0100
Subject: [PATCH] Hide stdout of tests returning an exit code.
Now that we doubled our tests by running them for both 6502 and 65C02 Travis CI complains (again) about a too long build output. So let's reduce it by omitting the (useless) stdout of tests.
---
test/val/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test/val/Makefile b/test/val/Makefile
index 425d8ace6..2ae3e3b28 100644
--- a/test/val/Makefile
+++ b/test/val/Makefile
@@ -5,10 +5,14 @@ ifneq ($(shell echo),)
endif
ifdef CMD_EXE
+ S = $(subst /,\,/)
+ NULLDEV = nul:
MKDIR = mkdir $(subst /,\,$1)
RMDIR = -rmdir /s /q $(subst /,\,$1)
DEL = del /f $(subst /,\,$1)
else
+ S = /
+ NULLDEV = /dev/null
MKDIR = mkdir -p $1
RMDIR = $(RM) -r $1
DEL = $(RM) $1
@@ -17,7 +21,7 @@ endif
SIM65FLAGS = -x 200000000
CL65 := $(if $(wildcard ../../bin/cl65*),../../bin/cl65,cl65)
-SIM65 := $(if $(wildcard ../../bin/sim65*),../../bin/sim65,sim65)
+SIM65 := $(if $(wildcard ../../bin/sim65*),..$S..$Sbin$Ssim65,sim65)
WORKDIR = ../../testwrk/val
@@ -55,7 +59,7 @@ define PRG_template
$(WORKDIR)/%.$1.$2.prg: %.c | $(WORKDIR)
$(CL65) -t sim$2 $$(CC65FLAGS) -$1 -o $$@ $$<
- $(SIM65) $(SIM65FLAGS) $$@
+ $(SIM65) $(SIM65FLAGS) $$@ >$(NULLDEV)
endef # PRG_template