Repository navigation
Expand file tree
/
Copy pathfixerl_test.erl
More file actions
91 lines (77 loc) · 2.67 KB
/
Copy pathfixerl_test.erl
File metadata and controls
91 lines (77 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%% Author: Maxim Minin
%% Created: 24.06.2012
%% Description: TODO: Add description to fixerl_test
-module(fixerl_test).
%%
%% Include files
%%
-include_lib("eunit/include/eunit.hrl").
%%
%% Exported Functions
%%
-compile([export_all]).
%%
%% API Functions
%%
fixerl_4_2_proper_test_() ->
{timeout, 6000, ?_assert(test_4_2_run())}.
fixerl_4_2_resend_proper_test_() ->
{timeout, 6000, ?_assert(resend_test_4_2_run())}.
fixerl_4_2_msq_seq_num_proper_test_() ->
{timeout, 6000, ?_assert(msq_seq_num_test_4_2_run())}.
fixerl_4_0_msq_seq_num_proper_test_() ->
{timeout, 6000, ?_assert(msq_seq_num_test_4_0_run())}.
fixerl_5_0_msq_seq_num_proper_test_() ->
{timeout, 6000, ?_assert(msq_seq_num_test_5_0_run())}.
fixerl_5_0_resend_proper_test_() ->
{timeout, 6000, ?_assert(resend_test_5_0_run())}.
%%
%% Local Functions
%%
test_4_2_run() ->
fix_4_2_properstatem:setup(),
R = proper:quickcheck(proper:numtests(10, fix_4_2_properstatem:prop_master())),
%% sleep for heartbeat test ...
timer:sleep(5*1000*4),
fix_4_2_properstatem:clean(),
R.
resend_test_4_2_run() ->
application:set_env(lager, error_logger_hwm, 500),
lager:start(),
application:start(fix_convertor),
lager:set_loglevel(lager_console_backend, emergency),
R = proper:quickcheck(proper:numtests(10, fix_4_2_resend_properstatem:prop_master())),
application:stop(lager),
R.
resend_test_5_0_run() ->
application:set_env(lager, error_logger_hwm, 500),
lager:start(),
application:start(fix_convertor),
lager:set_loglevel(lager_console_backend, emergency),
R = proper:quickcheck(proper:numtests(10, fix_5_0_resend_properstatem:prop_master())),
application:stop(lager),
R.
msq_seq_num_test_5_0_run() ->
application:set_env(lager, error_logger_hwm, 500),
lager:start(),
application:start(fix_convertor),
lager:set_loglevel(lager_console_backend, emergency),
R = proper:quickcheck(proper:numtests(10, fix_5_0_msg_seq_num_properstatem:prop_master())),
application:stop(lager),
R.
msq_seq_num_test_4_2_run() ->
application:set_env(lager, error_logger_hwm, 500),
lager:start(),
application:start(fix_convertor),
lager:set_loglevel(lager_console_backend, emergency),
R = proper:quickcheck(proper:numtests(10, fix_4_2_msg_seq_num_properstatem:prop_master())),
application:stop(lager),
R.
msq_seq_num_test_4_0_run() ->
application:set_env(lager, error_logger_hwm, 500),
lager:start(),
application:start(fix_convertor),
lager:set_loglevel(lager_console_backend, emergency),
R = proper:quickcheck(proper:numtests(10, fix_4_0_msg_seq_num_properstatem:prop_master())),
application:stop(lager),
R.