From 0f90c7a0095c678b1769b05c6773c463d59b54c5 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 21 Jan 1997 01:27:18 +0000 Subject: Rename GNUMakefile to GNUmakefile so gmake finds it. --- src/test/regress/GNUMakefile | 94 -------------------------------------------- src/test/regress/GNUmakefile | 94 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 94 deletions(-) delete mode 100644 src/test/regress/GNUMakefile create mode 100644 src/test/regress/GNUmakefile (limited to 'src') diff --git a/src/test/regress/GNUMakefile b/src/test/regress/GNUMakefile deleted file mode 100644 index 7c3ebcc5434..00000000000 --- a/src/test/regress/GNUMakefile +++ /dev/null @@ -1,94 +0,0 @@ -#------------------------------------------------------------------------- -# -# Makefile-- -# Makefile for regress (the regression test) -# -# Copyright (c) 1994, Regents of the University of California -# -# -# IDENTIFICATION -# $Header: /cvsroot/pgsql/src/test/regress/Attic/GNUMakefile,v 1.1 1997/01/18 08:01:30 bryanh Exp $ -# -#------------------------------------------------------------------------- - -SRCDIR= ../.. -include ../../Makefile.global - -CFLAGS+= -I$(LIBPQDIR) -I../../include - -LDADD+= -L$(LIBPQDIR) -lpq - -# -# DLOBJS is the dynamically-loaded object file. The regression test uses -# this when it does a CREATE FUNCTION ... LANGUAGE 'C'). -# -DLOBJS= regress$(DLSUFFIX) - -# -# ... plus test query inputs -# -# INFILES is the files the regression test uses for input. -INFILES= $(DLOBJS) \ - create.sql queries.sql errors.sql destroy.sql security.sql \ - expected.out -# -# plus exports files -# -ifdef EXPSUFF -INFILES+= $(DLOBJS:.o=$(EXPSUFF)) -endif - -# OUTFILES is the files that get created by running the regression test. -OUTFILES= stud_emp.data onek.data regress.out aportal.out - -# -# prepare to run the test (including clean-up after the last run) -# -all: $(INFILES) - rm -f $(OUTFILES) - -# -# run the test -# -runtest: $(INFILES) expected.out - $(SHELL) ./regress.sh 2>&1 | tee regress.out - @echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out" - -# The expected.input file is part of the distribution. It was made by hand -# from 'regress.out' from a reference run of the regression test, replacing -# installation-dependent things with names like _CWD_. The following rule -# turns those names back into real values for the instant installation to -# create a standard (expected.out) against which to compare regress.out -# from the experimental run. -# -# -expected.out: expected.input - if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \ - if [ -z "$$USER" ]; then USER=`whoami`; fi; \ - if [ -z "$$USER" ]; then echo 'Cannot deduce $USER.'; exit 1; fi; \ - rm -f expected.out; \ - MYTZ=`date | cut -c21`; \ - C="`pwd`"; \ - sed -e "s:_CWD_:$$C:g" \ - -e "s:_OBJWD_:$$C:g" \ - -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \ - -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9] \)[A-Z]\([A-Z][A-Z]\);\1$$MYTZ\2;g" \ - -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] \)[A-Z]\([A-Z][A-Z] [0-9][0-9][0-9][0-9]\);\1$$MYTZ\2;g" \ - -e "s:_USER_:$$USER:g" < expected.input > expected.out - @echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out." - -%.sql: %.source - if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \ - if [ -z "$$USER" ]; then USER=`whoami`; fi; \ - if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \ - rm -f $@; \ - C=`pwd`; \ - sed -e "s:_CWD_:$$C:g" \ - -e "s:_OBJWD_:$$C:g" \ - -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \ - -e "s/_USER_/$$USER/g" < $< > $@ - -clean: - rm -f $(INFILES) - rm -f $(OUTFILES) - diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile new file mode 100644 index 00000000000..52351d688b0 --- /dev/null +++ b/src/test/regress/GNUmakefile @@ -0,0 +1,94 @@ +#------------------------------------------------------------------------- +# +# Makefile-- +# Makefile for regress (the regression test) +# +# Copyright (c) 1994, Regents of the University of California +# +# +# IDENTIFICATION +# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.1 1997/01/21 01:27:18 momjian Exp $ +# +#------------------------------------------------------------------------- + +SRCDIR= ../.. +include ../../Makefile.global + +CFLAGS+= -I$(LIBPQDIR) -I../../include + +LDADD+= -L$(LIBPQDIR) -lpq + +# +# DLOBJS is the dynamically-loaded object file. The regression test uses +# this when it does a CREATE FUNCTION ... LANGUAGE 'C'). +# +DLOBJS= regress$(DLSUFFIX) + +# +# ... plus test query inputs +# +# INFILES is the files the regression test uses for input. +INFILES= $(DLOBJS) \ + create.sql queries.sql errors.sql destroy.sql security.sql \ + expected.out +# +# plus exports files +# +ifdef EXPSUFF +INFILES+= $(DLOBJS:.o=$(EXPSUFF)) +endif + +# OUTFILES is the files that get created by running the regression test. +OUTFILES= stud_emp.data onek.data regress.out aportal.out + +# +# prepare to run the test (including clean-up after the last run) +# +all: $(INFILES) + rm -f $(OUTFILES) + +# +# run the test +# +runtest: $(INFILES) expected.out + $(SHELL) ./regress.sh 2>&1 | tee regress.out + @echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out" + +# The expected.input file is part of the distribution. It was made by hand +# from 'regress.out' from a reference run of the regression test, replacing +# installation-dependent things with names like _CWD_. The following rule +# turns those names back into real values for the instant installation to +# create a standard (expected.out) against which to compare regress.out +# from the experimental run. +# +# +expected.out: expected.input + if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \ + if [ -z "$$USER" ]; then USER=`whoami`; fi; \ + if [ -z "$$USER" ]; then echo 'Cannot deduce $USER.'; exit 1; fi; \ + rm -f expected.out; \ + MYTZ=`date | cut -c21`; \ + C="`pwd`"; \ + sed -e "s:_CWD_:$$C:g" \ + -e "s:_OBJWD_:$$C:g" \ + -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \ + -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] [0-9][0-9][0-9][0-9] \)[A-Z]\([A-Z][A-Z]\);\1$$MYTZ\2;g" \ + -e "s;\([A-Z][a-z][a-z][^ ]* [A-Z][a-z][a-z] [0-9 ][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9] \)[A-Z]\([A-Z][A-Z] [0-9][0-9][0-9][0-9]\);\1$$MYTZ\2;g" \ + -e "s:_USER_:$$USER:g" < expected.input > expected.out + @echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out." + +%.sql: %.source + if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \ + if [ -z "$$USER" ]; then USER=`whoami`; fi; \ + if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \ + rm -f $@; \ + C=`pwd`; \ + sed -e "s:_CWD_:$$C:g" \ + -e "s:_OBJWD_:$$C:g" \ + -e "s:_DLSUFFIX_:$(DLSUFFIX):g" \ + -e "s/_USER_/$$USER/g" < $< > $@ + +clean: + rm -f $(INFILES) + rm -f $(OUTFILES) + -- cgit v1.2.3