mmitch / cobol-build

COBOL build system that supports cobol-unit-test and Travis CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support testing of subprograms

FrankR85 opened this issue · comments

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 original run-ut script.
  • The module-under-test must not be compiled with cobc -xbut with cobc -m instead, because the resulting object should be a loadable module.

see cobol/static_call/test for an example