1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-06-21 01:34:15 +02:00

Update autotests CI job

Remove WindowsServer build job
Change unittest to pytest
Add patch apply for REL_18_STABLE+
This commit is contained in:
Oleg Gurev
2025-11-27 17:40:38 +03:00
parent 1683c74a7f
commit 25b2c7ef6b
8 changed files with 43 additions and 115 deletions
+6 -1
View File
@@ -39,6 +39,11 @@ cd postgres # Go to postgres dir
if [ "$PG_PROBACKUP_PTRACK" = "ON" ]; then
git apply -3 contrib/ptrack/patches/${PTRACK_PATCH_PG_BRANCH}-ptrack-core.diff
fi
if [ "$PG_BRANCH" = "REL_18_STABLE" ]; then
git apply -3 ../patches/${PG_BRANCH}_pg_probackup.patch
fi
CC='ccache gcc' CFLAGS="-Og" ./configure --prefix=$PGHOME \
--cache-file=~/.ccache/configure-cache \
--enable-debug --enable-cassert --enable-depend \
@@ -63,4 +68,4 @@ if [ ! -d "contrib/amcheck" ]; then
make -C contrib/amcheck install
fi
pip3 install testgres
pip3 install -r ../tests/requirements.txt
+15 -3
View File
@@ -21,6 +21,10 @@ if [ -z ${PGPROBACKUP_GDB+x} ]; then
PGPROBACKUP_GDB=ON
fi
if [ -z ${PG_PROBACKUP_PTRACK+x} ]; then
PG_PROBACKUP_PTRACK=ON
fi
echo "############### Testing:"
echo PG_PROBACKUP_PARANOIA=${PG_PROBACKUP_PARANOIA}
echo ARCHIVE_COMPRESSION=${ARCHIVE_COMPRESSION}
@@ -30,12 +34,20 @@ echo PGPROBACKUP_SSH_REMOTE=${PGPROBACKUP_SSH_REMOTE}
echo PGPROBACKUP_GDB=${PGPROBACKUP_GDB}
echo PG_PROBACKUP_PTRACK=${PG_PROBACKUP_PTRACK}
#Run Full tests only if FULL_TESTS=ON e.g. for master branch
if [ "$MODE" = "full" ] && [ -z ${FULL_TESTS} ]; then
exit
fi
if [ "$MODE" = "basic" ]; then
export PG_PROBACKUP_TEST_BASIC=ON
echo PG_PROBACKUP_TEST_BASIC=${PG_PROBACKUP_TEST_BASIC}
python3 -m unittest -v tests
python3 -m unittest -v tests.init_test
python3 -m pytest -v -n4 -k "test_basic"
python3 -m pytest -v -n4 -k "init_test.py"
elif [ "$MODE" = "full" ]; then
echo PG_PROBACKUP_TEST_BASIC=${PG_PROBACKUP_TEST_BASIC}
python3 -m pytest -v -n4
else
echo PG_PROBACKUP_TEST_BASIC=${PG_PROBACKUP_TEST_BASIC}
python3 -m unittest -v tests.$MODE
python3 -m pytest -v -n4 -k "$MODE"
fi