pre_testing2/docdiff_test.sh
changeset 352 97bcf8efe4e0
parent 346 663c2a9108d1
child 376 6cc36d0ef79e
equal deleted inserted replaced
351:591b9005157e 352:97bcf8efe4e0
    36 
    36 
    37 echo -e "docdiff.scala runs?" >> $out
    37 echo -e "docdiff.scala runs?" >> $out
    38 
    38 
    39 if (scala_compile docdiff.scala)
    39 if (scala_compile docdiff.scala)
    40 then
    40 then
    41     echo -e "  --> success" >> $out
    41     echo -e "  --> passed" >> $out
    42     tsts=$(( 0 ))
    42     tsts=$(( 0 ))
    43 else
    43 else
    44     echo -e "  --> SCALA DID NOT RUN docdiff.scala\n" >> $out
    44     echo -e "  --> SCALA DID NOT RUN docdiff.scala\n" >> $out
    45     tsts=$(( 1 )) 
    45     tsts=$(( 1 )) 
    46 fi
    46 fi
    55    if (scala_vars docdiff.scala)
    55    if (scala_vars docdiff.scala)
    56    then
    56    then
    57       echo -e "  --> FAIL (make triple-sure your program conforms to the required format)\n" >> $out
    57       echo -e "  --> FAIL (make triple-sure your program conforms to the required format)\n" >> $out
    58       tsts=$(( 1 ))
    58       tsts=$(( 1 ))
    59    else
    59    else
    60       echo -e "  --> success" >> $out
    60       echo -e "  --> passed" >> $out
    61       tsts=$(( 0 )) 
    61       tsts=$(( 0 )) 
    62    fi
    62    fi
    63 fi
    63 fi
    64 
    64 
    65 ### docdiff clean tests
    65 ### docdiff clean tests