#!/bin/bash
DIR=`dirname $0`
case $2 in
p1) ./genprog_tests.py --program digits $1 tests/whitebox/1.out tests/whitebox/1.in && exit 0;;
n1) $1 < tests/whitebox/9.in &> out; diff out original-wbn1 || exit 0 ;;
n2) $1 < tests/whitebox/8.in &> out; diff out original-wbn2 || exit 0 ;;
n3) $1 < tests/whitebox/3.in &> out; diff out original-wbn3 || exit 0 ;;
n4) $1 < tests/whitebox/2.in &> out; diff out original-wbn4 || exit 0 ;;
n5) $1 < tests/whitebox/10.in &> out; diff out original-wbn5 || exit 0 ;;
n6) $1 < tests/whitebox/7.in &> out; diff out original-wbn6 || exit 0 ;;
n7) $1 < tests/whitebox/6.in &> out; diff out original-wbn7 || exit 0 ;;
n8) $1 < tests/whitebox/5.in &> out; diff out original-wbn8 || exit 0 ;;
n9) $1 < tests/whitebox/4.in &> out; diff out original-wbn9 || exit 0 ;;
esac
exit 1
