#!/bin/bash
DIR=`dirname $0`

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

n1) $1 < $DIR/../../tests/blackbox/3.in &> out; diff out original-bbn1 || exit 0 ;;
 n2) $1 < $DIR/../../tests/blackbox/1.in &> out; diff out original-bbn2 || exit 0 ;;
 n3) $1 < $DIR/../../tests/blackbox/6.in &> out; diff out original-bbn3 || exit 0 ;;
 n4) $1 < $DIR/../../tests/blackbox/5.in &> out; diff out original-bbn4 || exit 0 ;;
 n5) $1 < $DIR/../../tests/blackbox/4.in &> out; diff out original-bbn5 || exit 0 ;;
 esac
exit 1
