From 7d3350b71b0c0bb8f04abf8aab9e4e682782c794 Mon Sep 17 00:00:00 2001 From: Ian Piumarta Date: Thu, 9 May 2024 10:11:39 +0900 Subject: [PATCH] Run test on file, not on stdin. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f4f6816..a1e6bec 100644 --- a/Makefile +++ b/Makefile @@ -22,11 +22,11 @@ all : $(MAIN) leg -o $@ $< test : $(MAIN) - ./$(MAIN) < test.txt | tee test.out + ./$(MAIN) test.txt 2>&1 | tee test.out @diff test.ref test.out && echo '\012--- PASSED ---' testref : $(MAIN) - ./$(MAIN) < test.txt | tee test.ref + ./$(MAIN) test.txt 2>&1 | tee test.ref bench : $(MAIN)-opt time ./$(MAIN)-opt -O bench.txt