Skip to content
Browse files

Changed rebar.config

The new PULSE tests consider a lot more side-effects and uses
pulse_gen_server, pulse_supervisor, etc.

We also need to instrument the C-code, therefore there is a line
in port_envs for setting -D PULSE.
  • Loading branch information...
1 parent d4b0b44 commit 947c3adfbd6e2fe29207c94b9ba59e22344ff132 @hanssv hanssv committed
Showing with 44 additions and 3 deletions.
  1. +44 −3 rebar.config
View
47 rebar.config
@@ -16,6 +16,9 @@
%% OS X Snow Leopard flags for 32-bit
{"darwin10.*-32$", "CFLAGS", "-m32"},
{"darwin10.*-32$", "LDFLAGS", "-arch i386"}
+
+ %% Patching the nif(s) to run w. PULSE
+ %% , {"CFLAGS", "$CFLAGS -DPULSE"}
]}.
{eunit_compile_opts, [
@@ -26,8 +29,46 @@
%%
%% NOTE: You'll have to do a "clean" to ensure everything gets compiled w/
%% the new flags!
+ %% NOTE2: You'll need a recent (1.25.2+) version of PULSE to run the tests
+ %% and a copy of the pulsified OTP componentes (pulse_gen, etc...)
+ %%
+ %% {d, 'PULSE'},
+ %%
+ %% {pulse_side_effect,
+ %% [ {bitcask_nifs, keydir_new, 0}
+ %% , {bitcask_nifs, keydir_new, 1}
+ %% , {bitcask_nifs, keydir_mark_ready, 1}
+ %% , {bitcask_nifs, keydir_put_int, 6}
+ %% , {bitcask_nifs, keydir_get_int, 2}
+ %% , {bitcask_nifs, keydir_remove, 2}
+ %% , {bitcask_nifs, keydir_remove_int, 5}
+ %% , {bitcask_nifs, keydir_copy, 1}
+ %% , {bitcask_nifs, keydir_itr_int, 4}
+ %% , {bitcask_nifs, keydir_itr_next_int, 1}
+ %% , {bitcask_nifs, keydir_itr_release, 1}
+ %% , {bitcask_nifs, keydir_info, 1}
+ %% , {bitcask_nifs, keydir_release, 1}
+ %%
+ %% , {bitcask_nifs, lock_acquire, 2}
+ %% , {bitcask_nifs, lock_release, 1}
+ %% , {bitcask_nifs, lock_readdata, 1}
+ %% , {bitcask_nifs, lock_writedata, 2}
+ %%
+ %% , {bitcask_nifs, file_open, 2}
+ %% , {bitcask_nifs, file_close, 1}
+ %% , {bitcask_nifs, file_sync, 1}
+ %% , {bitcask_nifs, file_pread, 3}
+ %% , {bitcask_nifs, file_pwrite, 3}
+ %% , {bitcask_nifs, file_read, 2}
+ %% , {bitcask_nifs, file_write, 2}
+ %% , {bitcask_nifs, file_seekbof, 1}
+ %%
+ %% , {file, '_', '_'}
+ %% , {filelib, '_', '_'}
+ %% , {os, '_', '_'} ]},
%%
-% {d, 'PULSE'},
-% {pulse_side_effect, [{bitcask, get_filestate, '_'},
-% {bitcask_nifs, keydir_get, '_'}]}
+ %% {pulse_replace_module,
+ %% [ {gen_server, pulse_gen_server}
+ %% , {application, pulse_application}
+ %% , {supervisor, pulse_supervisor} ]}
]}.

0 comments on commit 947c3ad

Please sign in to comment.
Something went wrong with that request. Please try again.