| From: | Pierre Forstmann <pierre(dot)forstmann(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | how to run the equivalent of 'make install check-world' with meson |
| Date: | 2026-08-26 14:33:46 |
| Message-ID: | 28b67c58-bb49-42cd-9014-d4ef2601f946@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pierre Forstmann | 2026-08-26 14:38:02 | Re: BUG #19369: Not documented that io_uring on kernel versions between 5.1 and below 5.6 does not work |
| Previous Message | Andrew Dunstan | 2026-08-26 14:32:08 | Re: scary patch contest |