8 #LOC=/usr/ftp/pub/ubvl/test/$beispiel
11 allow_null_glob_expansion=1
13 if [ ! -d ~/abgabe/$beispiel ]; then
14 echo "Fehler: Verzeichnis ~/abgabe/$beispiel existiert nicht."
24 echo "Fehler: Kein Programm $PROGRAM"
28 #for i in $LOC/*.0 $LOC2/*.0
32 echo "==========> Eingabe von $i:"
35 RESFILE=test${beispiel}out$$
36 $PROGRAM <$i >$RESFILE
38 echo -n "Übersetzung: "
43 echo "[Errot] Status=$retval. Erwartet: 0"
48 if [ -f ~/test/scripts/clr.py ]; then
49 cat $RESFILE | ~/test/scripts/clr.py
53 mv -f $RESFILE $RESFILE.s
56 if [ ! -f $CALLFILE ]; then
57 echo "Fehler: Datei $CALLFILE existiert nicht, kann Code nicht ausführen..."
60 echo "Übersetze und linke das Testprogramm:"
61 if cc -g -I. -DCALL=\"$CALLFILE\" $LOC/testmain.c $LOC/callingconvention.o $RESFILE.s; then
63 echo "Rufe folgendes Codefragment auf:"
68 echo "[Error] Erzeugter Code konnte nicht assembliert und gelinkt werden."
72 rm -f a.out $RESFILE $RESFILE.s