xref: /trunk/testrunner/Makefile (revision 869da6f9)
1DIST_DIR=./dist
2DIRS=b conf lib longevity pytests resources scripts unittests
3FILES=Makefile README TestInput.py
4SLEEP_TIME=3
5VERBOSE=0
6DEBUG=0
7TESTNAME=conf/py-all-dev.conf
8
9.PHONY: clean testrunner test test-quick
10
11testrunner:
12	mkdir -p $(DIST_DIR)/testrunner
13	tar -cvf $(DIST_DIR)/testrunner.tar --exclude='*.pyc' $(DIRS) $(FILES)
14	tar -C $(DIST_DIR)/testrunner -xvf $(DIST_DIR)/testrunner.tar
15	rm -f $(DIST_DIR)/testrunner.tar
16	tar -C $(DIST_DIR) -czvf $(DIST_DIR)/testrunner.tar.gz testrunner
17
18clean:
19	rm -rf $(DIST_DIR)
20
21test:
22	scripts/start_cluster_and_run_tests.sh b/resources/dev.ini $(TESTNAME)
23
24dcp-test:
25	python3 testrunner.py -i b/resources/dev-4-nodes.ini -c conf/py-dcp.conf -p skip_cleanup=False,dev=True,test=$(TEST)
26
27simple-test:
28	python3 scripts/start_cluster_and_run_tests.py $(MAKE) b/resources/dev-4-nodes-xdcr.ini conf/simple.conf $(VERBOSE) $(DEBUG)
29
30#test-views:
31#	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/py-view.conf
32test-viewquery:
33	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/view-conf/py-viewquery.conf
34
35# required before merging changes to view engine
36test-views-pre-merge:
37	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/view-conf/py-view-pre-merge.conf
38
39test-views-pre-merge-viewci:
40	scripts/start_cluster_and_run_tests.sh b/resources/dev-single-node.ini conf/view-conf/py-view-pre-merge-sanscreatedeleteviews.conf
41	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/view-conf/py-view-pre-merge-sanscreatedeleteviews.conf
42# required before merging changes to view engine
43test-viewmerge:
44	echo "Running view merge tests with single node cluster"
45	scripts/start_cluster_and_run_tests.sh b/resources/dev-single-node.ini conf/view-conf/py-viewmerge.conf
46	echo "Running view merge tests with 4 nodes cluster"
47	sleep $(SLEEP_TIME)
48	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/view-conf/py-viewmerge.conf
49
50test-viewmerge-viewci:
51	scripts/start_cluster_and_run_tests.sh b/resources/dev-single-node.ini conf/view-conf/py-viewmerge-sansdevview.conf
52	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/view-conf/py-viewmerge-sansdevview.conf
53
54# required before merging gsi code
55test-gsi-integrations-tests:
56	echo "Running gsi integration tests with 4 node cluster"
57	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr_n1ql_gsi.ini conf/simple_gsi_n1ql.conf 1 1 $(PARAMS)
58
59test-fts:
60	echo "Running fts 2 node cluster"
61	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr_n1ql_fts.ini conf/fts/py-fts-simpletopology.conf 1 1 get-cbcollect-info=False,GROUP=PS,fts_quota=1000,index_type=scorch,skip_log_scan=False,skip_disable_nton=True,validate_index_partition=False
62
63e2e-kv-single-node:
64	scripts/start_cluster_and_run_tests.sh b/resources/dev.ini conf/py-all-dev.conf
65
66test-eventing-sanity-tests:
67	python3 scripts/start_cluster_and_run_tests.py $(MAKE) b/resources/dev-4-nodes-xdcr_n1ql_gsi.ini conf/eventing/eventing_sanity.conf $(VERBOSE) $(DEBUG)
68
69test-xdcr-merge:
70	scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr.ini conf/py-xdcrmerge.conf
71
72# specify number of nodes and testcase
73any-test:
74	scripts/start_cluster_and_run_tests.sh $(NODES) $(TEST)
75
76# specify number of nodes and test conf
77any-suite:
78	scripts/start_cluster_and_run_tests.sh $(NODES) $(SUITE)
79