head	1.20;
access;
symbols;
locks; strict;
comment	@# @;


1.20
date	2001.07.20.09.53.38;	author simons;	state dead;
branches;
next	1.19;

1.19
date	2001.07.20.09.22.26;	author simons;	state Exp;
branches;
next	1.18;

1.18
date	2001.07.19.15.20.47;	author simons;	state Exp;
branches;
next	1.17;

1.17
date	2001.07.19.15.18.50;	author simons;	state Exp;
branches;
next	1.16;

1.16
date	2001.07.19.15.13.40;	author simons;	state Exp;
branches;
next	1.15;

1.15
date	2001.07.19.14.58.28;	author simons;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.18.19.03.17;	author simons;	state Exp;
branches;
next	1.13;

1.13
date	2001.07.18.17.38.37;	author simons;	state Exp;
branches;
next	1.12;

1.12
date	2001.07.18.16.59.28;	author simons;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.18.11.29.46;	author simons;	state Exp;
branches;
next	1.10;

1.10
date	2001.07.16.18.38.53;	author simons;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.09.19.09.42;	author simons;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.09.17.44.47;	author simons;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.09.17.16.30;	author simons;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.08.16.02.56;	author simons;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.08.15.22.00;	author simons;	state Exp;
branches;
next	1.4;

1.4
date	2001.07.08.14.05.03;	author simons;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.04.16.12.14;	author simons;	state Exp;
branches;
next	1.2;

1.2
date	2001.07.04.15.55.06;	author simons;	state Exp;
branches;
next	1.1;

1.1
date	2001.07.04.15.09.55;	author simons;	state Exp;
branches;
next	;


desc
@@


1.20
log
@Added skeleton autoconf support.
@
text
@# Build and run the regression tests.

CC		= gcc

WARNFLAGS	= -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline \
		  -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long \
		  -Werror
OPTFLAGS	= -O3 -pipe
CPPFLAGS	= -D_GNU_SOURCE
CFLAGS		=
LDFLAGS		= -L..

TESTS		= xds-core.exe xds-find-engine.exe xds-register.exe xds-encode.exe \
		  xds-getbuffer.exe xds-decode.exe xds-setbuffer.exe xds-engine-restart.exe \
		  xdr-uint32.exe xdr-int32.exe xdr-uint64.exe xdr-int64.exe  \
		  xdr-octetstream.exe xdr-octetstream-empty.exe xdr-string.exe \
		  xdr-string-empty.exe xds-mystruct.exe

.SUFFIXES:
.SUFFIXES:	.c .exe

.c.exe:
	$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< -lxds

.cpp.exe:
	$(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@@ $< -lxds

all:	$(TESTS)

check:	all
	@@./.run-tests $(TESTS)

../libxds.a:
	(cd .. && $(MAKE) libxds.a)
clean::
	rm -f $(TESTS) *.log

# Dependencies

$(TESTS): ../libxds.a
@


1.19
log
@People who know how to spell clearly have an advantage.
@
text
@@


1.18
log
@Added test suite for handling of empty strings.
@
text
@d16 1
a16 1
		  xdr-octedstream.exe xdr-octedstream-empty.exe xdr-string.exe \
@


1.17
log
@Added test suite that verifies the correct handling of
encoding/decoding octed streams with length 0.
@
text
@d17 1
a17 1
		  xds-mystruct.exe
@


1.16
log
@Implemented XDR encoding and decoding of strings.
@
text
@d16 2
a17 1
		  xdr-octedstream.exe xdr-string.exe xds-mystruct.exe
@


1.15
log
@Implemented encoding and decoding of variable length octed streams.
@
text
@d16 1
a16 1
		  xdr-octedstream.exe xds-mystruct.exe
@


1.14
log
@Added test suite that will verify that it is okay to call xds_encode()
in an encoding engine and xds_decode() in a decoding engine.
@
text
@d15 2
a16 2
		  xdr-uint32.exe xdr-int32.exe xdr-uint64.exe xdr-int64.exe \
		  xds-mystruct.exe
@


1.13
log
@When an engine is restarted after buffer enlargement, the original
value of the ap_list must be restored. Fixed that bug and added a test
suite that verifies this behavior.
@
text
@d15 2
a16 1
		  xdr-uint32.exe xdr-int32.exe xdr-uint64.exe xdr-int64.exe
@


1.12
log
@Implemented encoding routines for 64 bit integers and added the
apropriate test suites.
@
text
@d14 1
a14 1
		  xds-getbuffer.exe xds-decode.exe xds-setbuffer.exe \
@


1.11
log
@Added test suites for the encoding of int32 and uint32 values in XDR.
@
text
@d5 3
a7 1
WARNFLAGS	= -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wcast-align -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Werror
d15 1
a15 1
		  xdr-uint32.exe xdr-int32.exe
@


1.10
log
@Added test suite for xds_setbuffer().
@
text
@d12 2
a13 1
		  xds-getbuffer.exe xds-decode.exe xds-setbuffer.exe
@


1.9
log
@Added test suite for xds_decode().
@
text
@d7 1
a7 1
CPPFLAGS	=
d12 1
a12 1
		  xds-getbuffer.exe xds-decode.exe
@


1.8
log
@Added more aggressive warning flags.
@
text
@d12 1
a12 1
		  xds-getbuffer.exe
@


1.7
log
@Added test suite for xds_getbuffer().
@
text
@d5 1
a5 1
WARNFLAGS	= -Wall -ansi -pedantic -Werror
@


1.6
log
@Added preliminary version of the xds-encode test case.
@
text
@d11 2
a12 1
TESTS		= xds-core.exe xds-find-engine.exe xds-register.exe xds-encode.exe
@


1.5
log
@xds_find_engine() can now handle a NULL pointer for "engines" as long
as "last" is set correctly to 0. This is necessary so that we don't
have to allocate an array before we actually have any entries.
@
text
@d11 1
a11 1
TESTS		= xds-core.exe xds-find-engine.exe xds-register.exe xds-callback-semantics.exe
@


1.4
log
@- Added xds-find-engine and xds-register tests.
- Made tests depend on ../libxds.a.
@
text
@d11 1
a11 1
TESTS		= xds-core.exe xds-find-engine.exe xds-register.exe
@


1.3
log
@Tests programs now depend on ../libxds.a.
@
text
@d11 1
a11 1
TESTS		= core.exe
d27 2
d34 1
a34 1
$(TESTS):	../libxds.a
@


1.2
log
@Added first attempt of a regression test suite. Currently the library
does not survive the very first test. :-)
@
text
@d31 2
@


1.1
log
@Added regression test suite.
@
text
@d5 1
a5 1
WARNFLAGS	= -Wall -ansi -pedantic
d9 1
a9 1
LDFLAGS		=
d11 1
a11 1
TESTS		= test1.exe
d17 1
a17 1
	$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $<
d20 1
a20 1
	$(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@@ $<
d25 1
a25 1
	./.run-tests *.exe
@

