#!/bin/bash
# for cs2506 practical 6 fall '24
# why don't we steal away
#  why don't we steee-al aaaa-way
#   into the night

make

echo "---"

for f in tests/*.asm; do
    base="${f%.*}"

    echo "===running test $base ==="

    eval "./assembler < $base.asm > $base.sample.o"
    eval "diff -ys $base.o $base.sample.o"
    echo "===completed test $base ==="
    read
done
