From 10a757d4ad95bf3e16e3b6df4fa989778312dac1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 19 Jan 2024 01:17:19 +0100 Subject: Bits/ASCII writer abstraction --- test/run | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/run b/test/run index 5ef28da..736521a 100755 --- a/test/run +++ b/test/run @@ -1,6 +1,6 @@ #!/bin/sh -set -e +# set -e FAIL="\033[0;31m[FAIL]\033[0m " SUCC="\033[0;32m[ OK ]\033[0m " @@ -10,11 +10,17 @@ rm -f ../build/*.out ../build/*.blc ../build/*.bloc for file in *.blc; do bloc --from-blc -i "$file" -o ../build/"$file".bloc ../build/blocade -i ../build/"$file".bloc -t blc -o ../build/"$file".bloc.blc + ../build/blocade -i ../build/"$file".bloc -t bblc -o ../build/"$file".bloc.bblc bruijn -E "$file" &>../build/"$file".out + bruijn -E ../build/"$file".bloc.blc &>../build/"$file".bloc.blc.out cmp ../build/"$file".out ../build/"$file".bloc.blc.out && printf "$SUCC" || printf "$FAIL" echo "blc res cmp on $file" + bruijn -e ../build/"$file".bloc.bblc &>../build/"$file".bloc.bblc.out + cmp ../build/"$file".out ../build/"$file".bloc.bblc.out && printf "$SUCC" || printf "$FAIL" + echo "bblc res cmp on $file" + ../build/blocade -i ../build/"$file".bloc -t unblc -o ../build/"$file".bloc.unblc cmp ../build/"$file".bloc.unblc "$file" && printf "$SUCC" || printf "$FAIL" echo "unblc inp cmp on $file" @@ -23,11 +29,17 @@ done for file in *.blc.io; do bloc --from-blc -i "$file" -o ../build/"$file".bloc ../build/blocade -i ../build/"$file".bloc -t blc -o ../build/"$file".bloc.blc + ../build/blocade -i ../build/"$file".bloc -t bblc -o ../build/"$file".bloc.bblc cat "$file".in | bruijn -E "$file" &>../build/"$file".out + cat "$file".in | bruijn -E ../build/"$file".bloc.blc &>../build/"$file".bloc.blc.out cmp ../build/"$file".out ../build/"$file".bloc.blc.out && printf "$SUCC" || printf "$FAIL" echo "blc res cmp on $file" + cat "$file".in | bruijn -e ../build/"$file".bloc.bblc &>../build/"$file".bloc.bblc.out + cmp ../build/"$file".out ../build/"$file".bloc.bblc.out && printf "$SUCC" || printf "$FAIL" + echo "bblc res cmp on $file" + ../build/blocade -i ../build/"$file".bloc -t unblc -o ../build/"$file".bloc.unblc cmp ../build/"$file".bloc.unblc "$file" && printf "$SUCC" || printf "$FAIL" echo "unblc inp cmp on $file" -- cgit v1.2.3