./original-runner.sh: line 4: 12008 Segmentation fault      (core dumped) ./original < $1 &> $2
#!/bin/bash
DIR=`dirname $0`

case $2 in
p1) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/9.out $DIR/../../tests/whitebox/9.in && exit 0;;

p2) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/8.out $DIR/../../tests/whitebox/8.in && exit 0;;

p3) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/3.out $DIR/../../tests/whitebox/3.in && exit 0;;

p4) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/2.out $DIR/../../tests/whitebox/2.in && exit 0;;

p5) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/10.out $DIR/../../tests/whitebox/10.in && exit 0;;

p6) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/7.out $DIR/../../tests/whitebox/7.in && exit 0;;

p7) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/6.out $DIR/../../tests/whitebox/6.in && exit 0;;

p8) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/5.out $DIR/../../tests/whitebox/5.in && exit 0;;

p9) $DIR/../../../bin/genprog_tests.py --program digits $1 $DIR/../../tests/whitebox/4.out $DIR/../../tests/whitebox/4.in && exit 0;;

n1) $1 < $DIR/../../tests/whitebox/1.in &> out; diff out original-wbn1 || exit 0 ;;
 esac
exit 1
