Permalink
Browse files

new test/1 function

function directly imported from riak_redis_backend
to test integration with riak
  • Loading branch information...
1 parent 48af3fd commit b3fd376cc0fe182bb4a7cba69ce398061b13b7ae @videlalvaro committed Mar 13, 2010
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/rd_test.erl
View
10 src/rd_test.erl
@@ -1,6 +1,6 @@
-module(rd_test).
--export([test/0]).
+-export([test/0, test/1]).
test() ->
redis_drv:start_link(),
@@ -10,4 +10,10 @@ test() ->
log(redis_drv:get(Key)).
log(Msg) ->
- io:format("Log: ~p~n", [Msg]).
+ io:format("Log: ~p~n", [Msg]).
+
+test(riak) ->
+ riak_test_util:standard_backend_test(riak_redis_backend, []),
+ fprof:apply(riak_test_util,standard_backend_test, [riak_redis_backend, []]),
+ fprof:profile(),
+ fprof:analyse([no_callers, no_details, totals]).

0 comments on commit b3fd376

Please sign in to comment.