test: compile pike on fly

This commit is contained in:
Kyryl Melekhin
2021-08-03 18:33:41 +00:00
parent 11c505447c
commit 70766fb93e
2 changed files with 3 additions and 8 deletions

View File

@@ -253,6 +253,8 @@ expect="\
(4,13)(?,?)
(0,0)
"
gcc pike.c -pedantic -Wall -Wfatal-errors -std=c99
c=1
echo "$regex" | tr '\n' | while read re; do
inp=$(echo "$input" | awk -v c=$c 'BEGIN{ RS = "" ; FS = "\n" }{print $c}')