#!/bin/bash

if [ ! -e ../gen/debug/Nchr2 ];
then
    echo
    echo "You have to compile debug target in order to perform system tests.";
    echo
    exit 1;
fi;
rm -f log
for i in *.in;
do
echo -n $i " ";
if ../gen/debug/Nchr2 ./$i 2>&1 >>log
then
    echo -e "\t\033[0;32mPASSED\033[0m";
else
    echo -e "\t\033[1;31mFAILED\033[0m";
fi
done;