30 lines
979 B
Plaintext
30 lines
979 B
Plaintext
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
|