diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-10-29 15:59:10 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-10-29 15:59:10 +0100 |
commit | d79c260758e7544dd46de2adfad85d1c0bee859b (patch) | |
tree | b580925a77d14eaf1722b410bd0dabd795191a2e /Makefile | |
parent | 5a10cf6fa6fff3cbca3340a7c75120603bda18ca (diff) | |
parent | 87e02103ea3f47b825b415c415f7d2940d009b42 (diff) |
Merge remote-tracking branch 'refs/remotes/map/external-merge3' into merging-external-merge
Conflicts:
src/v1.erl
tools/merge.py
tools/testcase1.py
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -20,3 +20,36 @@ release: printf "0" > rel/db/treesize cp -r webroot rel/catlfish test -d rel/catlfish/webroot/log || mkdir rel/catlfish/webroot/log + +tests-prepare: + -rm -r rel/known_roots + mkdir rel/known_roots + cp tools/testcerts/roots/* rel/known_roots + + mkdir -p test/nodes/frontend-1/log + mkdir -p test/nodes/storage-1/log + mkdir -p test/nodes/storage-2/log + cp test/config/frontend-1.config rel + cp test/config/storage-1.config rel + -rm -r rel/tests + mkdir -p rel/tests/machine/machine-1/db + printf "0" > rel/tests/machine/machine-1/db/treesize + mkdir -p rel/tests/machine/machine-2/db + printf "0" > rel/tests/machine/machine-2/db/treesize + touch rel/tests/machine/machine-1/db/index + touch rel/tests/machine/machine-1/db/newentries + +tests-start: + (cd rel ; bin/run_erl -daemon ../test/nodes/frontend-1/ ../test/nodes/frontend-1/log/ "exec bin/erl -config frontend-1 -name frontend-1") + (cd rel ; bin/run_erl -daemon ../test/nodes/storage-1/ ../test/nodes/storage-1/log/ "exec bin/erl -config storage-1 -name storage-1") + sleep 1 + +tests-run: + (cd tools ; python testcase1.py ) || echo "Tests failed" + +tests-stop: + sleep 5 + echo "halt()." | ./rel/bin/to_erl test/nodes/frontend-1/ + echo "halt()." | ./rel/bin/to_erl test/nodes/storage-1/ + +tests: tests-prepare tests-start tests-run tests-stop |