From 575133875c4d0e47f8e4340e2a4efe76cd1904a4 Mon Sep 17 00:00:00 2001 From: Kyryl Melekhin Date: Wed, 10 Nov 2021 11:17:59 +0000 Subject: [PATCH] test.sh: compile before running tests if a.out not found --- test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test.sh b/test.sh index 9951a2d..b5eb469 100755 --- a/test.sh +++ b/test.sh @@ -467,6 +467,10 @@ expect="\ (0,0) " +if [ ! -f ./a.out ]; then + gcc pike.c -pedantic -Wall -Wfatal-errors -std=c99 $CFLAGS +fi + c=1 printf '%s\n' "$regex" | while read re; do inp=$(printf '%s\n' "$input" | awk -v c=$c 'BEGIN{ RS = "" ; FS = "\n" }{print $c}')