diff options
author | Marvin Borner | 2024-01-19 01:17:19 +0100 |
---|---|---|
committer | Marvin Borner | 2024-01-19 01:20:38 +0100 |
commit | 10a757d4ad95bf3e16e3b6df4fa989778312dac1 (patch) | |
tree | 7e65e7207ab099a28cd0b30480133dd9da4ab997 /test/run | |
parent | 8d9b40605dc8caa92fa501770b917a7b50cac5dc (diff) |
Bits/ASCII writer abstraction
Diffstat (limited to 'test/run')
-rwxr-xr-x | test/run | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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" |