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
make --silent all_tests SEP="$SEP"
wait
-
- valgrind --quiet --leak-check=full --log-file='tmp' ./tester - <test_files/.stdin > /dev/null
- wait
- if $(cmp -s ./correct/- ./results/-)
- then
- printf "\033[32m"
- printf "stdin: OK\n"
- printf "$(<tmp)\n"
- else
- printf "\033[31m"
- printf "stdin: KO\n"
- printf "diff -y ./correct/"$file" ./results/"$file"\n"
- printf "$(diff -y ./correct/"$file" ./results/"$file")\n"
- printf "$(<tmp)\n"
- fi
for file in $(ls test_files/)
do
printf "\033[0m\nTrying BUFFER_SIZE = $BS\n"
make --silent BUFFER_SIZE=$BS
wait
+
+ valgrind --quiet --leak-check=full --log-file='tmp' ./tester - <test_files/.stdin > /dev/null
+ wait
+ if $(cmp -s "./correct/.stdin" "./results/-")
+ then
+ printf "\033[32m"
+ printf "stdin: OK\n"
+ printf "$(<tmp)\n"
+ else
+ printf "\033[31m"
+ printf "stdin: KO\n"
+ printf "diff -y ./correct/.stdin ./results/-\n"
+ printf "$(diff -y ./correct/.stdin ./results/-)\n"
+ printf "$(<tmp)\n"
+ fi
+
for file in $(ls test_files/)
do
valgrind --quiet --leak-check=full --log-file='tmp' ./tester "$file" > /dev/null