Makefile 5.0 KB
Newer Older
J
Jimmy Yih 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
CUR_DIR:=`pwd`
EXT:=$(CUR_DIR)/ext


unit: tincunit
regress: tincregress
check: tinccheck tincmmgrcheck
tinccheck: tincunit tincregress
tincmmgrcheck: tincmmgrunit tincmmgrregress

tincunit:
	@echo unit test tinc
	make -C tinctest unit

tincregress:
	@echo regression test tinc
	make -C tinctest regress

tincmmgrunit:
	@echo unit test tincmmgr
	make -C tincmmgr unit

tincmmgrregress:
	@echo regression test tincmmgr
	make -C tincmmgr regress

TESTER=tinc.py

DISCOVER=discover

J
Jimmy Yih 已提交
31
# cs-storage
J
Jimmy Yih 已提交
32
# The following targets are pulled from:
J
Jimmy Yih 已提交
33
# http://pulse-cloud.gopivotal.com/admin/projects/cs-storage
J
Jimmy Yih 已提交
34 35 36 37 38
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

storage_vacuum_xidlimits:
J
Jimmy Yih 已提交
39
	$(TESTER) $(DISCOVER) \
40
	-s tincrepo/mpp/gpdb/tests/storage/vacuum/xidlimits
J
Jimmy Yih 已提交
41 42

aocoalter_catalog_loaders:
J
Jimmy Yih 已提交
43 44 45 46
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests \
	-s storage/aoco_alter \
	-s catalog/mpp25256 \
	-s catalog/oid_inconsistency \
47
	-s catalog/udf_exception_handling
J
Jimmy Yih 已提交
48

49
storage_uao_and_transactionmanagement:
J
Jimmy Yih 已提交
50 51
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests \
	-s storage/transaction_management \
52
	-s storage/uao
J
Jimmy Yih 已提交
53

54
storage_persistent_accessmethods_and_vacuum:
J
Jimmy Yih 已提交
55 56 57 58
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests/storage \
	-s persistent \
	-s access_methods \
	-s vacuum \
59
	-q "class!=XidlimitsTests"
J
Jimmy Yih 已提交
60

J
Jimmy Yih 已提交
61 62 63
# cs-walrepl-multinode
walrep_1:
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests/storage/walrepl \
64
	-s gpactivatestandby \
J
Jimmy Yih 已提交
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
	-s gpcrondump \
	-s gpinitstandby \
	-s gpstart \
	-s gpstate \
	-s gpstop \
	-s run

walrep_2:
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests/storage/walrepl \
	-s basebackup \
	-s filerep \
	-s oom \
	-s regress \
	-s smart_shutdown \
	-s syncrep \
	-s walreceiver \
	-s walsender \
	-s xact \
83
	-s crash \
J
Jimmy Yih 已提交
84 85 86 87
	-q "class!=DDLTestCase" \
	-q "class!=DMLTestCase"

# cs-filerep-end-to-end
J
Jimmy Yih 已提交
88
# The following targets are pulled from:
J
Jimmy Yih 已提交
89
# http://pulse-cloud.gopivotal.com/admin/projects/cs-filerep-end-to-end
J
Jimmy Yih 已提交
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

filerep_end_to_end_full_primary:
	$(TESTER) mpp.gpdb.tests.storage.filerep_end_to_end.test_filerep_e2e.FilerepE2EScenarioTestCase.test_full_primary

filerep_end_to_end_incr_primary:
	$(TESTER) mpp.gpdb.tests.storage.filerep_end_to_end.test_filerep_e2e.FilerepE2EScenarioTestCase.test_incr_primary

filerep_end_to_end_full_mirror:
	$(TESTER) mpp.gpdb.tests.storage.filerep_end_to_end.test_filerep_e2e.FilerepE2EScenarioTestCase.test_full_mirror

filerep_end_to_end_incr_mirror:
	$(TESTER) mpp.gpdb.tests.storage.filerep_end_to_end.test_filerep_e2e.FilerepE2EScenarioTestCase.test_incr_mirror

106
test_pg_twophase:
J
Jimmy Yih 已提交
107 108
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
109
	-p test_pg_twophase.py
J
Jimmy Yih 已提交
110 111 112 113

test_switch_01_12:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
114
	-p test_switch.py
J
Jimmy Yih 已提交
115

J
Jimmy Yih 已提交
116
# cs-fts
J
Jimmy Yih 已提交
117
# The following targets are pulled from:
J
Jimmy Yih 已提交
118
# http://pulse-cloud.gopivotal.com/admin/projects/cs-fts
J
Jimmy Yih 已提交
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

fts_transitions_part01:
	$(TESTER) mpp.gpdb.tests.storage.fts.fts_transitions.test_fts_transitions_01

fts_transitions_part02:
	$(TESTER) mpp.gpdb.tests.storage.fts.fts_transitions.test_fts_transitions_02

fts_transitions_part03:
	$(TESTER) mpp.gpdb.tests.storage.fts.fts_transitions.test_fts_transitions_03

crash_recovery_schema_topology:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
135 136
	-p test_crash_recovery_schema_topology.py \
	-p test_reindex_pg_class.py
137

138 139 140 141 142 143 144 145

# Crash recovery test during ptrebuild

persistent_table_rebuild:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/persistent_tables \
	-p test_PT_RebuildPT.py

146 147 148 149 150 151 152 153
runaway_query:
	$(TESTER) \
		resource_management.runaway_query.runaway_query_scenario.test_runaway_query_scenario.RQTScenarioTestCase \
		resource_management.runaway_query.runaway_detector.test_runaway_detector.RunawayDetectorTestCase \
		resource_management.runaway_query.runaway_query_limits.test_runaway_query.RunawayQueryTestCase \
		resource_management.runaway_query.runaway_query_multisession.test_runaway_multisession.RunawayMultiSessionTestCase \
		resource_management.runaway_query.runaway_query_vmem_memoryaccounting.test_runaway_query_vmem_memoryaccounting.RQTMemoryAccountingTestCase \
		resource_management.runaway_query.runaway_query_stress.test_runaway_query_stress.RunawayQueryStressTestCase
154 155 156 157 158

memory_accounting:
	$(TESTER) \
		resource_management.memory_accounting.test_oom.OOMTestCase \
		resource_management.memory_accounting.too_many_exec_accounts.test_exec_accounts
M
Marbin Tan 已提交
159 160 161 162 163 164 165 166 167 168 169

# gpexpand test
gpexpand_1:
	$(TESTER) $(DISCOVER) \
	-s mpp/gpdb/tests/utilities/gpexpand \
	-q tags=part1

gpexpand_2:
	$(TESTER) $(DISCOVER) \
	-s mpp/gpdb/tests/utilities/gpexpand \
	-q tags=part2
170 171 172 173 174 175

# mpp interconnect test
mpp_interconnect:
	make -C tincrepo/mpp/gpdb/tests/dispatch/interconnect/ickm all distribute
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests \
	-s dispatch/interconnect