pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John McBride <jmcbride@ccis.com>
To: pgsql-admin@postgresql.org
Subject: Re: fedora core 2 postgresql regression tests fail
Date: Sat, 02 Oct 2004 03:29:28 -0700
Message-ID: <415E8308.9080004@ccis.com> (raw)
In-Reply-To: <cjh92a$18d4$1@news.hub.org>
References: <415B866D.4090203@ccis.com>
	<cjh92a$18d4$1@news.hub.org>

stig erikson wrote:
> John McBride wrote:
> 
>>
>> As user postgres I try and run the tests:
>>
>> $ pwd
>> /usr/lib/pgsql/test/regress
>> $ time ./pg_regress.sh --schedule=parallel_schedule

Okay, some of these problems are my fault. The README file in the test 
directory clearly states to run the tests via "gmake check":

$ gmake check
GNUmakefile:16: ../../../src/Makefile.global: No such file or directory
gmake: *** No rule to make target `../../../src/Makefile.global'.  Stop.

So I look in the makefile to see how the tests should be run. I did not 
realize that a sed operation updates some variables in the script prior 
to running the tests. So I try to run the tests by hand, after doing a 
chmod +x on the script:

$ time ./pg_regress.sh --schedule=parallel_schedule
(using postmaster on Unix socket, default port)
============== dropping database "regression"         ==============
./pg_regress.sh: line 449: @bindir@/dropdb: No such file or directory
============== creating database "regression"         ==============
./pg_regress.sh: line 489: @bindir@/createdb: No such file or directory
pg_regress.sh: createdb failed

real    0m0.426s
user    0m0.088s
sys     0m0.184s

If I change "@bindir@" (below) to /usr/bin it runs with the same errors 
I listed previously, whether I use the new rpms stig suggested or not. I 
bet the other unset variables are causing the failures:

libdir='@libdir@'
pkglibdir='/usr/lib/pgsql'
# bindir='@bindir@'
bindir='/usr/bin'
datadir='@datadir@'
host_platform='@host_tuple@'
enable_shared='@enable_shared@'

I've no idea what the others should be set to. I think the tests 
directory is setup for people who install from source, rather than 
binary installers.

---
John



view thread (7+ messages)  latest in thread

Message-ID: <415E8308.9080004@ccis.com>
Permalink:  ../415E8308.9080004@ccis.com/
Also on:    postgresql.org/message-id/415E8308.9080004@ccis.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jmcbride@ccis.com
  Subject: Re: fedora core 2 postgresql regression tests fail
  In-Reply-To: <415E8308.9080004@ccis.com>
  References: <415B866D.4090203@ccis.com> <cjh92a$18d4$1@news.hub.org> <415E8308.9080004@ccis.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox