forked from couchbase/testrunner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (45 loc) · 1.91 KB
/
Makefile
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
53
54
55
56
57
DIST_DIR=./dist
DIRS=b conf lib longevity pytests resources scripts unittests
FILES=Makefile README TestInput.py
SLEEP_TIME=3
.PHONY: clean testrunner test test-quick
testrunner:
mkdir -p ${DIST_DIR}/testrunner
tar -cvf ${DIST_DIR}/testrunner.tar --exclude='*.pyc' ${DIRS} ${FILES}
tar -C ${DIST_DIR}/testrunner -xvf ${DIST_DIR}/testrunner.tar
rm -f ${DIST_DIR}/testrunner.tar
tar -C ${DIST_DIR} -czvf ${DIST_DIR}/testrunner.tar.gz testrunner
clean:
rm -rf ${DIST_DIR}
test:
ifdef TESTNAME
scripts/start_cluster_and_run_tests.sh b/resources/dev.ini ${TESTNAME}
else
scripts/start_cluster_and_run_tests.sh b/resources/dev.ini conf/py-all-dev.conf
endif
simple-test:
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr.ini conf/simple.conf
test-views:
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/py-view.conf
test-viewquery:
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/py-viewquery.conf
# required before merging changes to view engine
test-views-pre-merge:
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/py-view-pre-merge.conf
# required before merging changes to view engine
test-viewmerge:
echo "Running view merge tests with single node cluster"
scripts/start_cluster_and_run_tests.sh b/resources/dev-single-node.ini conf/py-viewmerge.conf
echo "Running view merge tests with 4 nodes cluster"
sleep ${SLEEP_TIME}
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes.ini conf/py-viewmerge.conf
e2e-kv-single-node:
scripts/start_cluster_and_run_tests.sh b/resources/dev.ini conf/py-all-dev.conf
test-xdcr-merge:
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr.ini conf/py-xdcrmerge.conf
# specify number of nodes and testcase
any-test:
scripts/start_cluster_and_run_tests.sh ${NODES} ${TEST}
# specify number of nodes and test conf
any-suite:
scripts/start_cluster_and_run_tests.sh ${NODES} ${SUITE}