Class JUnitAuto32Base

  • Direct Known Subclasses:
    JUnitAuto32Test

    public class JUnitAuto32Base
    extends java.lang.Object
    Run the 32-bit Java tests in auto/.

    Derived classes should have a method that calls super.run().

    If the fileName JVM property is set, then the file named by that property is sourced. Otherwise, the testDefs.tcl file is sourced and the doallTests Tcl proc that is defined in $PTII/util/testsuite/testDefs.tcl is invoked and then any models in the auto/ directory are invoked.

    For example, ptolemy.kernel.test.junit.JUnitTclTest extends this class. To run one test file (Port.tcl):

     cd $PTII
     java -DfileName=Port.tcl -classpath ${PTII}:${PTII}/bin/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.kernel.test.junit.JUnitAut32Base
     

    To run all the .tcl files in the directory above this directory:

     cd $PTII
     java -classpath ${PTII}:${PTII}/bin/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.3.0.jar org.junit.runner.JUnitCore ptolemy.kernel.test.junit.JUnitAuto32Base
     
    Since:
    Ptolemy II 10.0
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnitAuto32Base()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JUnitAuto32Base

        public JUnitAuto32Base()