Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (49 sloc) 2.315 kB
DIST_DIR=./dist
DIRS=b conf lib longevity pytests resources scripts unittests
FILES=Makefile README TestInput.py
SLEEP_TIME=3
VERBOSE=0
TESTNAME=conf/py-all-dev.conf
.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:
scripts/start_cluster_and_run_tests.sh b/resources/dev.ini $(TESTNAME)
dcp-test:
python testrunner.py -i b/resources/dev-4-nodes.ini -c conf/py-dcp.conf -p skip_cleanup=False,dev=True,test=$(TEST)
simple-test:
python scripts/start_cluster_and_run_tests.py $(MAKE) b/resources/dev-4-nodes-xdcr.ini conf/simple.conf $(VERBOSE)
#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/view-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/view-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/view-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/view-conf/py-viewmerge.conf
# required before merging 2i code
test-2i-integrations-tests:
echo "Running 2i integration tests with 4 node cluster"
scripts/start_cluster_and_run_tests.sh b/resources/dev-4-nodes-xdcr_n1ql_2i.ini conf/simple_2i_n1ql.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)
Jump to Line
Something went wrong with that request. Please try again.