#!/bin/bash # Run generator across a range of parameters. # # Functional correctness is verified in test_dungeon_attributes.sh. # Here we just want to see that the program doesn't crash. if [[ $# != 1 ]]; then echo "$0 {program}" exit 1 fi PROG=$1 for w in 36 37 41 101 1001 1567 2047; do for h in 12 13 103 997 1567 2047; do "./$PROG" "$w" "$h" > /dev/null done done exit 0