head	1.18;
access;
symbols
	sync1:1.13;
locks; strict;
comment	@# @;


1.18
date	94.06.25.00.43.46;	author aoki;	state Exp;
branches;
next	1.17;

1.17
date	94.04.04.08.47.16;	author aoki;	state Exp;
branches;
next	1.16;

1.16
date	94.02.16.03.14.34;	author aoki;	state Exp;
branches;
next	1.15;

1.15
date	94.02.15.09.58.54;	author aoki;	state Exp;
branches;
next	1.14;

1.14
date	93.09.28.02.40.08;	author aoki;	state Exp;
branches;
next	1.13;

1.13
date	93.08.13.19.58.13;	author aoki;	state Exp;
branches;
next	1.12;

1.12
date	93.08.06.22.32.46;	author kristin;	state Exp;
branches;
next	1.11;

1.11
date	93.07.30.09.41.08;	author aoki;	state Exp;
branches;
next	1.10;

1.10
date	93.07.30.09.22.24;	author aoki;	state Exp;
branches;
next	1.9;

1.9
date	93.07.28.23.43.56;	author aoki;	state Exp;
branches;
next	1.8;

1.8
date	93.07.02.03.04.36;	author aoki;	state Exp;
branches;
next	1.7;

1.7
date	93.06.25.22.38.30;	author marc;	state Exp;
branches;
next	1.6;

1.6
date	93.06.25.22.12.02;	author marc;	state Exp;
branches;
next	1.5;

1.5
date	93.03.12.19.44.16;	author aoki;	state Exp;
branches;
next	1.4;

1.4
date	93.03.10.01.58.35;	author marc;	state Exp;
branches;
next	1.3;

1.3
date	93.02.19.23.02.41;	author aoki;	state Exp;
branches;
next	1.2;

1.2
date	93.01.27.00.35.37;	author marc;	state Exp;
branches;
next	1.1;

1.1
date	93.01.09.01.29.18;	author aoki;	state Exp;
branches;
next	;


desc
@@


1.18
log
@would re-run tests if they failed before creating all outputs
@
text
@#
# $Header: Makefile,v 1.17 94/04/04 08:47:16 aoki Exp $
#

.include <postgres.global.mk>

#
# try locating libpq.a in the following places (bletch...)
#
L1= ${.CURDIR}/../../libpq/${MAKEOBJDIR}/libpq.a
L2= ${.CURDIR}/../../libpq/libpq.a
L3= ${LIBDIR}/libpq.a
L4= ${.CURDIR}/../../../lib/libpq.a

.if exists(${L1})
LIBPQ= ${L1}
.elif exists(${L2})
LIBPQ= ${L2}
.elif exists(${L3})
LIBPQ= ${L3}
.elif exists(${L4})
LIBPQ= ${L4}
.elifmake all || runtest
.BEGIN:
        @@echo "regress: Makefile error: can't find where you installed libpq.a,"
        @@echo 'try running "bmake all install" again.'
${PROG}: STOP_THE_MAKEFILE
        false
.endif

LDADD+= ${LIBPQ}

#
# build sample apps
#

TESTPROGS= iportal aportal

TESTOBJS= iportal.o aportal.o

iportal: iportal.o
	${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} ${LDADD}

aportal: aportal.o
	${CC} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} ${LDADD}

.include <postgres.prog.mk>

#
# build dynamically-loaded object files
#
DLOBJS= regress.o ufp1.o ufp2.o ufp3.o

#
# ... plus test query inputs
#
CREATEFILES= ${DLOBJS} \
	${TESTPROGS} \
	${TESTOBJS} \
	create.pq queries.pq errors.pq destroy.pq \
	aportalcreate.pq aportalappend.pq \
	fstest.sh aportaltest.sh

#
# ... plus exports files
#
.if defined(EXPSUFF)
CREATEFILES+= ${DLOBJS:S/.o/${EXPSUFF}/g}
.  if (${PORTNAME} == "aix")
UFP: .USE
	${LD} -H512 -T512 -o ${.TARGET} -e _nostart \
		-bI:${LIBDIR}/pg_ufp.exp -bE:$*${EXPSUFF} $*.o \
		-lm -lc 2>/dev/null
ufp1.so: $*.o $*.exp UFP
ufp2.so: $*.o $*.exp UFP
ufp3.so: $*.o $*.exp UFP
.  endif
.endif

#
# ... plus shared libraries
#
.if defined(SLSUFF)
.  if (${SLSUFF} != ".o")
CREATEFILES+= ${DLOBJS:S/.o/${SLSUFF}/g}
.    if (${PORTNAME} == "alpha")
CLEANFILES+= so_locations
.    endif
.  endif
.endif

OUTFILES= stud_emp.data onek.data regress.out aportal.out
CLEANFILES+= ${CREATEFILES} ${OUTFILES}

${OUTFILES}: ${CREATEFILES} ${PROG}
	${SHCMD} ${.CURDIR}/regress.sh 2>&1 | tee regress.out
	@@echo "RESULTS OF REGRESSION ARE SAVED IN ${MAKEOBJDIR}/regress.out"

#
# prepare to run the test (including clean-up after the last run)
#
all: ${CREATEFILES}
	rm -f ${OUTFILES}

#
# run the test
#
runtest: regress.out
@


1.17
log
@get rid of extra clutter
@
text
@d2 1
a2 1
# $Header: /usr/local/devel/postgres/src/regress/regress/RCS/Makefile,v 1.17 1994/04/04 08:45:09 aoki Exp $
d108 1
a108 1
runtest: ${OUTFILES}
@


1.16
log
@testprog .o's in the wrong target
@
text
@d2 1
a2 1
# $Header: /usr/local/devel/postgres/src/regress/regress/RCS/Makefile,v 1.15 1994/02/15 09:58:54 aoki Exp aoki $
d86 3
d92 1
a92 1
OUTFILES= stud_emp.data onek.data regress.out
@


1.15
log
@add notify stuff
@
text
@d2 1
a2 1
# $Header: /import/faerie/faerie/aoki/postgres/src/regress/regress/RCS/Makefile,v 1.14 1993/09/28 02:40:08 aoki Exp aoki $
d39 2
d52 1
a52 1
DLOBJS= regress.o ufp1.o ufp2.o ufp3.o iportal.o aportal.o
d59 1
@


1.14
log
@aix
@
text
@d2 1
a2 1
# $Header$
a31 2
PROG= iportal
SRCS= iportal.c
d33 12
d50 1
a50 1
DLOBJS= regress.o ufp1.o ufp2.o ufp3.o
d56 1
d58 2
a59 1
	fstest.sh
d96 1
a96 1
all: ${CREATEFILES} ${PROG}
@


1.13
log
@pawed over results by hand, looks ok
@
text
@d2 1
a3 3
#  To run the regression tests type 'bmake runtest'
#
#
d37 3
d41 4
d48 15
a62 3
.if (${SLSUFF} != ".o")
SLOBJS= ${DLOBJS:S/.o/${SLSUFF}/g}
CREATEFILES+= ${SLOBJS}
d64 10
d81 3
d87 3
@


1.12
log
@tell user how to run regression test
@
text
@@


1.11
log
@more shared lib changes
@
text
@d1 6
@


1.10
log
@changed for generation of shared libraries
@
text
@d37 1
a37 1
.ifdef SLSUFF
@


1.9
log
@MAKEOBJDIR changes
@
text
@d33 2
a34 2
CREATEFILES+= \
	regress.o ufp1.o ufp2.o ufp3.o \
d37 4
@


1.8
log
@added SRCS so that compilation uses LDFLAGS :-P
@
text
@d6 1
a6 1
L1= ${.CURDIR}/../../libpq/obj/libpq.a
d42 1
a42 1
	@@echo "RESULTS OF REGRESSION ARE SAVED IN obj/regress.out"
@


1.7
log
@always better the second time around...
@
text
@d29 1
@


1.6
log
@only complain if target is "all" or "runtest" so we don't generate error messages
whem doing such things as makeing obj/ directories or cleaning the directory etc.
@
text
@d19 1
a19 1
.elif target(all) || target(runtest)
d21 4
a24 2
	echo 'Error: can't find where you installed libpq.a,'
	echo 'try running "bmake all install" again.'
@


1.5
log
@added support for inversion tests
@
text
@d19 1
a19 1
.else
@


1.4
log
@Search for libpq.a
@
text
@d32 2
a33 1
	create.pq queries.pq errors.pq destroy.pq
@


1.3
log
@added aggregate tests, xact tests, untrusted function tests
added iportal test program
added security (acl) tests
@
text
@d3 21
a23 1
LIBPQ= ${.CURDIR}/../../libpq/obj/libpq.a
@


1.2
log
@use ${SHCMD} so we can globally pass flags to the shell (and set the PATH)
@
text
@d3 5
d10 3
a12 1
CREATEFILES= regress.o create.pq queries.pq errors.pq destroy.pq
d16 1
a16 1
${OUTFILES}: ${CREATEFILES}
d20 1
a20 1
all: ${CREATEFILES}
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
	sh ${.CURDIR}/regress.sh 2>&1 | tee regress.out
@
