Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3188527

Browse files
committed
Fix tap tests running in docker
1 parent791e9b3 commit3188527

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

‎Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ PGFILEDESC = "ptrack - block-level incremental backup engine"
1010

1111
EXTRA_CLEAN =$(EXTENSION)--$(EXTVERSION).sql
1212

13+
TAP_TESTS = 1
14+
1315
ifdefUSE_PGXS
1416
PG_CONFIG ?= pg_config
1517
PGXS :=$(shell$(PG_CONFIG) --pgxs)
@@ -24,9 +26,9 @@ endif
2426
$(EXTENSION)--$(EXTVERSION).sql: ptrack.sql
2527
cat$^>$@
2628

27-
temp-install: EXTRA_INSTALL=contrib/ptrack
29+
#temp-install: EXTRA_INSTALL=contrib/ptrack
2830

29-
check-tap: temp-install
30-
$(prove_check)
31+
#check-tap: temp-install
32+
#$(prove_check)
3133

32-
check: check-tap
34+
#check: check-tap

‎run_tests.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ git clone https://github.com/ololobus/pg_probackup.git --depth=1 -b ptrack-tests
3131

3232
# Compile and install Postgres
3333
cd postgres# Go to postgres dir
34+
35+
# XXX: Hackish way to run tap tests
36+
mkdir contrib/ptrack
37+
cp ../* contrib/ptrack/
38+
cp -R ../t contrib/ptrack/
39+
3440
echo"############### Applying ptrack patch"
3541
git apply -v -3 ../patches/$PG_BRANCH-ptrack-core.diff
3642

@@ -91,17 +97,21 @@ else
9197
done
9298
fi
9399

100+
# Exit virtualenv
101+
deactivate
102+
94103
# Get back to testdir
95104
cd ..
96105

97106
# Run tap tests
98-
make USE_PGXS=1 check|| status=$?
107+
echo"############### Running tap tests"
108+
make -C postgres/contrib/ptrack check|| status=$?
99109

100110
# Generate *.gcov files
101111
gcov src/*.c src/*.h
102112

103113
# Send coverage stats to Codecov
104114
bash<(curl -s https://codecov.io/bash)
105115

106-
# Something went wrong, exit with code 1 now
116+
# Something went wrong, exit with code 1
107117
if [$status-ne 0 ];thenexit 1;fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp