#!/bin/bash

case ${1##*.} in
"py")
    RUN="python $1"
    ;;
esac

DIR=`pwd`
NAME=${DIR##*/}
SUF=${2:-a}

for i in tests/??
do
    cp $i $NAME.in
    time ./run.c $RUN
    mv $NAME.out $i.$SUF
done

