summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-06-07 11:43:39 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-06-07 11:43:39 +0100
commitad7be9810efa313d75c8bdec22d6689db747be66 (patch)
tree2d4f3a0d6b3738d6b771ec2b88191d19c47d2166
parent95d07287b4007af9f763ff3be7e39eee0d9bbc04 (diff)
downloadrabbitmq-server-git-ad7be9810efa313d75c8bdec22d6689db747be66.tar.gz
erl_call treats all communication with the node as success, so try to emulate it.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a347689b1b..7ca68f2008 100644
--- a/Makefile
+++ b/Makefile
@@ -161,8 +161,11 @@ run-node: all
RABBITMQ_SERVER_START_ARGS="$(RABBITMQ_SERVER_START_ARGS)" \
./scripts/rabbitmq-server
+# erl_call treats all communication with the node as success, so we
+# have to emulate it.
run-tests: all
- echo "rabbit_tests:all_tests()." | $(ERL_CALL)
+ erl -sname foo -noinput -eval \
+ "case rpc:call(rabbit@$(shell hostname -s), rabbit_tests, all_tests, []) of passed -> halt(0); E -> io:format(\"~n~p~n~n\", [E]), halt(1) end."
start-background-node:
$(BASIC_SCRIPT_ENVIRONMENT_SETTINGS) \