@@ -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 -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 :
@@ -231,6 +234,7 @@ task:
231234
232235 CIRRUS_WORKING_DIR : /home/postgres/postgres
233236 CCACHE_DIR : /tmp/ccache_dir
237+ INSTALL_DIR : /tmp/meson-install
234238
235239 PATH : /usr/sbin:$PATH
236240
@@ -288,13 +292,15 @@ task:
288292 su postgres <<-EOF
289293 meson setup \
290294 --buildtype debug \
295+ --prefix=${INSTALL_DIR} \
291296 -Dcassert=true -Dssl=openssl ${UUID} \
292297 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
293298 ${INCLUDE_DIRS} \
294299 build
295300 EOF
296301
297302 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
303+ install_script : su postgres -c 'ninja -C build install'
298304 upload_caches : ccache
299305
300306 test_world_script : |
@@ -355,6 +361,7 @@ task:
355361 TEST_JOBS : 8 # experimentally derived to be a decent choice
356362
357363 CCACHE_DIR : /tmp/ccache_dir
364+ INSTALL_DIR : /tmp/meson-install
358365 DEBUGINFOD_URLS : " https://debuginfod.debian.net"
359366
360367 # Enable a reasonable set of sanitizers. Use the linux task for that, as
@@ -462,6 +469,7 @@ task:
462469 su postgres <<-EOF
463470 meson setup \
464471 --buildtype=debug \
472+ --prefix=${INSTALL_DIR} \
465473 -Dcassert=true \
466474 ${LINUX_MESON_FEATURES} \
467475 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
@@ -475,6 +483,7 @@ task:
475483 export CC='ccache gcc -m32'
476484 meson setup \
477485 --buildtype=debug \
486+ --prefix=${INSTALL_DIR}-32 \
478487 -Dcassert=true \
479488 ${LINUX_MESON_FEATURES} \
480489 -Dllvm=disabled \
@@ -486,6 +495,7 @@ task:
486495
487496 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
488497 build_32_script : su postgres -c 'ninja -C build-32 -j${BUILD_JOBS}'
498+ install_script : su postgres -c 'ninja -C build install'
489499
490500 upload_caches : ccache
491501
@@ -497,6 +507,8 @@ task:
497507 # so that we don't upload 64bit logs if 32bit fails
498508 rm -rf build/
499509
510+ install_32_script : su postgres -c 'ninja -C build-32 install'
511+
500512 # There's currently no coverage of icu with LANG=C in the buildfarm. We
501513 # can easily provide some here by running one of the sets of tests that
502514 # way. Newer versions of python insist on changing the LC_CTYPE away
@@ -521,6 +533,7 @@ task:
521533 TEST_JOBS : 8 # experimentally derived to be a decent choice
522534
523535 CCACHE_DIR : /tmp/ccache_dir
536+ INSTALL_DIR : /tmp/meson-install
524537 DEBUGINFOD_URLS : ${DEBUGINFO}
525538
526539 TCL_DIR : /usr/lib64/
@@ -572,12 +585,14 @@ task:
572585 su postgres <<-EOF
573586 meson setup \
574587 --buildtype debug \
588+ --prefix=${INSTALL_DIR} \
575589 -Dcassert=true -Dssl=openssl -Duuid=e2fs ${LLVM} \
576590 -DPG_TEST_EXTRA="$PG_TEST_EXTRA" \
577591 build
578592 EOF
579593
580594 build_script : su postgres -c 'ninja -C build -j${BUILD_JOBS}'
595+ install_script : su postgres -c 'ninja -C build install'
581596 upload_caches : ccache
582597
583598 test_world_script : |
@@ -603,6 +618,7 @@ task:
603618
604619 CIRRUS_WORKING_DIR : ${HOME}/pgsql/
605620 CCACHE_DIR : ${HOME}/ccache
621+ INSTALL_DIR : /tmp/meson-install
606622 HOMEBREW_CACHE : ${HOME}/homebrew-cache
607623 PERL5LIB : ${HOME}/perl5/lib/perl5
608624
@@ -675,6 +691,8 @@ task:
675691
676692 meson setup \
677693 --buildtype=debug \
694+ --prefix=${INSTALL_DIR} \
695+ -Dpkg_config_path=$PKG_CONFIG_PATH \
678696 -Dextra_include_dirs=${brewpath}/include \
679697 -Dextra_lib_dirs=${brewpath}/lib \
680698 -Dcassert=true \
@@ -684,6 +702,7 @@ task:
684702 build
685703
686704 build_script : ninja -C build -j${BUILD_JOBS}
705+ install_script : ninja -C build install
687706 upload_caches : ccache
688707
689708 test_world_script : |
0 commit comments