From 112b1f795ccd573a612208269e9b4937865445b5 Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Fri, 30 Aug 2013 14:52:08 +0200 Subject: Add test suite --- lib/common_test/test/ct_test_support.erl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib/common_test/test/ct_test_support.erl') diff --git a/lib/common_test/test/ct_test_support.erl b/lib/common_test/test/ct_test_support.erl index 4132995bf6..5512b9c242 100644 --- a/lib/common_test/test/ct_test_support.erl +++ b/lib/common_test/test/ct_test_support.erl @@ -38,7 +38,7 @@ -export([start_slave/3, slave_stop/1]). --export([ct_test_halt/1]). +-export([ct_test_halt/1, ct_rpc/2]). -include_lib("kernel/include/file.hrl"). @@ -377,6 +377,16 @@ wait_for_ct_stop(Retries, CTNode) -> wait_for_ct_stop(Retries-1, CTNode) end. +%%%----------------------------------------------------------------- +%%% ct_rpc/1 +ct_rpc({M,F,A}, Config) -> + CTNode = proplists:get_value(ct_node, Config), + Level = proplists:get_value(trace_level, Config), + test_server:format(Level, "~nCalling ~w:~w(~p) on ~p...", + [M,F,A, CTNode]), + rpc:call(CTNode, M, F, A). + + %%%----------------------------------------------------------------- %%% EVENT HANDLING -- cgit v1.2.3