Class AutoCGFMIMANoInlineTests


  • public class AutoCGFMIMANoInlineTests
    extends AutoCGTests
    Run the Ptolemy model tests in the auto/ directory using Functional Mock-up Interface Master Algorithm (FMIMA) code generation under JUnit.

    This test must be run from the directory that contains the auto/ directory, for example:

     (cd $PTII/ptolemy/cg/kernel/generic/program/procedural/fmima/test/; java -classpath ${PTII}:${PTII}/lib/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/lib/JUnitParams-0.4.0.jar:${PTII}/lib/jna-4.0.0-variadic.jar  org.junit.runner.JUnitCore ptolemy.cg.kernel.generic.program.procedural.fmima.test.junit.JUnitCGFMIMATest)
     

    This test uses JUnitParams from http://code.google.com/p/junitparams/, which is released under Apache License 2.0.

    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Christopher Brooks
    Pt.AcceptedRating:
    Red (cxh)
    Pt.ProposedRating:
    Red (cxh)
    • Constructor Detail

      • AutoCGFMIMANoInlineTests

        public AutoCGFMIMANoInlineTests()
    • Method Detail

      • setUp

        public void setUp()
                   throws java.lang.Throwable
        Find the ptolemy.cg.kernel.generic.GenericCodeGenerator class and its generateCode static method that takes an array of strings.
        Overrides:
        setUp in class AutoCGTests
        Throws:
        java.lang.Throwable - If the class or constructor cannot be found.
      • runModelNoInline

        public void runModelNoInline​(java.lang.String fullPath)
                              throws java.lang.Throwable
        Generate, compile and run non-inline code for a model.
        Parameters:
        fullPath - The full path to the model file to be executed. If the fullPath ends with the value of the ModelTests.THERE_ARE_NO_AUTO_TESTS, then the method returns immediately.
        Throws:
        java.lang.Throwable - If thrown while executing the model.