pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre Forstmann <pierre.forstmann@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Subject: how to run the equivalent of 'make install check-world' with meson
Date: Wed, 26 Aug 2026 16:33:46 +0200
Message-ID: <28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.com> (raw)

Hello,

I'm tring to run the equivalent of "make installcheck-world" with meson.

According to https://wiki.postgresql.org/wiki/Meson?utm_source=chatgpt.com:

I have tried:

meson test -C build -q --print-errorlogs --setup running

But these tests fails because it looks like that test extensions are not 
installed:

#  step s1exec: LOAD 'delay_execution';
#            SET delay_execution.post_planning_lock_id = 12345;
# -          SELECT * FROM foo WHERE a <> 1 AND a <> (SELECT 3); 
<waiting ...>
# +          SELECT * FROM foo WHERE a <> 1 AND a <> (SELECT 3);
# +ERROR:  could not access file "delay_execution": No such file or 
directory

  -- Tests for relation options
#  CREATE EXTENSION dummy_index_am;
# +ERROR:  extension "dummy_index_am" is not available
# +HINT:  The extension must first be installed on the system where 
PostgreSQL is running.

CREATE EXTENSION dummy_seclabel;
# +ERROR:  extension "dummy_seclabel" is not available
# +HINT:  The extension must first be installed on the system where 
PostgreSQL is running.

Here is the full script that I'm using :

export PGDATA=/var/lib/pgsql/data
export TARGET=/var/lib/pgsql/local
set -x
#
rm -rf build
make distclean
meson setup build --prefix=$TARGET --buildtype=debug -Dcassert=true 
-Duuid=e2fs -Dssl=openssl -Dtap_tests=enabled -Dliburing=enabled
cd build
ninja
#
rm -rf $TARGET
mkdir $TARGET
#
ninja install
#
export PATH=$TARGET/bin:$PATH
#
pg_ctl stop
rm -rf $PGDATA
initdb
#
echo "logging_collector = on" > $PGDATA/mypg.conf
echo "log_directory = 'log'" >> $PGDATA/mypg.conf
echo "log_filename = 'pg.log'" >> $PGDATA/mypg.conf
echo "include = 'mypg.conf'" >> $PGDATA/postgresql.conf
#
pg_ctl -D $PGDATA -l logfile start
#
cd ..
meson test -C build -q --print-errorlogs --setup running


Regards,

PF















view thread (3+ messages)  latest in thread

Message-ID: <28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.com>
Permalink:  ../28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.com/
Also on:    postgresql.org/message-id/28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.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-hackers@postgresql.org
  Cc: pierre.forstmann@gmail.com
  Subject: Re: how to run the equivalent of 'make install check-world' with meson
  In-Reply-To: <28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.com>
  References: <28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.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