Skip to content

Commit 44458f8

Browse files
committed
fixup! meson: Add installcheck equivalent
ci-os-only: freebsd
1 parent 10518b4 commit 44458f8

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.cirrus.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,26 @@ task:
115115
build_script: su postgres -c 'ninja -C build -j${BUILD_JOBS}'
116116
upload_caches: ccache
117117

118-
test_world_script: |
118+
# test runningcheck
119+
test_running_script: |
119120
su postgres <<-EOF
121+
set -e
120122
ulimit -c unlimited
121-
meson test $MTEST_ARGS --num-processes ${TEST_JOBS}
123+
meson test $MTEST_ARGS --quiet --suite setup
124+
export LD_LIBRARY_PATH="$(pwd)/build/tmp_install/usr/local/lib/:$LD_LIBRARY_PATH"
125+
mkdir build/testrun
126+
build/tmp_install/usr/local/bin/initdb -N build/runningcheck --no-instructions -A trust
127+
echo "include '$(pwd)/src/tools/ci/pg_ci_base.conf'" >> build/tmp_check/runningcheck/postgresql.conf
128+
build/tmp_install/usr/local/bin/pg_ctl -c -o '-c fsync=off' -D build/runningcheck -l build/testrun/runningcheck.log start
129+
meson test $MTEST_ARGS --num-processes ${TEST_JOBS} --setup running
130+
build/tmp_install/usr/local/bin/pg_ctl -D build/runningcheck stop
122131
EOF
123132
124-
# test runningcheck
125-
test_running_script: |
133+
test_world_script: |
126134
su postgres <<-EOF
135+
set -e
127136
ulimit -c unlimited
128-
export LD_LIBRARY_PATH="$(pwd)/tmp_install/usr/local/lib/:$LD_LIBRARY_PATH"
129-
tmp_install/usr/local/bin/initdb
130-
tmp_install/usr/local/bin/pg_ctl -c -o '-c fsync=off' -D runningcheck -l testrun/runningcheck.log start
131-
meson test $MTEST_ARGS --num-processes ${TEST_JOBS} --setup running
132-
tmp_install/usr/local/bin/pg_ctl -D runningcheck -l testrun/runningcheck.log stop
137+
meson test $MTEST_ARGS --num-processes ${TEST_JOBS}
133138
EOF
134139
135140
on_failure:

0 commit comments

Comments
 (0)