main_testing5/bf_test.sh
changeset 352 97bcf8efe4e0
parent 348 b5b6ed38c2f2
child 376 6cc36d0ef79e
equal deleted inserted replaced
351:591b9005157e 352:97bcf8efe4e0
    32 # compilation test
    32 # compilation test
    33 echo -e "bf.scala runs?" >> $out
    33 echo -e "bf.scala runs?" >> $out
    34 
    34 
    35 if (scala_compile bf.scala)
    35 if (scala_compile bf.scala)
    36 then
    36 then
    37     echo -e "  --> success" >> $out
    37     echo -e "  --> passed" >> $out
    38     tsts1=$(( 0 ))
    38     tsts1=$(( 0 ))
    39 else
    39 else
    40     echo -e "  --> SCALA DID NOT RUN BF.SCALA\n" >> $out
    40     echo -e "  --> SCALA DID NOT RUN BF.SCALA\n" >> $out
    41     tsts1=$(( 1 )) 
    41     tsts1=$(( 1 )) 
    42 fi
    42 fi
    52     if (scala_vars bf.scala)
    52     if (scala_vars bf.scala)
    53     then
    53     then
    54 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out  
    54 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out  
    55 	tsts1=$(( 1 ))
    55 	tsts1=$(( 1 ))
    56     else
    56     else
    57 	echo -e "  --> success" >> $out
    57 	echo -e "  --> passed" >> $out
    58 	tsts1=$(( 0 )) 
    58 	tsts1=$(( 0 )) 
    59     fi
    59     fi
    60 fi
    60 fi
    61 
    61 
    62 
    62