#!/bin/sh if test -x mono ; then : elif test -x $HOME/mono/mono ; then ln -s $HOME/mono/* . fi for n in "$@" ; do case "$n" in -* ) ;; * ) f="$n" ;; esac done log=results MONO_PATH=$PWD LD_LIBRARY_PATH=$PWD ./mono fx7.exe -npb -t:300 -mqi:30 "$@" case $? in 0 ) echo "*** OK: $f" >> $log ;; 1 ) echo "*** ERROR: (wrong answer) $f" >> $log ;; 2 ) echo "*** ERROR: (FatalError) $f" >> $log ;; 3 ) echo "*** ERROR: (TIMEOUT) $f" >> $log ;; 4 ) echo "*** ERROR: (other exception) $f" >> $log ;; 5 ) echo "*** ERROR: (non-UTVPI/non-linear) $f" >> $log ;; * ) echo "*** ERROR: (unknown, code=$res) $f" >> $log esac