Mention the tests directory.

* README.win32: Mention the tests directory.

	* glib.def: Add the functions from grand.c.

	* glibconfig.h.win32: Add unsigned max values, and the format
 	strings.

	* makefile.msc: Add grand.

	* tests/{date-test,node-test}.c: Include <stdlib.h> for exit().

	* tests/makefile.msc: New file.
This commit is contained in:
Tor Lillqvist
1999-04-13 21:05:08 +00:00
parent 3aa65d30eb
commit fb55f0056e
16 changed files with 217 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <locale.h>
#include <time.h>

54
tests/makefile.msc Normal file
View File

@@ -0,0 +1,54 @@
## Makefile for building the GLib test programs with Microsoft C
## Use: nmake -f makefile.msc all
################################################################
# Nothing much configurable below
# cl -? described the options
CC = cl -G5 -GF -Ox -W3 -MD -nologo
# No general LDFLAGS needes
LDFLAGS = /link
INSTALL = copy
GLIB_VER = 1.3
CFLAGS = -I.. -DHAVE_CONFIG_H
TESTS = \
array-test.exe \
date-test.exe \
dirname-test.exe\
hash-test.exe \
list-test.exe \
node-test.exe \
queue-test.exe \
rand-test.exe \
relation-test.exe\
slist-test.exe \
stack-test.exe \
string-test.exe \
strfunc-test.exe\
tree-test.exe \
type-test.exe
all : $(TESTS)
.c.exe :
$(CC) $(CFLAGS) -c $<
$(CC) $(CFLAGS) -Fe$@ $< ..\glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
check: all
for %p in ($(TESTS)) do %p
clean:
del *.exe
del *.obj
del *.dll
del *.lib
del *.err
del *.map
del *.sym
del *.exp
del *.pdb

View File

@@ -32,6 +32,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>