Skip to content

Commit b2f2e03

Browse files
committed
More misc patches from Thomas for regression tests and linux templates
1 parent ba1a589 commit b2f2e03

File tree

4 files changed

+28
-19
lines changed

4 files changed

+28
-19
lines changed

src/template/linux-elf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
AROPT:crs
2-
CFLAGS:
2+
CFLAGS:-O2
33
SHARED_LIB:-fpic
44
ALL:
5-
SRCH_INC:
5+
SRCH_INC:/usr/include/ncurses /usr/include/readline
66
SRCH_LIB:
77
USE_LOCALE:no
8-
DLSUFFIX:.o
8+
DLSUFFIX:.so
99
YFLAGS:-d
10-
YACC: bison -y
10+
YACC:bison -y

src/test/regress/expected/reltime.out

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 34 year');
66
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 3 months');
77
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 14 seconds ago');
88
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('badly formatted reltime');
9+
WARN:Bad reltime external representation 'badly formatted reltime'
910
QUERY: INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago');
10-
QUERY: SELECT '' AS eight, RELTIME_TBL.*;
11-
eight|f1
12-
-----+-----------------
13-
|@ 1 minute
14-
|@ 5 hours
15-
|@ 10 days
16-
|@ 34 years
17-
|@ 3 months
18-
|@ 14 seconds ago
19-
|Undefined RelTime
20-
|Undefined RelTime
21-
(8 rows)
11+
WARN:Bad reltime external representation '@ 30 eons ago'
12+
QUERY: SELECT '' AS six, RELTIME_TBL.*;
13+
six|f1
14+
---+----------------
15+
|@ 1 minute
16+
|@ 5 hours
17+
|@ 10 days
18+
|@ 34 years
19+
|@ 3 months
20+
|@ 14 seconds ago
21+
(6 rows)
2222

2323
QUERY: SELECT '' AS five, RELTIME_TBL.*
2424
WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime;

src/test/regress/regress.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
#!/bin/sh
2-
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.6 1997/04/06 08:53:34 scrappy Exp $
2+
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.7 1997/04/26 05:49:39 scrappy Exp $
33
#
44
if [ -d ./obj ]; then
55
cd ./obj
66
fi
77

8-
TZ="PST8PDT"; export TZ
8+
TZ="PST8PDT7,M04.01.00,M10.05.03"; export TZ
99

1010
#FRONTEND=monitor
1111
FRONTEND="psql -n -e -q"
1212

13+
echo =============== Notes... =================
14+
echo "You must be already running the postmaster"
15+
echo " for the regression tests to succeed."
16+
echo "The time zone might need to be set to PST/PDT"
17+
echo " for the date and time data types to pass the"
18+
echo " regression tests; to do this type"
19+
echo " setenv TZ $TZ"
20+
echo " before starting the postmaster."
21+
1322
echo =============== destroying old regression database... =================
1423
destroydb regression
1524

src/test/regress/sql/reltime.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ INSERT INTO RELTIME_TBL (f1) VALUES ('@ 30 eons ago');
2020

2121
-- test reltime operators
2222

23-
SELECT '' AS eight, RELTIME_TBL.*;
23+
SELECT '' AS six, RELTIME_TBL.*;
2424

2525
SELECT '' AS five, RELTIME_TBL.*
2626
WHERE RELTIME_TBL.f1 <> '@ 10 days'::reltime;

0 commit comments

Comments
 (0)