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