Skip to content
Snippets Groups Projects
Commit cc08d051 authored by Jan Wieck's avatar Jan Wieck
Browse files

Added 2 regression tests for NUMERIC data type.

1. Using 100 digits after decimal point on the default
   make runtest.

2. Using 1000 digits after decimal point in a new target
   make bigtest.

At the end of 'make runtest', a hint about the new bigtest is
printed.

Jan
parent 78f7ccc9
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.17 1999/01/17 06:19:57 momjian Exp $ # $Header: /cvsroot/pgsql/src/test/regress/GNUmakefile,v 1.18 1999/06/10 17:49:29 wieck Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -37,6 +37,11 @@ ifdef EXPSUFF ...@@ -37,6 +37,11 @@ ifdef EXPSUFF
INFILES+= $(DLOBJS:.o=$(EXPSUFF)) INFILES+= $(DLOBJS:.o=$(EXPSUFF))
endif endif
#
# huge extra tests run in target bigtest
#
EXTRA_TESTS = numeric_big
# #
# prepare to run the test (including clean-up after the last run) # prepare to run the test (including clean-up after the last run)
# #
...@@ -66,6 +71,22 @@ ifneq ($(PORTNAME), win) ...@@ -66,6 +71,22 @@ ifneq ($(PORTNAME), win)
else else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \ MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./regress.sh $(PORTNAME) 2>&1 | tee regress.out ./regress.sh $(PORTNAME) 2>&1 | tee regress.out
endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
@echo ""
@echo "To run the optional huge test(s) too type 'make bigtest'"
@echo "These actually are: $(EXTRA_TESTS)"
#
# run the test including the huge extra tests
#
bigtest: $(INFILES)
ifneq ($(PORTNAME), win)
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
$(SHELL) ./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
else
MULTIBYTE=$(MULTIBYTE);export MULTIBYTE; \
./regress.sh $(PORTNAME) $(EXTRA_TESTS) 2>&1 | tee regress.out
endif endif
@echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out" @echo "ACTUAL RESULTS OF REGRESSION TEST ARE NOW IN FILE regress.out"
......
This diff is collapsed.
This diff is collapsed.
#!/bin/sh #!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.28 1999/05/20 16:50:08 wieck Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.29 1999/06/10 17:49:30 wieck Exp $
# #
if [ $# -eq 0 ] if [ $# -eq 0 ]
then then
echo "Syntax: $0 <portname>" echo "Syntax: $0 <portname> [extra-tests]"
exit 1 exit 1
fi fi
...@@ -13,6 +13,9 @@ then ...@@ -13,6 +13,9 @@ then
else else
HOST="" HOST=""
fi fi
portname=$1
export portname
shift
if echo '\c' | grep -s c >/dev/null 2>&1 if echo '\c' | grep -s c >/dev/null 2>&1
then then
...@@ -33,7 +36,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE ...@@ -33,7 +36,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE
#FRONTEND=monitor #FRONTEND=monitor
FRONTEND="psql $HOST -n -e -q" FRONTEND="psql $HOST -n -e -q"
SYSTEM=`../../config.guess | awk -F\- '{ split($3,a,/[0-9]/); printf"%s-%s", $1, a[1] }'` SYSTEM=`../../config.guess | awk -F\- '{ split($3,a,/[0-9]/); printf"%s-%s", $portname, a[1] }'`
echo "=============== Notes... =================" echo "=============== Notes... ================="
echo "postmaster must already be running for the regression tests to succeed." echo "postmaster must already be running for the regression tests to succeed."
...@@ -72,7 +75,7 @@ fi ...@@ -72,7 +75,7 @@ fi
echo "=============== running regression queries... =================" echo "=============== running regression queries... ================="
echo "" > regression.diffs echo "" > regression.diffs
for i in `cat sql/tests` $mbtests for i in `cat sql/tests` $mbtests $*
do do
$ECHO_N "${i} .. " $ECHO_C $ECHO_N "${i} .. " $ECHO_C
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1 $FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
......
This diff is collapsed.
This diff is collapsed.
...@@ -68,3 +68,4 @@ rules ...@@ -68,3 +68,4 @@ rules
limit limit
plpgsql plpgsql
temp temp
numeric
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment