Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran-dev] RefactoringTestCase#compileAndRunFortranProgram

I implemented a new method in RefactoringTestCase which will take the current Fortran sources you are refactoring, compile them, run the resulting executable, and return the output.

You can call this before and after refactoring to ensure that the refactoring actually preserves behavior (and generates error-free code) for your test cases.

See ExtractProcTestCase or IntroImplicitTestCase for examples.

The environment variables COMPILER and EXECUTABLE need to be set during the JUnit run, and it may be necessary to manually flush the output of the Fortran program; see the JavaDoc for details.

Jeff


Back to the top