From 4eddf9032d9f9859eda659582c8b09ea95568183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=A6hlum?= <42750865+magnmaeh@users.noreply.github.com> Date: Thu, 25 Jan 2024 19:45:02 +0100 Subject: [PATCH] =?UTF-8?q?Add=20a=20breaking=20change=20to=20one=20of=20t?= =?UTF-8?q?he=20tests=20to=20check=20if=20Github=20action=20w=E2=80=A6=20(?= =?UTF-8?q?#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed action so breaking change is reported. --- makefile | 1 + verilator.mk | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index f44ac83..6c49a92 100644 --- a/makefile +++ b/makefile @@ -4,6 +4,7 @@ TEST_FOLDERS := $(subst makefile,, $(MAKEFILESS)) all: run run: + set -e && \ for test in $(TEST_FOLDERS) ; do \ make -C $$test all ; \ done diff --git a/verilator.mk b/verilator.mk index a515340..b63992b 100644 --- a/verilator.mk +++ b/verilator.mk @@ -14,8 +14,12 @@ $(VERILATOR_EXE): lint | $(SOURCES) verilator $(VERILATOR_ARGS) $(SIMFILES) $(SOURCES) > /dev/null run: $(VERILATOR_EXE) - ./$(VERILATOR_EXE) | tee output.txt; ./$(PARSER) $(PROJECT_NAME) $$? output.txt + # https://stackoverflow.com/questions/17757039/equivalent-of-pipefail-in-dash-shell + @mkfifo named_pipe + @tee output.txt < named_pipe & + @./$(VERILATOR_EXE) > named_pipe; ./$(PARSER) $(PROJECT_NAME) $$? output.txt + @rm named_pipe clean: - rm -rf obj_dir - + @rm -rf obj_dir + @rm -f named_pipe