Commit Graph

36 Commits

Author SHA1 Message Date
Jon Anderson
3d4a836915 Added druuid depenency to fix g_uuid() failure in
verify_listkeys_eqcfsm.
2014-05-07 11:35:34 -04:00
Steve Vinoski
fbbacdd0b3 support for anonymous function intercepts
Allow intercept functions passed to rt_intercept:add/2 to be anonymous. In
compiled code they can either be a plain anonymous function, assuming they
don't use any variables from the surrounding context, or they can be a
2-tuple like this:

{[FreeVar1, ...],
 fun(Arg1, ...) -> ... end}

where FreeVar1 etc. is a list of free variables to be closed over so that
they can be used within the anonymous function. For making interactive
calls to rt_intercept:add/2 from the Erlang shell, only the anonymous
function form is required, even if it uses free variables, though the
2-tuple form is also acceptable.

For compiled code, support for anonymous intercept functions is implemented
via a parse transform, and so to use anonymous functions the intercept
structure(s) containing them must be defined directly inline as part of the
final argument to rt_intercept:add/2, i.e., they cannot be first assigned
to a variable that is then used within the argument. This is because the
value of such a variable might not be visible to the parse transform.

Add a description of anonymous function intercepts to the README.
2014-04-25 15:07:02 -04:00
Jared Morrow
ee27329edb Bump lager dep to 2.0.3 2014-02-13 11:16:27 -07:00
Jared Morrow
526aeaa1b2 Use full branch notation in rebar.config 2013-09-24 15:49:54 -06:00
Andrew Thompson
fa981d017c Make riak_test play nice with R16
Atoms with dots in them need to be quoted, adjust the regex in
rebar.config.
2013-07-20 00:01:15 -04:00
Andrew Thompson
89d1979c60 Upgrade to lager 2.0 and remove some lager 2.0 API abuse
Riak, EE and CS all use lager 2.0 now, riak_test should too.
2013-07-18 16:08:33 -04:00
Joe DeVivo
9b182f7ed8 moved escript from riak_test to riak_test_escript 2013-04-26 07:33:09 -07:00
Jared Morrow
2e3be5e6da Fix dep of lager so tests will run properly 2013-03-24 17:29:17 -06:00
Ryan Zezeski
c7cb386caf Pull riak http client from master
Need to pull from master or else a version mismatch occurs for the
protobuffs client.
2013-03-04 22:20:13 -05:00
Joe DeVivo
14a2d376c5 A passing full losed upgrade run 2013-02-05 13:01:01 -07:00
Joe DeVivo
a453284201 Load applied 2013-02-05 13:01:00 -07:00
Joe DeVivo
de8b81305d Thanks for nothing, proper. Now GPL free by bumping kvc to 1.3.0 2013-01-08 14:42:23 -07:00
Ryan Zezeski
d284dcfc22 Add intercepts
Intercepts provide the ability to easily and efficiently intercept
function calls.  Giving the ability to change the code being executed
as well as affect local and global state.
2012-12-20 16:14:28 -05:00
Joe DeVivo
42a165c0f9 Unpinned lager; if it loves me, it will come back 2012-12-14 08:22:48 -07:00
Joe DeVivo
f3e0420a63 Fixed mapred_verify test escript/priv issues 2012-11-09 15:54:58 -07:00
Christopher Meiklejohn
1a7949fd60 Bump lager dep to 1.2.1. 2012-09-29 16:48:26 -04:00
Dave Parfitt
8936298bac added mapred_verify to the escript def 2012-09-27 14:51:30 -04:00
Joe DeVivo
71b5a63dd8 Initial commit: Giddyup support. Runner can now set backends for a test 2012-09-19 15:09:50 -07:00
Dave Parfitt
e99c8caec4 riakc and riakhttpc bumped to 1.3.1 2012-09-17 21:31:07 -04:00
Joe DeVivo
823e3a7824 Added 1.3.0 tag to riak-erlang-http-client 2012-09-12 12:44:09 -07:00
Dave Parfitt
737df8a396 update riakc to 1.3.0 2012-09-12 15:21:27 -04:00
Russell Brown
db4e220bb3 Add client apps and the ibrowse app to included apps 2012-09-12 11:38:37 +01:00
Joe DeVivo
0ae436db4d Added riak-erlang-http-client to riak_test 2012-09-10 18:43:00 -07:00
Joe DeVivo
385e70361a Added riak-erlang-client to rebar 2012-09-10 16:55:11 -07:00
Joe DeVivo
30b98f42bb Merge from master 2012-08-30 15:57:28 -04:00
Joe DeVivo
9fc3e6a05a First pass at adding getopt to riak_test 2012-08-30 15:52:36 -04:00
Joe DeVivo
0982584548 Fixed default plugin configuration to work with riak_test script 2012-08-30 14:32:13 -04:00
Joe DeVivo
96db4736d9 First pass at adding getopt to riak_test 2012-08-29 10:06:28 -07:00
Sean Cribbs
ce8fd79eb5 Use plain clean/compile commands and add relevant paths before running a test. 2012-08-23 15:42:50 -04:00
Joe DeVivo
f93942e0d4 Updated rebar and rebar.config 2012-08-20 15:24:20 -07:00
Joe DeVivo
be2237f158 Added rebar plugin for the cleaning, compilation, and execution of riak_tests 2012-08-20 08:05:43 -07:00
Joe DeVivo
fcc8a8b0c2 Bumped Lager to 1.2.0 2012-08-16 13:07:01 -07:00
Bryan Fink
ae317532f6 run mapred_verify via mapred_verify_rt tests
- pulls in mapred_verify as a rebar dep
 - adds "deps" to rtdev in order to get mapred_verify on the path
2012-07-16 12:14:44 -04:00
Joseph Blomstedt
a2febb1ea6 Minor config changes, add rt:async_start 2012-04-02 13:42:46 -07:00
Joseph Blomstedt
1b8db5e84d Add additional utility functions
Add update_app_config/2 utility function that changes a
node's app.config file.

Add utility functions that return HTTP/PBC connection info.
2012-04-02 13:37:55 -07:00
Joseph Blomstedt
a6aec227cd Initial release 2012-01-10 17:21:39 -07:00