Previous Topic Next topic Print topic


Compiling Tests

The COBOL program that contains your test case(s) must be compiled to .so before it can run.

cob -z mytestfixture.cbl

Once it is compiled, you must run the resulting file from the shell.

Procedural managed code

You must compile the procedural managed COBOL programs as .dll using the JVMGEN (sub) Compiler directive. For example:

mkdir bin    
cobol myunittest.cbl jvmgen(sub);
mfprogmap -directory bin
jar -cvf myunittest.jar -C bin .
mfurunj myunittest.jar
Previous Topic Next topic Print topic