Support testing of subprograms
FrankR85 opened this issue · comments
FrankR85 commented
The testing framework supports testing of subprograms.
If we also want to support this with make
we need some modifications:
- The driver program has to be provided by the user. The makefile needs to know what file is the driver program and compile it with
cobc -x
. - When running the tests, not the module-under-test has to be invoked, but the driver program. This is abstracted away by the
-s
parameter in the originalrun-ut
script. - The module-under-test must not be compiled with
cobc -x
but withcobc -m
instead, because the resulting object should be a loadable module.
Christian Garbs commented
see cobol/static_call/test
for an example