Skip to content

Commit

Permalink
Add a breaking change to one of the tests to check if Github action w… (
Browse files Browse the repository at this point in the history
#2)

Fixed action so breaking change is reported.
  • Loading branch information
magnmaeh authored Jan 25, 2024
1 parent 40b86db commit 4eddf90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 7 additions & 3 deletions verilator.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4eddf90

Please sign in to comment.