Version: 1.1.6
Date: 2016/01/13

This directory contains programs to test the libc functions.

The programs may be built for several operating environments as follows:

$ make		- Make for DX10 SCI (default mode of operation).
$ make dnos	- Make for DNOS SCI.
$ make txds	- Make for TXDS.
$ make os	- Make for DX10/DNOS/TX990 OS.
$ make sa	- Make for standalone operation (no OS support).

The program must be run under the appropriate environment. For example to run
a standalone program under the sim990 simulator:

$ sim990 hello5.exe
TI 990 Simulator 1.6.6: /4 CPU 56K
Enter program args: 30 20 10
saprog: Hello World!
arg[1] = 30
arg[2] = 20
arg[3] = 10


The programs are:

hello1.c	- Tests strcpy, strcat and puts
hello2.c	- Tests fgets, fflush and fputs
hello3.c	- Prints args using strcpy, strcat and puts
hello4.c	- Prints args using sprintf and puts; sprintf of long value
hello5.c	- Prints args using printf
hello6.c	- Prints args using printf and uses argv[1] as loop index test
testcalc.c	- Prints double, float and long values; also functions
testctype.c	- Tests ctype, tolower and toupper functions.
testdir.c	- Test opendir/readdir/closedir routines (1)
testexp.c	- Test exp() and pow().
testfact.c	- Prints a factorial in decimal and HEX
testfrexp.c	- Test the frexp function
testgetenv.c	- Tests getenv() function (2)
testio1.c	- Tests open, close and read of file (1)
testio2.c	- Tests open, close, read and write of file (1)
testio3.c	- Tests fopen, fclose and fgets of file (1)
testio4.c	- Tests fopen, fclose, fgets and fputs of file (1)
testio5.c	- Tests fopen, fclose and fgetc of file (1)
testio6.c	- Tests fopen, fclose, fgetc and fputc of file (1)
testio7.c	- Tests fopen, fclose, fgetc of file and prints chars in hex (1)
testio8.c	- Tests fopen, fclose, fread and fwrite of binary data (1)
testio9.c	- Tests unlink (1)
testio10.c	- Tests rename (1)
testio11.c	- Tests lseek (1)
testmalloc1.c	- Tests malloc and free, user specifies values
testmalloc2.c	- Tests malloc and free, fixed values
testpid.c	- Test getpid (1) routines
testrand.c	- Test srand/rand routines
testrela.c	- Test floating point relations
testsleep.c	- Tests sleep (1)
testsqrt.c	- Tests sqrt function
teststat.c	- Tests stat function (1)
testtime.c	- Tests time and localtime (1)
testtmpfile.c	- Tests tmpfile() function (2)
testtrig.c	- Tests trig functions

(1) - Does not run in standalone mode
(2) - Supported only on DX10 and DNOS
