From: Lukas Jiriste Date: Fri, 27 Oct 2023 09:55:41 +0000 (+0200) Subject: Repair stdin functionality, move stdin test to others X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=d9f532698086a4fb22c7adbcf1c5c0650e370ee0;p=42%2Fgnl_tester.git Repair stdin functionality, move stdin test to others Move stdin test to other tests so it runs for every BUFFER_SIZE tested. Compare correct files while testing (correct/.stdin instead of correct/-). Add missing " in Makefile. --- diff --git a/Makefile b/Makefile index 2162dc3..9142d4d 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ OBJS := $(SRCS:%.c=$(OBJDIR)%.o) GNLOBJS := $(GNLSRCS:%.c=$(OBJDIR)%.o) GNLBONUSOBJS = $(GNLBONUS:%.c=$(OBJDIR)%.o) -TESTFILES := $(shell find $(TESTDIR) -type f -not -path "*/.* | sort) $(TESTDIR).stdin +TESTFILES := $(shell find $(TESTDIR) -type f -not -path "*/.*" | sort) $(TESTDIR).stdin CORFILES := $(TESTFILES:$(TESTDIR)%=$(CORDIR)%) NAME = tester diff --git a/test b/test index 9d7aa88..8b6fe29 100755 --- a/test +++ b/test @@ -50,21 +50,6 @@ then make --silent all_tests SEP="$SEP" wait - - valgrind --quiet --leak-check=full --log-file='tmp' ./tester - /dev/null - wait - if $(cmp -s ./correct/- ./results/-) - then - printf "\033[32m" - printf "stdin: OK\n" - printf "$( /dev/null + wait + if $(cmp -s "./correct/.stdin" "./results/-") + then + printf "\033[32m" + printf "stdin: OK\n" + printf "$( /dev/null