8 LOC=/usr/ftp/pub/ubvl/test/$beispiel
10 allow_null_glob_expansion=1
12 if [ ! -d ~/abgabe/$beispiel ]; then
13 echo "Fehler: Verzeichnis ~/abgabe/$beispiel existiert nicht."
23 echo "Fehler: Kein Programm $PROGRAM"
27 #for i in $LOC/*.0 $LOC2/*.0
31 echo "==========> Eingabe von $i:"
34 RESFILE=test${beispiel}out$$
35 $PROGRAM <$i >$RESFILE
37 echo -n "Übersetzung: "
42 echo "[Errot] Status=$retval. Erwartet: 0"
47 if [ -f ~/test/scripts/clr.py ]; then
48 cat $RESFILE | ~/test/scripts/clr.py
52 mv -f $RESFILE $RESFILE.s
55 if [ ! -f $CALLFILE ]; then
56 echo "Fehler: Datei $CALLFILE existiert nicht, kann Code nicht ausführen..."
59 echo "Übersetze und linke das Testprogramm:"
60 if cc -g -I. -DCALL=\"$CALLFILE\" $LOC/testmain.c $LOC/callingconvention.o $RESFILE.s; then
62 echo "Rufe folgendes Codefragment auf:"
67 echo "[Error] Erzeugter Code konnte nicht assembliert und gelinkt werden."
71 rm -f a.out $RESFILE $RESFILE.s