From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Burke <kevin@meter.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Getting started notes and trouble running the tests
Date: Sat, 13 Feb 2021 19:36:54 -0500
Message-ID: <1878104.1613263014@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAJ6v9CymXJMdgKaRx7=rKvCdhGbQhSStvfhEFayomr5cbwyZQ@mail.gmail.com>
References: <CAAJ6v9CymXJMdgKaRx7=rKvCdhGbQhSStvfhEFayomr5cbwyZQ@mail.gmail.com>
Kevin Burke <kevin@meter.com> writes:
> On Mac, I get this error when I run "./configure" and then "gmake check":
> [Output omitted]
> sh: line 1: 51711 Abort trap: 6 "psql" -X postgres < /dev/null 2>
> /dev/null
Yeah, this is a known issue with Apple's SIP (System Integrity Protection)
breaking our use of DYLD_LIBRARY_PATH to point the executables at the
as-yet-uninstalled libraries. The two known workarounds are
(1) do "make install" before "make check";
(2) turn off SIP.
We've made occasional efforts to develop a less fragile solution.
If you're interested in helping with the latest such effort, see
https://www.postgresql.org/message-id/flat/ecec88aa-c982-a473-1b0f-cea596d405cf@enterprisedb.com> Is there a way to run just the tests for a particular part of the code? The
> docs on running the tests weren't clear, and starting "gmake check" seems
> slow in the best case. In my case I'd like to run just the tests related to
> OpenSSL, and src/backend/libpq/be-secure.c.
The core regression tests aren't subdivided, but on the other hand
they only take a few seconds on any modern hardware (hint: use the
parallelized make targets). There are a lot of other test suites
scattered around the tree, and those can be run individually.
In your case I'd venture that "make check" in src/test/ssl/ might
cover most of what you care about (but see the README there for
caveats --- it transiently opens ports). Also, for repeated test runs,
using "make install" and then "make installcheck" can save time.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kevin@meter.com, pgsql-admin@lists.postgresql.org
Subject: Re: Getting started notes and trouble running the tests
In-Reply-To: <1878104.1613263014@sss.pgh.pa.us>
* 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