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

Commit262e4bc

Browse files
committed
regression tests on travis#3
1 parent1de0a96 commit262e4bc

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

‎Dockerfile‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
FROM alpine:3.4
22

3-
RUN apk add --update gcc libc-dev bison flex readline-dev zlib-dev perl make
3+
RUN apk add --update gcc libc-dev bison flex readline-dev zlib-dev perl make diffutils
44

55
# there is already accidental postgres user in alpine
66
# RUN addgroup pg && adduser -h /pg -D -G pg pg
77
RUN mkdir /pg && chown postgres:postgres pg
88

9-
USER postgres
10-
119
ENV LANG en_US.utf8
1210
ENV CFLAGS -O0
1311
ENV PATH /pg/install/bin:$PATH
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
cd /pg/src/src/test/regress
4+
5+
./pg_regress --use-existing \
6+
--schedule=parallel_schedule \
7+
--host=node1 \
8+
--user=postgres \
9+
--dlpath=/pg/src/src/test/regress/
10+
11+
cat regression.diffs

‎contrib/mmts/tests2/test_regression.py‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
importtime
44

55
classRecoveryTest(unittest.TestCase):
6+
67
@classmethod
78
defsetUpClass(self):
89
subprocess.check_call(['docker-compose','up',
10+
'--build',
911
'--force-recreate',
1012
'-d'])
1113

@@ -14,16 +16,12 @@ def tearDownClass(self):
1416
subprocess.check_call(['docker-compose','down'])
1517

1618
deftest_regression(self):
19+
# XXX: make smth clever here
1720
time.sleep(30)
18-
subprocess.check_call(['../../../src/test/regress/pg_regress',
19-
'--use-existing',
20-
'--schedule=../../../src/test/regress/parallel_schedule',
21-
'--host=127.0.0.1',
22-
'--port=15432',
23-
'--user=postgres',
24-
'--inputdir=../../../src/test/regress/',
25-
'--outputdir=../../../src/test/regress/',
26-
'--dlpath=/pg/src/src/test/regress/'
21+
subprocess.check_call(['docker','run',
22+
'--network=tests2_default',
23+
'tests2_node1',
24+
'/pg/mmts/tests2/docker-regress.sh',
2725
])
2826

2927
if__name__=='__main__':

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp