Makefile 10.4 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
CUR_DIR:=`pwd`
EXT:=$(CUR_DIR)/ext


#-------------------------------------------------------------------------------
# DOCS
#
# To get documentation for Python scripts, run the make gen_epydoc target.
#
# Note that the $(CUR_DIR)/sbin/gen_epydocs.sh script assumes that the SRC_DIR
# is set to the top of the Greenplum source tree.
#-------------------------------------------------------------------------------

gen_epydoc:
	$(CUR_DIR)/sbin/gen_epydocs.sh

#-------------------------------------------------------------------------------
# clean
#-------------------------------------------------------------------------------
clean:
	@rm -rf $(CUR_DIR)/epydocs
	@rm -rf $(CURDIR)/tincrepo/epydocs


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

storage_targets: discover_targets non_discover_targets

J
Jimmy Yih 已提交
53
discover_targets: storage walrep_multinode \
54
	pgtwophase \
J
Jimmy Yih 已提交
55 56 57 58 59
	sub_transaction_limit_removal filerep_schematopology_crashrecov

non_discover_targets: aoco_compression filerep_end_to_end fts


J
Jimmy Yih 已提交
60
# cs-storage
J
Jimmy Yih 已提交
61
# The following targets are pulled from:
J
Jimmy Yih 已提交
62
# http://pulse-cloud.gopivotal.com/admin/projects/cs-storage
J
Jimmy Yih 已提交
63 64 65 66 67
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

storage: storage_vacuum_xidlimits aocoalter_catalog_loaders \
68 69 70
	storage_queryfinish_and_transactionmanagement \
	storage_persistent_accessmethods_and_vacuum \
	storage_filerep
J
Jimmy Yih 已提交
71 72

storage_vacuum_xidlimits:
J
Jimmy Yih 已提交
73
	$(TESTER) $(DISCOVER) \
J
Jimmy Yih 已提交
74 75 76 77
	-s tincrepo/mpp/gpdb/tests/storage/vacuum \
	-q "class=XidlimitsTests"

aocoalter_catalog_loaders:
J
Jimmy Yih 已提交
78 79 80 81 82 83 84 85 86
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests \
	-s storage/aoco_alter \
	-s catalog/mpp24606 \
	-s catalog/mpp25160 \
	-s catalog/mpp25256 \
	-s catalog/oid_inconsistency \
	-s catalog/udf_exception_handling \
	-s catalog/upgrade \
	-s storage/loaders
J
Jimmy Yih 已提交
87

88
storage_uao_and_transactionmanagement:
J
Jimmy Yih 已提交
89 90
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests \
	-s storage/transaction_management \
91
	-s storage/basic \
92
	-s storage/uao
J
Jimmy Yih 已提交
93

94
storage_persistent_accessmethods_and_vacuum:
J
Jimmy Yih 已提交
95 96 97 98
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests/storage \
	-s persistent \
	-s access_methods \
	-s vacuum \
99
	-q "class!=XidlimitsTests"
J
Jimmy Yih 已提交
100

101
storage_filerep:
J
Jimmy Yih 已提交
102
	$(TESTER) $(DISCOVER) \
103 104
	-q "class!=Mpp18816" \
	-s tincrepo/mpp/gpdb/tests/storage/filerep
J
Jimmy Yih 已提交
105

J
Jimmy Yih 已提交
106
# cs-walrepl-multinode
J
Jimmy Yih 已提交
107
# The following targets are pulled from:
J
Jimmy Yih 已提交
108
# http://pulse-cloud.gopivotal.com/admin/projects/cs-walrepl-multinode
J
Jimmy Yih 已提交
109 110 111 112
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

J
Jimmy Yih 已提交
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
walrep_multinode: walrep_1 walrep_2

walrep_1:
	$(TESTER) $(DISCOVER) -t tincrepo/mpp/gpdb/tests/storage/walrepl \
	-s gpactivatestandby \
	-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 crash \
	-s filerep \
	-s oom \
	-s regress \
	-s smart_shutdown \
	-s syncrep \
	-s walreceiver \
	-s walsender \
	-s xact \
	-q "class!=DDLTestCase" \
	-q "class!=DMLTestCase"

J
Jimmy Yih 已提交
140

J
Jimmy Yih 已提交
141
# cs-aoco-compression
J
Jimmy Yih 已提交
142
# The following targets are pulled from:
J
Jimmy Yih 已提交
143
# http://pulse-cloud.gopivotal.com/admin/projects/cs-aoco-compression
J
Jimmy Yih 已提交
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

aoco_compression: aoco_compression_large_01 aoco_compression_large_02 \
	aoco_compression_large_03 aoco_compression_large_04 \
	aoco_compression_small aoco_compression_small_serial

aoco_compression_large_01:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_large_01

aoco_compression_large_02:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_large_02

aoco_compression_large_03:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_large_03

aoco_compression_large_04:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_large_04

aoco_compression_small:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_small

aoco_compression_small_serial:
	$(TESTER) mpp.gpdb.tests.storage.aoco_compression.test_func_aococompression_small_serial

J
Jimmy Yih 已提交
170
# cs-filerep-end-to-end
J
Jimmy Yih 已提交
171
# The following targets are pulled from:
J
Jimmy Yih 已提交
172
# http://pulse-cloud.gopivotal.com/admin/projects/cs-filerep-end-to-end
J
Jimmy Yih 已提交
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

filerep_end_to_end: filerep_end_to_end_full_primary filerep_end_to_end_incr_primary \
	filerep_end_to_end_full_mirror filerep_end_to_end_incr_mirror

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


J
Jimmy Yih 已提交
193
# cs-pg-two-phase
J
Jimmy Yih 已提交
194
# The following targets are pulled from:
J
Jimmy Yih 已提交
195
# http://pulse-cloud.gopivotal.com/admin/projects/cs-pg-two-phase
J
Jimmy Yih 已提交
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

pgtwophase: test_pg_twophase_01_10 test_pg_twophase_11_20 \
	test_pg_twophase_21_30 test_pg_twophase_31_40 test_pg_twophase_41_49 \
	test_switch_01_12 test_switch_13_24 test_switch_25_33

test_pg_twophase_01_10:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_pg_twophase_01_10.py

test_pg_twophase_11_20:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_pg_twophase_11_20.py

test_pg_twophase_21_30:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_pg_twophase_21_30.py

test_pg_twophase_31_40:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_pg_twophase_31_40.py

test_pg_twophase_41_49:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_pg_twophase_41_49.py

test_switch_01_12:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_switch_01_12.py

test_switch_13_24:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_switch_13_24.py

test_switch_25_33:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/pg_twophase \
	-p test_switch_25_33.py


J
Jimmy Yih 已提交
245
# cs-fts
J
Jimmy Yih 已提交
246
# The following targets are pulled from:
J
Jimmy Yih 已提交
247
# http://pulse-cloud.gopivotal.com/admin/projects/cs-fts
J
Jimmy Yih 已提交
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

fts: fts_transitions_part01 fts_transitions_part02 fts_transitions_part03

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


J
Jimmy Yih 已提交
264
# cs-sub-transaction-limit-removal
J
Jimmy Yih 已提交
265
# The following targets are pulled from:
J
Jimmy Yih 已提交
266
# http://pulse-cloud.gopivotal.com/admin/projects/cs-sub-transaction-limit-removal
J
Jimmy Yih 已提交
267 268 269 270 271 272 273 274 275 276
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

sub_transaction_limit_removal:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/sub_transaction_limit_removal \
	-p test*.py


J
Jimmy Yih 已提交
277
# cs-filerep-schema-topology-crashrecov
J
Jimmy Yih 已提交
278
# The following targets are pulled from:
J
Jimmy Yih 已提交
279
# http://pulse-cloud.gopivotal.com/admin/projects/cs-filerep-schema-topology-crashrecov
J
Jimmy Yih 已提交
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
#
# Refer to the properties of the pulse project and individual build
# stages for configuration requirements.

filerep_schematopology_crashrecov: crash_recovery_04_10 crash_recovery_11_20 \
	crash_recovery_21_30 crash_recovery_31_42 \
	crash_recovery_filerep_end_to_end crash_recovery_schema_topology

crash_recovery_04_10:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
	-p test_suspendcheckpoint_crashrecovery_04_to_10.py

crash_recovery_11_20:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
	-p test_suspendcheckpoint_crashrecovery_11_to_20.py

crash_recovery_21_30:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
	-p test_suspendcheckpoint_crashrecovery_21_to_30.py

crash_recovery_31_42:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
	-p test_suspendcheckpoint_crashrecovery_31_to_42.py

crash_recovery_filerep_end_to_end:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
	-p test_crash_recovery_filerep.py

crash_recovery_schema_topology:
	$(TESTER) $(DISCOVER) \
	-s tincrepo/mpp/gpdb/tests/storage/crashrecovery \
316 317
	-p test_crash_recovery_schema_topology.py \
	-p test_reindex_pg_class.py
318

319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336
# Optimizer functional tests
optimizer_functional_part1:
	$(TESTER) $(DISCOVER) \
	-s partitioning \
	-s query \
	-s ddl \
	-q tags=ORCA \
	-q tags!=FEATURE_BRANCH_ONLY \
	-q tags!=dpe

optimizer_functional_part2:
	$(TESTER) $(DISCOVER) \
	-s dml \
	-s functions \
	-q tags=ORCA \
	-q tags!=FEATURE_BRANCH_ONLY \
	-q tags!=dpe

337 338 339 340 341 342 343 344
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
345 346 347 348 349

memory_accounting:
	$(TESTER) \
		resource_management.memory_accounting.test_oom.OOMTestCase \
		resource_management.memory_accounting.too_many_exec_accounts.test_exec_accounts