tinycobol/test.code
Nilo Roberto C Paim 945dd1a809 version 0.73.0 2023-07-14 12:15:30 -03:00
..
00_FernandoWuthstrack version 0.73.0 2023-07-14 12:15:30 -03:00
ReportGen version 0.73.0 2023-07-14 12:15:30 -03:00
config version 0.73.0 2023-07-14 12:15:30 -03:00
copybooks version 0.73.0 2023-07-14 12:15:30 -03:00
esql version 0.73.0 2023-07-14 12:15:30 -03:00
t00 version 0.73.0 2023-07-14 12:15:30 -03:00
t01 version 0.73.0 2023-07-14 12:15:30 -03:00
t02 version 0.73.0 2023-07-14 12:15:30 -03:00
t03 version 0.73.0 2023-07-14 12:15:30 -03:00
t04 version 0.73.0 2023-07-14 12:15:30 -03:00
t05 version 0.73.0 2023-07-14 12:15:30 -03:00
t06 version 0.73.0 2023-07-14 12:15:30 -03:00
t07 version 0.73.0 2023-07-14 12:15:30 -03:00
t08 version 0.73.0 2023-07-14 12:15:30 -03:00
t09 version 0.73.0 2023-07-14 12:15:30 -03:00
t10 version 0.73.0 2023-07-14 12:15:30 -03:00
t11 version 0.73.0 2023-07-14 12:15:30 -03:00
t12 version 0.73.0 2023-07-14 12:15:30 -03:00
t13 version 0.73.0 2023-07-14 12:15:30 -03:00
t14 version 0.73.0 2023-07-14 12:15:30 -03:00
t15 version 0.73.0 2023-07-14 12:15:30 -03:00
t16 version 0.73.0 2023-07-14 12:15:30 -03:00
t17 version 0.73.0 2023-07-14 12:15:30 -03:00
t18 version 0.73.0 2023-07-14 12:15:30 -03:00
t19 version 0.73.0 2023-07-14 12:15:30 -03:00
t20 version 0.73.0 2023-07-14 12:15:30 -03:00
t21 version 0.73.0 2023-07-14 12:15:30 -03:00
t22 version 0.73.0 2023-07-14 12:15:30 -03:00
t23 version 0.73.0 2023-07-14 12:15:30 -03:00
t24 version 0.73.0 2023-07-14 12:15:30 -03:00
t25 version 0.73.0 2023-07-14 12:15:30 -03:00
t26 version 0.73.0 2023-07-14 12:15:30 -03:00
t27 version 0.73.0 2023-07-14 12:15:30 -03:00
t28 version 0.73.0 2023-07-14 12:15:30 -03:00
t29 version 0.73.0 2023-07-14 12:15:30 -03:00
t30 version 0.73.0 2023-07-14 12:15:30 -03:00
t31 version 0.73.0 2023-07-14 12:15:30 -03:00
t32 version 0.73.0 2023-07-14 12:15:30 -03:00
t33 version 0.73.0 2023-07-14 12:15:30 -03:00
t34 version 0.73.0 2023-07-14 12:15:30 -03:00
t35 version 0.73.0 2023-07-14 12:15:30 -03:00
t36 version 0.73.0 2023-07-14 12:15:30 -03:00
tdb01 version 0.73.0 2023-07-14 12:15:30 -03:00
tdb02 version 0.73.0 2023-07-14 12:15:30 -03:00
tdb03 version 0.73.0 2023-07-14 12:15:30 -03:00
tgui01 version 0.73.0 2023-07-14 12:15:30 -03:00
tgui02 version 0.73.0 2023-07-14 12:15:30 -03:00
.cvsignore 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
Makefile.2.tmpl version 0.73.0 2023-07-14 12:15:30 -03:00
Makefile.3.tmpl version 0.73.0 2023-07-14 12:15:30 -03:00
Makefile.in version 0.73.0 2023-07-14 12:15:30 -03:00
Makefile.old version 0.73.0 2023-07-14 12:15:30 -03:00
Makefile.tmpl 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
mak.sh version 0.73.0 2023-07-14 12:15:30 -03:00
makrc version 0.73.0 2023-07-14 12:15:30 -03:00
maktc.bat version 0.73.0 2023-07-14 12:15:30 -03:00
r.sh.tmpl version 0.73.0 2023-07-14 12:15:30 -03:00

Readme.txt

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