File tree 4 files changed +22
-33
lines changed
4 files changed +22
-33
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,11 @@ EXTRA_INSTALL=contrib/mmts
29
29
30
30
all : multimaster.so
31
31
32
- check : | temp-install regress
32
+ submake-regress :
33
+ $(MAKE ) -C $(top_builddir ) /src/test/regress all
34
+ $(MAKE ) -C $(top_builddir ) /src/test/regress tablespace-setup
35
+
36
+ check : temp-install submake-regress
33
37
$(prove_check )
34
38
35
39
start : temp-install
@@ -43,37 +47,12 @@ start: temp-install
43
47
stop :
44
48
cd $(srcdir ) && TESTDIR=' $(CURDIR)' \
45
49
$(with_temp_install ) \
46
- PGPORT=' 6$(DEF_PGPORT)' \
47
- PG_REGRESS=' $(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \
48
50
perl run.pl --stop
49
51
50
- submake-regress :
51
- $(MAKE ) -C $(top_builddir ) /src/test/regress all
52
- $(MAKE ) -C $(top_builddir ) /src/test/regress tablespace-setup
53
-
54
- run-regress : submake-regress
55
- $(with_temp_install ) \
56
- PGPORT=' 6$(DEF_PGPORT)' \
57
- PGHOST=' 127.0.0.1' \
58
- $(top_builddir ) /src/test/regress/pg_regress \
59
- --use-existing \
60
- --bindir= \
61
- $(pg_regress_locale_flags ) multimaster || export ERROR=1; \
62
- \
63
- cd $(srcdir ) && TESTDIR=' $(CURDIR)' \
64
- $(with_temp_install ) \
65
- PGPORT=' 6$(DEF_PGPORT)' \
66
- PG_REGRESS=' $(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \
67
- perl run.pl --stop; \
68
- \
69
- [ -z $$ {ERROR} ]
70
-
71
- regress : | start run-regress
72
-
73
52
run-pg-regress : submake-regress
74
53
cd $(CURDIR ) /$(top_builddir ) /src/test/regress && \
75
54
$(with_temp_install ) \
76
- PGPORT=' 6$(DEF_PGPORT) ' \
55
+ PGPORT=' 65432 ' \
77
56
PGHOST=' 127.0.0.1' \
78
57
PGUSER=' $(USER)' \
79
58
./pg_regress \
Original file line number Diff line number Diff line change 10
10
if ($action eq " --start" )
11
11
{
12
12
$PostgresNode::last_port_assigned = 65431;
13
- $PostgresNode::test_pghost = " 127.0.0.1" ;
14
13
15
14
my $cluster = new Cluster($n_nodes );
16
15
$cluster -> init();
33
32
{
34
33
die (" Usage: run.pl --start/--stop\n " );
35
34
}
36
-
37
-
38
-
Original file line number Diff line number Diff line change
1
+ use Cluster;
2
+ # use TestLib;
3
+ use Test::More tests => 1;
4
+
5
+ my $cluster = new Cluster(3);
6
+ $cluster -> init();
7
+ $cluster -> start();
8
+ $cluster -> create_mm(' regression' );
9
+
10
+ my $port = $cluster -> {nodes }-> [0]-> port;
11
+
12
+ TestLib::system_or_bail($ENV {' PG_REGRESS' },
13
+ ' --host=127.0.0.1' , " --port=$port " ,
14
+ ' --use-existing' , ' --bindir=' , ' multimaster' );
15
+
16
+ is(1,1, " ok" );
Original file line number Diff line number Diff line change 5
5
use TestLib;
6
6
use Test::More tests => 6;
7
7
8
- $PostgresNode::last_port_assigned = 65431;
9
-
10
8
my $cluster = new Cluster(3);
11
9
$cluster -> init();
12
10
$cluster -> start();
You can’t perform that action at this time.
0 commit comments