main_testing3/re_test.sh
changeset 352 97bcf8efe4e0
parent 347 4de31fdc0d67
child 376 6cc36d0ef79e
equal deleted inserted replaced
351:591b9005157e 352:97bcf8efe4e0
    34 
    34 
    35 echo -e "re.scala runs?" >> $out
    35 echo -e "re.scala runs?" >> $out
    36 
    36 
    37 if (scala_compile re.scala)
    37 if (scala_compile re.scala)
    38 then
    38 then
    39     echo -e "  --> yes" >> $out
    39     echo -e "  --> passed" >> $out
    40     tsts=$(( 0 ))
    40     tsts=$(( 0 ))
    41 else
    41 else
    42     echo -e "  --> SCALA DID NOT RUN RE.SCALA\n" >> $out
    42     echo -e "  --> SCALA DID NOT RUN RE.SCALA\n" >> $out
    43     tsts=$(( 1 )) 
    43     tsts=$(( 1 )) 
    44 fi
    44 fi
    53     if (scala_vars re.scala)
    53     if (scala_vars re.scala)
    54     then
    54     then
    55 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out 
    55 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out 
    56 	tsts=$(( 1 ))
    56 	tsts=$(( 1 ))
    57     else
    57     else
    58 	echo -e "  --> success" >> $out
    58 	echo -e "  --> passed" >> $out
    59 	tsts=$(( 0 )) 
    59 	tsts=$(( 0 )) 
    60     fi
    60     fi
    61 fi
    61 fi
    62 
    62 
    63 
    63