./original-runner.sh: line 4: 10934 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10953 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10958 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10962 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10965 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10971 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10979 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10983 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10987 Segmentation fault      (core dumped) ./original < $1 &> $2
./original-runner.sh: line 4: 10990 Segmentation fault      (core dumped) ./original < $1 &> $2
#!/bin/bash
DIR=`dirname $0`

case $2 in
n1) $1 < $DIR/../../tests/whitebox/9.in &> out; diff out original-wbn1 || exit 0 ;;
 n2) $1 < $DIR/../../tests/whitebox/8.in &> out; diff out original-wbn2 || exit 0 ;;
 n3) $1 < $DIR/../../tests/whitebox/3.in &> out; diff out original-wbn3 || exit 0 ;;
 n4) $1 < $DIR/../../tests/whitebox/2.in &> out; diff out original-wbn4 || exit 0 ;;
 n5) $1 < $DIR/../../tests/whitebox/1.in &> out; diff out original-wbn5 || exit 0 ;;
 n6) $1 < $DIR/../../tests/whitebox/10.in &> out; diff out original-wbn6 || exit 0 ;;
 n7) $1 < $DIR/../../tests/whitebox/7.in &> out; diff out original-wbn7 || exit 0 ;;
 n8) $1 < $DIR/../../tests/whitebox/6.in &> out; diff out original-wbn8 || exit 0 ;;
 n9) $1 < $DIR/../../tests/whitebox/5.in &> out; diff out original-wbn9 || exit 0 ;;
 n10) $1 < $DIR/../../tests/whitebox/4.in &> out; diff out original-wbn10 || exit 0 ;;
 esac
exit 1
