Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lB5PH-0003R9-Tl for pgsql-admin@arkaria.postgresql.org; Sun, 14 Feb 2021 00:36:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lB5PG-000648-Sc for pgsql-admin@arkaria.postgresql.org; Sun, 14 Feb 2021 00:36:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lB5PG-000641-Kx for pgsql-admin@lists.postgresql.org; Sun, 14 Feb 2021 00:36:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lB5PD-0006D0-PL for pgsql-admin@lists.postgresql.org; Sun, 14 Feb 2021 00:36:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 11E0asBS1878105; Sat, 13 Feb 2021 19:36:54 -0500 From: Tom Lane To: Kevin Burke cc: pgsql-admin@lists.postgresql.org Subject: Re: Getting started notes and trouble running the tests In-reply-to: References: Comments: In-reply-to Kevin Burke message dated "Sat, 13 Feb 2021 15:52:05 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1878103.1613263014.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 13 Feb 2021 19:36:54 -0500 Message-ID: <1878104.1613263014@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kevin Burke 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-cea596d= 405cf@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" seem= s > 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