X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 578AC32BD07 for ; Sat, 2 Oct 2004 20:37:40 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50815-06 for ; Sat, 2 Oct 2004 19:37:35 +0000 (GMT) Received: from mail.ccis.com (mail.ccis.com [204.118.241.3]) by svr1.postgresql.org (Postfix) with ESMTP id DFD0F32A85D for ; Sat, 2 Oct 2004 11:15:55 +0100 (BST) Received: from [10.0.0.1] (unverified [4.46.202.191]) by mail.ccis.com (SurgeMail 2.0g2) with ESMTP id 13245993 for ; Sat, 02 Oct 2004 03:06:13 -0700 Message-ID: <415E8308.9080004@ccis.com> Date: Sat, 02 Oct 2004 03:29:28 -0700 From: John McBride User-Agent: Mozilla Thunderbird 0.6 (X11/20040519) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: fedora core 2 postgresql regression tests fail References: <415B866D.4090203@ccis.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Server: High Performance Mail Server - http://surgemail.com X-Authenticated-User: jmcbride Domain mail.ccis.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200410/50 X-Sequence-Number: 15043 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