mirror of https://gitee.com/bigwinds/arangodb
added valgrind sleep
This commit is contained in:
parent
91d054deef
commit
7836af42cc
17
Makefile.in
17
Makefile.in
|
@ -3066,9 +3066,11 @@ start-server:
|
||||||
@echo "================================================================================"
|
@echo "================================================================================"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
@rm -f "$(PIDFILE)"
|
rm -f "$(PIDFILE)"
|
||||||
@rm -rf "$(VOCDIR)"
|
rm -rf "$(VOCDIR)"
|
||||||
@mkdir -p "$(VOCDIR)"
|
mkdir -p "$(VOCDIR)"
|
||||||
|
|
||||||
|
@test -d "$(VOCDIR)"
|
||||||
|
|
||||||
($(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) --pid-file $(PIDFILE) --watch-process $(PID) --server.http-port $(VOCHOST):$(VOCPORT) && rm -rf "$(VOCDIR)") &
|
($(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) --pid-file $(PIDFILE) --watch-process $(PID) --server.http-port $(VOCHOST):$(VOCPORT) && rm -rf "$(VOCDIR)") &
|
||||||
|
|
||||||
|
@ -3080,7 +3082,6 @@ start-server:
|
||||||
curl -sS http://$(VOCHOST):$(VOCPORT)/_api/version
|
curl -sS http://$(VOCHOST):$(VOCPORT)/_api/version
|
||||||
|
|
||||||
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -3128,7 +3129,6 @@ unittests-shell-server:
|
||||||
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
.PHONY: unittests-shell-server-ahuacatl
|
.PHONY: unittests-shell-server-ahuacatl
|
||||||
|
@ -3146,7 +3146,6 @@ unittests-shell-server-ahuacatl:
|
||||||
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
.PHONY: unittests-shell-client
|
.PHONY: unittests-shell-client
|
||||||
|
@ -3163,12 +3162,11 @@ unittests-shell-client:
|
||||||
$(VALGRIND) @builddir@/arangosh $(CLIENT_OPT) --server $(VOCHOST):$(VOCPORT) "$(VOCDIR)" $(UNITTESTS_CLIENT) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangosh $(CLIENT_OPT) --server $(VOCHOST):$(VOCPORT) "$(VOCDIR)" $(UNITTESTS_CLIENT) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
kill `cat $(PIDFILE)`
|
kill `cat $(PIDFILE)`
|
||||||
while test -f $(PIDFILE); do sleep 1; done
|
|
||||||
|
|
||||||
|
while test -f $(PIDFILE); do sleep 1; done
|
||||||
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -3188,10 +3186,11 @@ unittests-http-server:
|
||||||
cd @srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ./run-tests || test "x$(FORCE)" == "x1"
|
cd @srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ./run-tests || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
kill `cat $(PIDFILE)`
|
kill `cat $(PIDFILE)`
|
||||||
|
|
||||||
while test -f $(PIDFILE); do sleep 1; done
|
while test -f $(PIDFILE); do sleep 1; done
|
||||||
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
-include Makefile.local
|
-include Makefile.local
|
||||||
|
|
|
@ -57,9 +57,11 @@ start-server:
|
||||||
@echo "================================================================================"
|
@echo "================================================================================"
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
@rm -f "$(PIDFILE)"
|
rm -f "$(PIDFILE)"
|
||||||
@rm -rf "$(VOCDIR)"
|
rm -rf "$(VOCDIR)"
|
||||||
@mkdir -p "$(VOCDIR)"
|
mkdir -p "$(VOCDIR)"
|
||||||
|
|
||||||
|
@test -d "$(VOCDIR)"
|
||||||
|
|
||||||
($(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) --pid-file $(PIDFILE) --watch-process $(PID) --server.http-port $(VOCHOST):$(VOCPORT) && rm -rf "$(VOCDIR)") &
|
($(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) --pid-file $(PIDFILE) --watch-process $(PID) --server.http-port $(VOCHOST):$(VOCPORT) && rm -rf "$(VOCDIR)") &
|
||||||
|
|
||||||
|
@ -71,7 +73,6 @@ start-server:
|
||||||
curl -sS http://$(VOCHOST):$(VOCPORT)/_api/version
|
curl -sS http://$(VOCHOST):$(VOCPORT)/_api/version
|
||||||
|
|
||||||
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -169,7 +170,6 @@ unittests-shell-server:
|
||||||
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -212,7 +212,6 @@ unittests-shell-server-ahuacatl:
|
||||||
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangod "$(VOCDIR)" $(SERVER_OPT) $(UNITTESTS_SERVER_AHUACATL) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -237,12 +236,11 @@ unittests-shell-client:
|
||||||
$(VALGRIND) @builddir@/arangosh $(CLIENT_OPT) --server $(VOCHOST):$(VOCPORT) "$(VOCDIR)" $(UNITTESTS_CLIENT) || test "x$(FORCE)" == "x1"
|
$(VALGRIND) @builddir@/arangosh $(CLIENT_OPT) --server $(VOCHOST):$(VOCPORT) "$(VOCDIR)" $(UNITTESTS_CLIENT) || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
kill `cat $(PIDFILE)`
|
kill `cat $(PIDFILE)`
|
||||||
while test -f $(PIDFILE); do sleep 1; done
|
|
||||||
|
|
||||||
|
while test -f $(PIDFILE); do sleep 1; done
|
||||||
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -263,8 +261,9 @@ unittests-http-server:
|
||||||
cd @srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ./run-tests || test "x$(FORCE)" == "x1"
|
cd @srcdir@/UnitTests/HttpInterface && ARANGO_SERVER="$(VOCHOST):$(VOCPORT)" ./run-tests || test "x$(FORCE)" == "x1"
|
||||||
|
|
||||||
kill `cat $(PIDFILE)`
|
kill `cat $(PIDFILE)`
|
||||||
|
|
||||||
while test -f $(PIDFILE); do sleep 1; done
|
while test -f $(PIDFILE); do sleep 1; done
|
||||||
|
@if [ "$(VALGRIND)" != "" ]; then sleep 60; fi
|
||||||
|
|
||||||
@rm -rf "$(VOCDIR)"
|
@rm -rf "$(VOCDIR)"
|
||||||
|
|
||||||
@echo
|
@echo
|
||||||
|
|
Loading…
Reference in New Issue