tinycobol/cobpp/test.code
Nilo Roberto C Paim 945dd1a809 version 0.73.0 2023-07-14 12:15:30 -03:00
..
Makefile version 0.73.0 2023-07-14 12:15:30 -03:00
Readme.txt version 0.73.0 2023-07-14 12:15:30 -03:00
ft1.cob version 0.73.0 2023-07-14 12:15:30 -03:00
ft2.cob version 0.73.0 2023-07-14 12:15:30 -03:00
ft3.cob version 0.73.0 2023-07-14 12:15:30 -03:00
r.sh version 0.73.0 2023-07-14 12:15:30 -03:00
t1.cob version 0.73.0 2023-07-14 12:15:30 -03:00
t2.cob version 0.73.0 2023-07-14 12:15:30 -03:00
t3.cob version 0.73.0 2023-07-14 12:15:30 -03:00

Readme.txt

TC pre-processor test COBOL programs.

How to run test program:
r.sh - will test run for all programs
or 
r.sh [ -f|x(format) f=fixed x=open filename(s)] - will run selected file 

The shell script will run make and create a trace files *.trace.txt.

To run type(example) - no suffix required .cob is assumed:
r.sh -f ft3

To clean type make clean.

Notes:
make program may not work. 
Some copybooks require that the 'TESTLIB' environment variable be defined.

TESTLIB='../copybooks'
export TESTLIB 

fixed: -f
../htcobolpp -v -d -I ../copybooks -f ft1.cob -o ft1-1.cob -p ft1.cob.txt 2>trace.ft1.2.txt
../htcobolpp -v -d -I ../copybooks -f ft2.cob -o ft2-1.cob -p ft2.cob.txt 2>trace.ft2.2.txt
../htcobolpp -v -d -I ../copybooks -f ft3.cob -o ft3-1.cob -p ft3.cob.txt 2>trace.ft3.2.txt

open: -x
../htcobolpp -v -d -I ../copybooks -x t1.cob -o t1-1.cob -p t1.cob.txt 2>trace.t1.2.txt   
../htcobolpp -v -d -I ../copybooks -x t2.cob -o t2-1.cob -p t2.cob.txt 2>trace.t2.2.txt