Skip to content

Commit 89f1e29

Browse files
committed
regression tests on travis #3
1 parent 23ae6cb commit 89f1e29

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

tests2/docker-regress.sh

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

tests2/test_regression.py

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

55
class RecoveryTest(unittest.TestCase):
6+
67
@classmethod
78
def setUpClass(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
def test_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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy