Previous Topic Next topic Print topic


Compiling Tests

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

Windows:

cbllink -D mytestfixture.cbl

UNIX:

cob -z mytestfixture.cbl

Once it is compiled, you must run the resulting file from the command line or 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