mirror of https://github.com/citusdata/citus.git
Merge pull request #2576 from citusdata/test/base-valgrind
Add make target to run regression tests in isolation with valgrindpull/2585/head
commit
0de756559c
|
@ -50,6 +50,11 @@ check-base: all
|
||||||
$(pg_regress_multi_check) --load-extension=citus \
|
$(pg_regress_multi_check) --load-extension=citus \
|
||||||
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/base_schedule $(EXTRA_TESTS)
|
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/base_schedule $(EXTRA_TESTS)
|
||||||
|
|
||||||
|
check-base-vg: all
|
||||||
|
$(pg_regress_multi_check) --load-extension=citus \
|
||||||
|
--valgrind --pg_ctl-timeout=360 --connection-timeout=500000 --valgrind-path=valgrind --valgrind-log-file=$(VALGRIND_LOG_FILE) \
|
||||||
|
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/base_schedule $(EXTRA_TESTS)
|
||||||
|
|
||||||
check-multi: all tempinstall-main
|
check-multi: all tempinstall-main
|
||||||
$(pg_regress_multi_check) --load-extension=citus \
|
$(pg_regress_multi_check) --load-extension=citus \
|
||||||
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS)
|
-- $(MULTI_REGRESS_OPTS) --schedule=$(citus_abs_srcdir)/multi_schedule $(EXTRA_TESTS)
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
-- Test checks whether constraints of distributed tables can be adjusted using
|
-- Test checks whether constraints of distributed tables can be adjusted using
|
||||||
-- the ALTER TABLE ... ADD CONSTRAINT ... command.
|
-- the ALTER TABLE ... ADD CONSTRAINT ... command.
|
||||||
SET citus.shard_count TO 32;
|
SET citus.shard_count TO 32;
|
||||||
SET citus.next_shard_id TO 1450000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1450000;
|
||||||
SET citus.next_placement_id TO 1450000;
|
ALTER SEQUENCE pg_catalog.pg_dist_placement_placementid_seq RESTART 1450000;
|
||||||
-- Check "PRIMARY KEY CONSTRAINT"
|
-- Check "PRIMARY KEY CONSTRAINT"
|
||||||
CREATE TABLE products (
|
CREATE TABLE products (
|
||||||
product_no integer,
|
product_no integer,
|
||||||
|
@ -511,10 +511,10 @@ SELECT (run_command_on_workers($$
|
||||||
$$)).*
|
$$)).*
|
||||||
ORDER BY
|
ORDER BY
|
||||||
1,2,3,4;
|
1,2,3,4;
|
||||||
nodename | nodeport | success | result
|
nodename | nodeport | success | result
|
||||||
-----------+----------+---------+---------------------
|
-----------+----------+---------+----------------------
|
||||||
localhost | 57637 | t | alter_pk_idx_220035
|
localhost | 57637 | t | alter_pk_idx_1450234
|
||||||
localhost | 57638 | t | alter_pk_idx_220035
|
localhost | 57638 | t | alter_pk_idx_1450234
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
CREATE SCHEMA sc2;
|
CREATE SCHEMA sc2;
|
||||||
|
@ -542,10 +542,10 @@ SELECT (run_command_on_workers($$
|
||||||
$$)).*
|
$$)).*
|
||||||
ORDER BY
|
ORDER BY
|
||||||
1,2,3,4;
|
1,2,3,4;
|
||||||
nodename | nodeport | success | result
|
nodename | nodeport | success | result
|
||||||
-----------+----------+---------+---------------------
|
-----------+----------+---------+----------------------
|
||||||
localhost | 57637 | t | alter_pk_idx_220037
|
localhost | 57637 | t | alter_pk_idx_1450236
|
||||||
localhost | 57638 | t | alter_pk_idx_220037
|
localhost | 57638 | t | alter_pk_idx_1450236
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
-- We are running almost the same test with a slight change on the constraint name because if the constraint has a different name than the index, Postgres renames the index.
|
-- We are running almost the same test with a slight change on the constraint name because if the constraint has a different name than the index, Postgres renames the index.
|
||||||
|
@ -577,10 +577,10 @@ SELECT (run_command_on_workers($$
|
||||||
$$)).*
|
$$)).*
|
||||||
ORDER BY
|
ORDER BY
|
||||||
1,2,3,4;
|
1,2,3,4;
|
||||||
nodename | nodeport | success | result
|
nodename | nodeport | success | result
|
||||||
-----------+----------+---------+---------------------
|
-----------+----------+---------+----------------------
|
||||||
localhost | 57637 | t | a_constraint_220039
|
localhost | 57637 | t | a_constraint_1450238
|
||||||
localhost | 57638 | t | a_constraint_220039
|
localhost | 57638 | t | a_constraint_1450238
|
||||||
(2 rows)
|
(2 rows)
|
||||||
|
|
||||||
ALTER TABLE alter_add_prim_key DROP CONSTRAINT a_constraint;
|
ALTER TABLE alter_add_prim_key DROP CONSTRAINT a_constraint;
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
-- the ALTER TABLE ... ADD CONSTRAINT ... command.
|
-- the ALTER TABLE ... ADD CONSTRAINT ... command.
|
||||||
|
|
||||||
SET citus.shard_count TO 32;
|
SET citus.shard_count TO 32;
|
||||||
SET citus.next_shard_id TO 1450000;
|
ALTER SEQUENCE pg_catalog.pg_dist_shardid_seq RESTART 1450000;
|
||||||
SET citus.next_placement_id TO 1450000;
|
ALTER SEQUENCE pg_catalog.pg_dist_placement_placementid_seq RESTART 1450000;
|
||||||
|
|
||||||
-- Check "PRIMARY KEY CONSTRAINT"
|
-- Check "PRIMARY KEY CONSTRAINT"
|
||||||
CREATE TABLE products (
|
CREATE TABLE products (
|
||||||
|
|
Loading…
Reference in New Issue