Commit a475d4d8 authored by Marc G. Fournier's avatar Marc G. Fournier

Get first four tests to pass:

=============== destroying old regression database... =================
=============== creating new regression database...   =================
=============== running regression queries...         =================
create_function_1 .. ok
create_type .. ok
create_table .. ok
create_function_2 .. ok
parent 3451abf6
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
-- --
COPY onek FROM '_CWD_/../data/onek.data'; COPY onek FROM '_CWD_/../data/onek.data';
COPY onek TO '_OBJWD_/results/onek.data';
DELETE FROM onek;
COPY onek FROM '_OBJWD_/results/onek.data';
COPY tenk1 FROM '_CWD_/../data/tenk.data'; COPY tenk1 FROM '_CWD_/../data/tenk.data';
COPY slow_emp4000 FROM '_CWD_/../data/rect.data'; COPY slow_emp4000 FROM '_CWD_/../data/rect.data';
......
...@@ -27,33 +27,33 @@ CREATE FUNCTION user_relns() ...@@ -27,33 +27,33 @@ CREATE FUNCTION user_relns()
relkind <> ''i'' ' relkind <> ''i'' '
LANGUAGE 'sql'; LANGUAGE 'sql';
CREATE FUNCTION pt_in_circle(point, circle) CREATE FUNCTION pt_in_widget(point, widget)
RETURNS int4 RETURNS int4
AS '_OBJWD_/regress_DLSUFFIX_' AS '_CWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION overpaid(emp) CREATE FUNCTION overpaid(emp)
RETURNS bool RETURNS bool
AS '_OBJWD_/regress_DLSUFFIX_' AS '_CWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION boxarea(box) CREATE FUNCTION boxarea(box)
RETURNS int4 RETURNS int4
AS '_OBJWD_/regress_DLSUFFIX_' AS '_CWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION interpt_pp(path, path) CREATE FUNCTION interpt_pp(path, path)
RETURNS point RETURNS point
AS '_OBJWD_/regress_DLSUFFIX_' AS '_CWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
CREATE FUNCTION reverse_c16(char16) CREATE FUNCTION reverse_c16(char16)
RETURNS char16 RETURNS char16
AS '_OBJWD_/regress_DLSUFFIX_' AS '_CWD_/regress_DLSUFFIX_'
LANGUAGE 'c'; LANGUAGE 'c';
-- --
-- FUNCTION DYNAMIC LOADING -- FUNCTION DYNAMIC LOADING
-- --
LOAD '_OBJWD_/regress_DLSUFFIX_'; LOAD '_CWD_/regress_DLSUFFIX_';
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/output/Attic/Makefile,v 1.3 1997/04/26 05:45:13 scrappy Exp $ # $Header: /cvsroot/pgsql/src/test/regress/output/Attic/Makefile,v 1.4 1997/04/27 04:50:06 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -28,15 +28,11 @@ all: $(INFILES) ...@@ -28,15 +28,11 @@ all: $(INFILES)
if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \ if [ -z "$$USER" ]; then USER=$$LOGNAME; fi; \
if [ -z "$$USER" ]; then USER=`whoami`; fi; \ if [ -z "$$USER" ]; then USER=`whoami`; fi; \
if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \ if [ -z "$$USER" ]; then echo 'Cannot deduce $$USER.'; exit 1; fi; \
rm -f expected.out; \ rm -f $@; \
MYTZ=`date | cut -c21`; \ PWD=`pwd`; \
C="`pwd`"; \ OBJ=`pwd`; \
sed -e "s:_CWD_:$(PWD)/\.\.:g" \ sed -e "s:_CWD_:$(PWD):g" \
-e "s:\.\./output:\.\./input:g" \ -e "s:_OBJWD_:$$OBJ/\.\.:g" \
-e "s:_OBJWD_:$(PWD):g" \
-e "s:_DLSUFFIX_:$(DLSUFFIX):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/_USER_/$$USER/g" < $< > ../expected/$@
-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" < $< | \
sed -e "s:/output/\.\./:/input/\.\./:g"> ../expected/$@
@echo "YOUR EXPECTED RESULTS ARE NOW IN FILE expected.out."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment