Skip to content

Commit 5a20987

Browse files
committed
Do some legacy testing
1 parent 9c2eae1 commit 5a20987

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ notifications:
2121

2222
env:
2323
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap
24+
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=tap MODE=legacy
2425
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=all
2526
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=test_ptrack_multiple_segments TEST_REPEATS=5
26-
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=test_ptrack_uncommitted_xact TEST_REPEATS=15

Diff for: codecov.yml

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
# unused methods to do not spoil the report.
44
ignore:
55
- "**/datapagemap.*"
6+
- "**/*datapagemap*"
7+
- "datapagemap.*"
8+
- "datapagemap.c"
9+
- "datapagemap.h"

Diff for: run_tests.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
# Copyright (c) 2019-2020, Postgres Professional
55
#
66

7-
87
PG_SRC=$PWD/postgres
98
status=0
109

11-
# # Here PG_VERSION is provided by postgres:X-alpine docker image
1210
# curl "https://ftp.postgresql.org/pub/source/v$PG_VERSION/postgresql-$PG_VERSION.tar.bz2" -o postgresql.tar.bz2
1311
# echo "$PG_SHA256 *postgresql.tar.bz2" | sha256sum -c -
1412

@@ -36,7 +34,11 @@ echo "############### Applying ptrack patch"
3634
git apply -v -3 ../patches/$PG_BRANCH-ptrack-core.diff
3735

3836
echo "############### Compiling Postgres"
39-
./configure --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
37+
if [ "$TEST_CASE" = "tap" ] && [ "$MODE" = "legacy" ]; then
38+
./configure CFLAGS='-DEXEC_BACKEND' --disable-atomics --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
39+
else
40+
./configure --prefix=$PGHOME --enable-debug --enable-cassert --enable-depend --enable-tap-tests
41+
fi
4042
make -s -j$(nproc) install
4143
make -s -j$(nproc) -C contrib/ install
4244

0 commit comments

Comments
 (0)