@@ -138,6 +138,7 @@ task:
138138 TEST_JOBS : 3
139139
140140 CCACHE_DIR : /tmp/ccache_dir
141+ INSTALL_DIR : /tmp/meson-install
141142 CPPFLAGS : -DRELCACHE_FORCE_RELEASE -DCOPY_PARSE_PLAN_TREES -DWRITE_READ_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERAGE_TEST
142143 CFLAGS : -Og -ggdb
143144
@@ -181,12 +182,14 @@ task:
181182 su postgres <<-EOF
182183 meson setup \
183184 --buildtype=debug \
185+ --prefix=${INSTALL_DIR} \
184186 -Dcassert=true -Dssl=openssl -Duuid=bsd -Dtcl_version=tcl86 -Ddtrace=auto \
185187 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
186188 -Dextra_lib_dirs=/usr/local/lib -Dextra_include_dirs=/usr/local/include/ \
187189 build
188190 EOF
189191 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
192+ install_script : su postgres -c 'ninja -C build install'
190193 upload_caches : ccache
191194
192195 test_world_script : |
@@ -201,13 +204,13 @@ task:
201204 set -e
202205 ulimit -c unlimited
203206 meson test $MTEST_ARGS --quiet --suite setup
204- export LD_LIBRARY_PATH="$(pwd)/build/tmp_install/usr/local/pgsql /lib/:$LD_LIBRARY_PATH"
207+ export LD_LIBRARY_PATH="${INSTALL_DIR} /lib/:$LD_LIBRARY_PATH"
205208 mkdir -p build/testrun
206- build/tmp_install/usr/local/pgsql /bin/initdb -N build/runningcheck --no-instructions -A trust
209+ ${INSTALL_DIR} /bin/initdb -N build/runningcheck --no-instructions -A trust
207210 echo "include '$(pwd)/src/tools/ci/pg_ci_base.conf'" >> build/runningcheck/postgresql.conf
208- build/tmp_install/usr/local/pgsql /bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
211+ ${INSTALL_DIR} /bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
209212 meson test $MTEST_ARGS --num-processes ${TEST_JOBS} --setup running
210- build/tmp_install/usr/local/pgsql /bin/pg_ctl -D build/runningcheck stop
213+ ${INSTALL_DIR} /bin/pg_ctl -D build/runningcheck stop
211214 EOF
212215
213216 on_failure :
@@ -225,6 +228,7 @@ task:
225228
226229 CIRRUS_WORKING_DIR : /home/postgres/postgres
227230 CCACHE_DIR : /tmp/ccache_dir
231+ INSTALL_DIR : /tmp/meson-install
228232
229233 PATH : /usr/sbin:$PATH
230234
@@ -282,13 +286,15 @@ task:
282286 su postgres <<-EOF
283287 meson setup \
284288 --buildtype debug \
289+ --prefix=${INSTALL_DIR} \
285290 -Dcassert=true -Dssl=openssl ${UUID} \
286291 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
287292 ${INCLUDE_DIRS} \
288293 build
289294 EOF
290295
291296 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
297+ install_script : su postgres -c 'ninja -C build install'
292298 upload_caches : ccache
293299
294300 test_world_script : |
@@ -350,6 +356,7 @@ task:
350356 TEST_JOBS : 8 # experimentally derived to be a decent choice
351357
352358 CCACHE_DIR : /tmp/ccache_dir
359+ INSTALL_DIR : /tmp/meson-install
353360 DEBUGINFOD_URLS : " https://debuginfod.debian.net"
354361
355362 # Enable a reasonable set of sanitizers. Use the linux task for that, as
@@ -449,6 +456,7 @@ task:
449456 su postgres <<-EOF
450457 meson setup \
451458 --buildtype=debug \
459+ --prefix=${INSTALL_DIR} \
452460 -Dcassert=true \
453461 ${LINUX_MESON_FEATURES} \
454462 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
@@ -462,6 +470,7 @@ task:
462470 export CC='ccache gcc -m32'
463471 meson setup \
464472 --buildtype=debug \
473+ --prefix=${INSTALL_DIR}-32 \
465474 -Dcassert=true \
466475 ${LINUX_MESON_FEATURES} \
467476 -Dllvm=disabled \
@@ -473,6 +482,7 @@ task:
473482
474483 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
475484 build_32_script : su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}'
485+ install_script : su postgres -c 'ninja -C build install'
476486
477487 upload_caches : ccache
478488
@@ -484,6 +494,8 @@ task:
484494 # so that we don't upload 64bit logs if 32bit fails
485495 rm -rf build/
486496
497+ install_32_script : su postgres -c 'ninja -C build-32 install'
498+
487499 # There's currently no coverage of icu with LANG=C in the buildfarm. We
488500 # can easily provide some here by running one of the sets of tests that
489501 # way. Newer versions of python insist on changing the LC_CTYPE away
@@ -508,6 +520,7 @@ task:
508520 TEST_JOBS : 8 # experimentally derived to be a decent choice
509521
510522 CCACHE_DIR : /tmp/ccache_dir
523+ INSTALL_DIR : /tmp/meson-install
511524 DEBUGINFOD_URLS : ${DEBUGINFO}
512525
513526 TCL_DIR : /usr/lib64/
@@ -559,12 +572,14 @@ task:
559572 su postgres <<-EOF
560573 meson setup \
561574 --buildtype debug \
575+ --prefix=${INSTALL_DIR} \
562576 -Dcassert=true -Dssl=openssl -Duuid=e2fs ${LLVM} \
563577 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
564578 build
565579 EOF
566580
567581 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
582+ install_script : su postgres -c 'ninja -C build install'
568583 upload_caches : ccache
569584
570585 test_world_script : |
@@ -590,6 +605,7 @@ task:
590605
591606 CIRRUS_WORKING_DIR : ${HOME}/pgsql/
592607 CCACHE_DIR : ${HOME}/ccache
608+ INSTALL_DIR : /tmp/meson-install
593609 HOMEBREW_CACHE : ${HOME}/homebrew-cache
594610 PERL5LIB : ${HOME}/perl5/lib/perl5
595611
@@ -662,6 +678,8 @@ task:
662678
663679 meson setup \
664680 --buildtype=debug \
681+ --prefix=${INSTALL_DIR} \
682+ -Dpkg_config_path=$PKG_CONFIG_PATH \
665683 -Dextra_include_dirs=${brewpath}/include \
666684 -Dextra_lib_dirs=${brewpath}/lib \
667685 -Dcassert=true \
@@ -671,6 +689,7 @@ task:
671689 build
672690
673691 build_script : ninja -C build -j${BUILD_JOBS}
692+ install_script : ninja -C build install
674693 upload_caches : ccache
675694
676695 test_world_script : |
0 commit comments