tinycobol/test.code/Readme.txt

132 lines
3.6 KiB
Plaintext

How to make (build) sample test programs:
------------------------------------------------------------------------------
If htcobol is located in the development directories use the mak.sh script
located in the test.code directory or use the resource script mak.rc to set
the environment variables in the current terminal.
. mak.rc
OR
Example (test.code/t01):
../mak.sh test01d - to build test01d
../mak.sh - to build all in t01
If htcobol has been installed in one of the normal bin directories, use the
Makefile located in the individual test directory.
Example (test.code/t03):
make test03 - to build test03
make all - to build all
make - to build all
To clean type make clean.
Note that for file IO programs, the library DB name in the Makefiles,
may require to be changed, depending on what versions the RTS was
compiled with.
For example, Linux RH 7.x will require users change the library name from
'-ldb' to '-ldb2' or '-ldb3'.
How to run sample test programs:
------------------------------------------------------------------------------
From the individual test directory type program-name.
For program located in t25 use rt.sh to set the LD_LIBRARY_PATH environmental
variable.
Sample test programs:
------------------------------------------------------------------------------
t00: ACCEPT/DISPLAY statement.
t01: Math verbs tests ADD, SUBTRACT, MULTIPLY, DIVIDE, COMPUTE.
t02: PERFORM and COPY/COPY REPLACING statements.
t03: ACCEPT/DISPLAY statement from DATE/DISPLAY, stdin/stdout.
t04: Indexed file I/O .
t05: Branching(Simple PERFORMs and WITH TEST AFTER/BEFORE option).
t06: Indexed file I/O.
t07: Calling C and COBOL programs from COBOL.
t08: Indexed file I/O and Sorting.
t09: Program to test MOVE verb with reference modification.
t10: Sequential and line sequential file I/O.
t11: Sequential file and screen I/O.
t12: Indexed file I/O.
t13: Indexed file I/O.
t14: STRING, UNSTRING and INSPECT statements.
t15: Calling (Reference Value) C and COBOL programs from COBOL.
t16: GO TO label-1 ... label-n DEPENDING ON variable .
t17: ACCEPT FROM command line, environment variables. Set RETURN-CODE variable.
t18: Indexed file I/O.
t19: Multi sequential file I/O with run time file name using command
line arguments. And external file name assignments using non-standard
extensions in SELECT and FD statements.
t20: SEARCH and SEARCH ALL statements.
t21: COBOL-85 scope delimiters (END-*) and in-line PERFORM tests.
t22: IF/ELSE conditional statements test.
t23: ACCEPT/DISPLAY Screens.
t24: EVALUATE statement.
t25: Tests on creating and using static and shared libraries using C functions
and COBOL sub-programs.
t26: Program to test the ACCEPT/DISPLAY LINE POSITION statement.
t27: Program to test REPORT generator and statements.
t28: Program to test USAGE POINTER types.
t29: The CORRESPONDING option of the MOVE, ADD, SUBTRACT statements.
t30: Nested-source-programs and a sequence of source programs.
t31: Variable record size file IO.
t32: Variable size and multi-dimentional arrays.
t33: CALL statement using dynamic calls.
t34: CHAIN statement, CHAINING procedure.
t35: Intrinsic functions.
t36: Write 'WITH LOCK'.
tdb01: A C program to test file I/O using libdb.
tdb02: Sample programs to test SQL interface.
tdb03: Sample programs to test CGI interface.
tgui01: Program to test GUI using tcl/tk.
tgui02: Examples on how to integrate TC programs with a Win32 GUI front end.
ReportGen: Sample report generator extensions.
esql: Sample ESQL Code for Use with Firebirdsql from http://www.firebirdsql.org