File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ PGFILEDESC = "ptrack - block-level incremental backup engine"
1010
1111EXTRA_CLEAN = $(EXTENSION ) --$(EXTVERSION ) .sql
1212
13+ TAP_TESTS = 1
14+
1315ifdef USE_PGXS
1416PG_CONFIG ?= pg_config
1517PGXS := $(shell $(PG_CONFIG ) --pgxs)
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
Original file line number Diff line number Diff 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
3333cd 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+
3440echo " ############### Applying ptrack patch"
3541git apply -v -3 ../patches/$PG_BRANCH -ptrack-core.diff
3642
9197 done
9298fi
9399
100+ # Exit virtualenv
101+ deactivate
102+
94103# Get back to testdir
95104cd ..
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
101111gcov src/* .c src/* .h
102112
103113# Send coverage stats to Codecov
104114bash <( curl -s https://codecov.io/bash)
105115
106- # Something went wrong, exit with code 1 now
116+ # Something went wrong, exit with code 1
107117if [ $status -ne 0 ]; then exit 1; fi
You can’t perform that action at this time.
0 commit comments