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:
2323
2424env :
2525 - 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
77# Environment
88ENV PG_MAJOR=${PG_VERSION} PG_BRANCH=${PG_BRANCH}
99ENV LANG=C.UTF-8 PGHOME=/pg/testdir/pgbin
10+ ENV MODE=${MODE} TEST_CASE=${TEST_CASE} TEST_REPEATS=${TEST_REPEATS}
1011
1112# Make directories
1213RUN mkdir -p /pg/testdir
@@ -21,4 +22,4 @@ WORKDIR /pg/testdir
2122RUN chown -R postgres:postgres /pg/testdir
2223
2324USER postgres
24- ENTRYPOINT MODE=${MODE} /run.sh
25+ ENTRYPOINT /run.sh
Original file line number Diff line number Diff line change 1212
1313if [ -z ${MODE+x} ]; then
1414 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
1527fi
1628
1729echo PG_VERSION=${PG_VERSION}
1830echo PG_BRANCH=${PG_BRANCH}
19- echo MODE=${MODE}
2031
2132sed \
2233 -e ' s/${PG_VERSION}/' ${PG_VERSION} /g \
2334 -e ' s/${PG_BRANCH}/' ${PG_BRANCH} /g \
2435 -e ' s/${MODE}/' ${MODE} /g \
36+ -e ' s/${TEST_CASE}/' ${TEST_CASE} /g \
37+ -e ' s/${TEST_REPEATS}/' ${TEST_REPEATS} /g \
2538Dockerfile.in > Dockerfile
Original file line number Diff line number Diff line change @@ -65,10 +65,9 @@ which pg_config
6565echo " ############### pg_config"
6666pg_config
6767
68- # Build and install pg_probackup (using PG_CPPFLAGS and SHLIB_LINK for gcov)
68+ # Build and install pg_probackup
6969echo " ############### Compiling and installing pg_probackup"
7070cd pg_probackup # Go to pg_probackup dir
71- # make USE_PGXS=1 PG_CPPFLAGS="-coverage" SHLIB_LINK="-coverage" top_srcdir=$CUSTOM_PG_SRC install
7271make USE_PGXS=1 top_srcdir=$PG_SRC install
7372
7473# Setup python environment
@@ -81,7 +80,14 @@ echo "############### Testing"
8180if [ " $MODE " = " basic" ]; then
8281 export PG_PROBACKUP_TEST_BASIC=ON
8382fi
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
8591
8692# Generate *.gcov files
8793# gcov src/*.c src/*.h
You can’t perform that action at this time.
0 commit comments