File tree Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Expand file tree Collapse file tree 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,4 @@ notifications:
23
23
24
24
env :
25
25
- PG_VERSION=12 PG_BRANCH=REL_12_STABLE
26
- # - PG_VERSION=13 PG_BRANCH=master
26
+ - PG_VERSION=12 PG_BRANCH=REL_12_STABLE TEST_CASE=test_ptrack_multiple_segments TEST_REPEATS=5
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ RUN apt-get -yq install python python-pip python-virtualenv
7
7
# Environment
8
8
ENV PG_MAJOR=${PG_VERSION} PG_BRANCH=${PG_BRANCH}
9
9
ENV LANG=C.UTF-8 PGHOME=/pg/testdir/pgbin
10
+ ENV MODE=${MODE} TEST_CASE=${TEST_CASE} TEST_REPEATS=${TEST_REPEATS}
10
11
11
12
# Make directories
12
13
RUN mkdir -p /pg/testdir
@@ -21,4 +22,4 @@ WORKDIR /pg/testdir
21
22
RUN chown -R postgres:postgres /pg/testdir
22
23
23
24
USER postgres
24
- ENTRYPOINT MODE=${MODE} /run.sh
25
+ ENTRYPOINT /run.sh
Original file line number Diff line number Diff line change 12
12
13
13
if [ -z ${MODE+x} ]; then
14
14
MODE=basic
15
+ else
16
+ echo MODE=${MODE}
17
+ fi
18
+
19
+ if [ ! -z ${TEST_CASE+x} ]; then
20
+ echo TEST_CASE=${TEST_CASE}
21
+ fi
22
+
23
+ if [ ! -z ${TEST_REPEATS+x} ]; then
24
+ echo TEST_REPEATS=${TEST_REPEATS}
25
+ else
26
+ TEST_REPEATS=1
15
27
fi
16
28
17
29
echo PG_VERSION=${PG_VERSION}
18
30
echo PG_BRANCH=${PG_BRANCH}
19
- echo MODE=${MODE}
20
31
21
32
sed \
22
33
-e ' s/${PG_VERSION}/' ${PG_VERSION} /g \
23
34
-e ' s/${PG_BRANCH}/' ${PG_BRANCH} /g \
24
35
-e ' s/${MODE}/' ${MODE} /g \
36
+ -e ' s/${TEST_CASE}/' ${TEST_CASE} /g \
37
+ -e ' s/${TEST_REPEATS}/' ${TEST_REPEATS} /g \
25
38
Dockerfile.in > Dockerfile
Original file line number Diff line number Diff line change @@ -65,10 +65,9 @@ which pg_config
65
65
echo " ############### pg_config"
66
66
pg_config
67
67
68
- # Build and install pg_probackup (using PG_CPPFLAGS and SHLIB_LINK for gcov)
68
+ # Build and install pg_probackup
69
69
echo " ############### Compiling and installing pg_probackup"
70
70
cd pg_probackup # Go to pg_probackup dir
71
- # make USE_PGXS=1 PG_CPPFLAGS="-coverage" SHLIB_LINK="-coverage" top_srcdir=$CUSTOM_PG_SRC install
72
71
make USE_PGXS=1 top_srcdir=$PG_SRC install
73
72
74
73
# Setup python environment
@@ -81,7 +80,14 @@ echo "############### Testing"
81
80
if [ " $MODE " = " basic" ]; then
82
81
export PG_PROBACKUP_TEST_BASIC=ON
83
82
fi
84
- python -m unittest -v tests.ptrack
83
+
84
+ if [ -z ${TEST_CASE+x} ]; then
85
+ python -m unittest -v tests.ptrack
86
+ else
87
+ for i in ` seq $TEST_REPEATS ` ; do
88
+ python -m unittest -v tests.ptrack.PtrackTest.$TEST_CASE
89
+ done
90
+ fi
85
91
86
92
# Generate *.gcov files
87
93
# gcov src/*.c src/*.h
You can’t perform that action at this time.
0 commit comments