main_testing5/bfc_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 "bfc.scala runs?" >> $out
    33 echo -e "bfc.scala runs?" >> $out
    34 
    34 
    35 if (scala_compile bfc.scala)
    35 if (scala_compile bfc.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 BFC.SCALA\n" >> $out
    40     echo -e "  --> SCALA DID NOT RUN BFC.SCALA\n" >> $out
    41     tsts1=$(( 1 )) 
    41     tsts1=$(( 1 )) 
    42 fi
    42 fi
    43 
    43 
    44 
    44 
    45 # var, return, ListBuffer test
    45 # var, return, ListBuffer test
    51     if (scala_vars bfc.scala)
    51     if (scala_vars bfc.scala)
    52     then
    52     then
    53 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out  
    53 	echo -e "   --> FAIL (make triple-sure your program conforms to the required format)" >> $out  
    54 	tsts1=$(( 1 ))
    54 	tsts1=$(( 1 ))
    55     else
    55     else
    56 	echo -e "  --> success" >> $out
    56 	echo -e "  --> passed" >> $out
    57 	tsts1=$(( 0 )) 
    57 	tsts1=$(( 0 )) 
    58     fi
    58     fi
    59 fi
    59 fi
    60 
    60 
    61 ### bfc tests
    61 ### bfc tests