auser-poolparty 0.2.71 → 0.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +3 -0
- data/Manifest.txt +38 -81
- data/PostInstall.txt +1 -1
- data/README.txt +1 -0
- data/lib/erlang/messenger/Makefile +15 -0
- data/lib/erlang/messenger/lib/eunit/Makefile +28 -0
- data/lib/erlang/messenger/lib/eunit/ebin/autoload.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/code_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_autoexport.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_data.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_lib.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_proc.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_serial.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_server.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_striptests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_test.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tests.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/eunit_tty.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/ebin/file_monitor.beam +0 -0
- data/lib/erlang/messenger/lib/eunit/src/Makefile +46 -0
- data/lib/poolparty/dependency_resolutions/puppet.rb +1 -0
- data/lib/poolparty/modules/resourcing_dsl.rb +5 -5
- data/lib/poolparty/plugins/deploydirectory.rb +1 -1
- data/lib/poolparty/pool/resource.rb +12 -3
- data/lib/poolparty/spec/core/string.rb +8 -2
- data/lib/poolparty/spec/matchers/a_spec_extensions_base.rb +3 -1
- data/lib/poolparty/spec/matchers/have_deploydirectory.rb +11 -11
- data/lib/poolparty/spec/matchers/have_gempackage.rb +1 -1
- data/lib/poolparty/version.rb +1 -1
- data/lib/poolpartyspec.rb +1 -3
- data/poolparty.gemspec +44 -87
- data/spec/poolparty/plugins/deploydirectory_spec.rb +1 -0
- data/spec/poolparty/pool/resource_spec.rb +13 -0
- data/spec/poolparty/spec/core/string_spec.rb +57 -0
- data/website/index.html +2 -2
- metadata +43 -86
- data/lib/erlang/messenger/lib/eunit/.svn/all-wcprops +0 -53
- data/lib/erlang/messenger/lib/eunit/.svn/entries +0 -140
- data/lib/erlang/messenger/lib/eunit/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/.svn/prop-base/NOTES.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/AUTHORS.svn-base +0 -2
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/CHANGELOG.svn-base +0 -14
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/COPYING.svn-base +0 -504
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/NOTES.svn-base +0 -276
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/README.svn-base +0 -3
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/sys.config.svn-base +0 -9
- data/lib/erlang/messenger/lib/eunit/.svn/text-base/vsn.mk.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/doc/.svn/all-wcprops +0 -59
- data/lib/erlang/messenger/lib/eunit/doc/.svn/entries +0 -142
- data/lib/erlang/messenger/lib/eunit/doc/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/erlang.png.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/eunit.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/index.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/modules-frame.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/overview-summary.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/prop-base/packages-frame.html.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/edoc-info.svn-base +0 -3
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/erlang.png.svn-base +0 -0
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/eunit.html.svn-base +0 -172
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/index.html.svn-base +0 -17
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/modules-frame.html.svn-base +0 -12
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview-summary.html.svn-base +0 -984
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/overview.edoc.svn-base +0 -980
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/packages-frame.html.svn-base +0 -11
- data/lib/erlang/messenger/lib/eunit/doc/.svn/text-base/stylesheet.css.svn-base +0 -55
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/all-wcprops +0 -5
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/dir-prop-base +0 -8
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/entries +0 -28
- data/lib/erlang/messenger/lib/eunit/ebin/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/examples/.svn/all-wcprops +0 -23
- data/lib/erlang/messenger/lib/eunit/examples/.svn/entries +0 -66
- data/lib/erlang/messenger/lib/eunit/examples/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/eunit_examples.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/examples/.svn/prop-base/fib.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/eunit_examples.erl.svn-base +0 -339
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/fib.erl.svn-base +0 -19
- data/lib/erlang/messenger/lib/eunit/examples/.svn/text-base/tests.txt.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/include/.svn/all-wcprops +0 -11
- data/lib/erlang/messenger/lib/eunit/include/.svn/entries +0 -41
- data/lib/erlang/messenger/lib/eunit/include/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/include/.svn/prop-base/eunit.hrl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/include/.svn/text-base/eunit.hrl.svn-base +0 -313
- data/lib/erlang/messenger/lib/eunit/src/.svn/all-wcprops +0 -113
- data/lib/erlang/messenger/lib/eunit/src/.svn/entries +0 -259
- data/lib/erlang/messenger/lib/eunit/src/.svn/format +0 -1
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/autoload.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/code_monitor.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_autoexport.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_data.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_internal.hrl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_lib.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_proc.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_serial.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_server.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_striptests.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_test.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tests.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/eunit_tty.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/prop-base/file_monitor.erl.svn-base +0 -5
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/autoload.erl.svn-base +0 -388
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/code_monitor.erl.svn-base +0 -243
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.app.src.svn-base +0 -21
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.appup.src.svn-base +0 -1
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit.erl.svn-base +0 -196
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_autoexport.erl.svn-base +0 -102
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_data.erl.svn-base +0 -798
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_internal.hrl.svn-base +0 -48
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_lib.erl.svn-base +0 -682
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_proc.erl.svn-base +0 -552
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_serial.erl.svn-base +0 -157
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_server.erl.svn-base +0 -340
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_striptests.erl.svn-base +0 -64
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_test.erl.svn-base +0 -334
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tests.erl.svn-base +0 -45
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/eunit_tty.erl.svn-base +0 -272
- data/lib/erlang/messenger/lib/eunit/src/.svn/text-base/file_monitor.erl.svn-base +0 -409
@@ -1,313 +0,0 @@
|
|
1
|
-
%% This library is free software; you can redistribute it and/or modify
|
2
|
-
%% it under the terms of the GNU Lesser General Public License as
|
3
|
-
%% published by the Free Software Foundation; either version 2 of the
|
4
|
-
%% License, or (at your option) any later version.
|
5
|
-
%%
|
6
|
-
%% This library is distributed in the hope that it will be useful, but
|
7
|
-
%% WITHOUT ANY WARRANTY; without even the implied warranty of
|
8
|
-
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
9
|
-
%% Lesser General Public License for more details.
|
10
|
-
%%
|
11
|
-
%% You should have received a copy of the GNU Lesser General Public
|
12
|
-
%% License along with this library; if not, write to the Free Software
|
13
|
-
%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
14
|
-
%% USA
|
15
|
-
%%
|
16
|
-
%% $Id$
|
17
|
-
%%
|
18
|
-
%% Copyright (C) 2004-2006 Micka�l R�mond, Richard Carlsson
|
19
|
-
|
20
|
-
%% Including this file turns on testing and defines TEST, unless NOTEST
|
21
|
-
%% is defined before the file is included. If both NOTEST and TEST are
|
22
|
-
%% already defined, then TEST takes precedence, and NOTEST will become
|
23
|
-
%% undefined.
|
24
|
-
%%
|
25
|
-
%% If including this file causes TEST to be defined, then NOASSERT will
|
26
|
-
%% be undefined, even if it was previously defined. If both ASSERT and
|
27
|
-
%% NOASSERT are defined before the file is included, then ASSERT takes
|
28
|
-
%% precedence, and NOASSERT will become undefined regardless of TEST.
|
29
|
-
%%
|
30
|
-
%% After including this file, EUNIT will be defined if and only if TEST
|
31
|
-
%% is defined.
|
32
|
-
|
33
|
-
-ifndef(EUNIT_HRL).
|
34
|
-
-define(EUNIT_HRL, true).
|
35
|
-
|
36
|
-
%% allow defining TEST to override NOTEST
|
37
|
-
-ifdef(TEST).
|
38
|
-
-undef(NOTEST).
|
39
|
-
-endif.
|
40
|
-
|
41
|
-
%% allow NODEBUG to imply NOASSERT, unless overridden below
|
42
|
-
-ifdef(NODEBUG).
|
43
|
-
-ifndef(NOASSERT).
|
44
|
-
-define(NOASSERT, true).
|
45
|
-
-endif.
|
46
|
-
-endif.
|
47
|
-
|
48
|
-
%% note that the main switch used within this file is NOTEST; however,
|
49
|
-
%% both TEST and EUNIT may be used to check whether testing is enabled
|
50
|
-
-ifndef(NOTEST).
|
51
|
-
-undef(NOASSERT). % testing requires that assertions are enabled
|
52
|
-
-ifndef(TEST).
|
53
|
-
-define(TEST, true).
|
54
|
-
-endif.
|
55
|
-
-ifndef(EUNIT).
|
56
|
-
-define(EUNIT, true).
|
57
|
-
-endif.
|
58
|
-
-else.
|
59
|
-
-undef(EUNIT).
|
60
|
-
-endif.
|
61
|
-
|
62
|
-
%% allow ASSERT to override NOASSERT (regardless of TEST/NOTEST)
|
63
|
-
-ifdef(ASSERT).
|
64
|
-
-undef(NOASSERT).
|
65
|
-
-endif.
|
66
|
-
|
67
|
-
%% Parse transforms for automatic exporting/stripping of test functions.
|
68
|
-
%% (Note that although automatic stripping is convenient, it will make
|
69
|
-
%% the code dependent on this header file and the eunit_striptests
|
70
|
-
%% module for compilation, even when testing is switched off! Using
|
71
|
-
%% -ifdef(EUNIT) around all test code makes the program more portable.)
|
72
|
-
|
73
|
-
-ifndef(EUNIT_NOAUTO).
|
74
|
-
-ifndef(NOTEST).
|
75
|
-
-compile({parse_transform, eunit_autoexport}).
|
76
|
-
-else.
|
77
|
-
-compile({parse_transform, eunit_striptests}).
|
78
|
-
-endif.
|
79
|
-
-endif.
|
80
|
-
|
81
|
-
%% All macros should be available even if testing is turned off, and
|
82
|
-
%% should preferably not require EUnit to be present at runtime.
|
83
|
-
%%
|
84
|
-
%% We must use fun-call wrappers ((fun () -> ... end)()) to avoid
|
85
|
-
%% exporting local variables, and furthermore we only use variable names
|
86
|
-
%% prefixed with "__", that hopefully will not be bound outside the fun.
|
87
|
-
|
88
|
-
%% A generic let-macro is particularly useful when writing test cases.
|
89
|
-
%% It is more compact than 'begin X = Y, Z end', and guarantees that
|
90
|
-
%% X gets a new, local binding.
|
91
|
-
%% (Note that lowercase 'let' is a reserved word.)
|
92
|
-
-ifndef(LET).
|
93
|
-
-define(LET(X,Y,Z), ((fun(X)->(Z)end)(Y))).
|
94
|
-
-endif.
|
95
|
-
|
96
|
-
%% It is important that testing code is short and readable.
|
97
|
-
%% An if-then-else macro can make some code much more compact.
|
98
|
-
%% Compare: case f(X) of true->g(X); false->h(X) end
|
99
|
-
%% and: ?IF(f(X), g(Y), h(Z))
|
100
|
-
-ifndef(IF).
|
101
|
-
-define(IF(B,T,F), (case (B) of true->(T); false->(F) end)).
|
102
|
-
-endif.
|
103
|
-
|
104
|
-
-ifdef(NOASSERT).
|
105
|
-
%% The plain assert macro should be defined to do nothing if this file
|
106
|
-
%% is included when debugging/testing is turned off.
|
107
|
-
-ifndef(assert).
|
108
|
-
-define(assert(BoolExpr),ok).
|
109
|
-
-endif.
|
110
|
-
-else.
|
111
|
-
%% The assert macro is written the way it is so as not to cause warnings
|
112
|
-
%% for clauses that cannot match, even if the expression is a constant.
|
113
|
-
-undef(assert).
|
114
|
-
-define(assert(BoolExpr),
|
115
|
-
((fun () ->
|
116
|
-
case (BoolExpr) of
|
117
|
-
true -> ok;
|
118
|
-
__V -> .erlang:error({assertion_failed,
|
119
|
-
[{module, ?MODULE},
|
120
|
-
{line, ?LINE},
|
121
|
-
{expression, (??BoolExpr)},
|
122
|
-
{expected, true},
|
123
|
-
{value, case __V of false -> __V;
|
124
|
-
_ -> {not_a_boolean,__V}
|
125
|
-
end}]})
|
126
|
-
end
|
127
|
-
end)())).
|
128
|
-
-endif.
|
129
|
-
-define(assertNot(BoolExpr), ?assert(not (BoolExpr))).
|
130
|
-
|
131
|
-
-define(_test(Expr), {?LINE, fun () -> (Expr) end}).
|
132
|
-
|
133
|
-
-define(_assert(BoolExpr), ?_test(?assert(BoolExpr))).
|
134
|
-
|
135
|
-
-define(_assertNot(BoolExpr), ?_assert(not (BoolExpr))).
|
136
|
-
|
137
|
-
%% This is mostly a convenience which gives more detailed reports.
|
138
|
-
%% Note: Guard is a guarded pattern, and can not be used for value.
|
139
|
-
-ifdef(NOASSERT).
|
140
|
-
-define(assertMatch(Guard,Expr),ok).
|
141
|
-
-else.
|
142
|
-
-define(assertMatch(Guard, Expr),
|
143
|
-
((fun () ->
|
144
|
-
case (Expr) of
|
145
|
-
Guard -> ok;
|
146
|
-
__V -> .erlang:error({assertMatch_failed,
|
147
|
-
[{module, ?MODULE},
|
148
|
-
{line, ?LINE},
|
149
|
-
{expression, (??Expr)},
|
150
|
-
{expected, (??Guard)},
|
151
|
-
{value, __V}]})
|
152
|
-
end
|
153
|
-
end)())).
|
154
|
-
-endif.
|
155
|
-
-define(_assertMatch(Guard, Expr), ?_test(?assertMatch(Guard, Expr))).
|
156
|
-
|
157
|
-
%% This is a convenience macro which gives more detailed reports when
|
158
|
-
%% the expected LHS value is not a pattern, but a computed value
|
159
|
-
-ifdef(NOASSERT).
|
160
|
-
-define(assertEqual(Expect,Expr),ok).
|
161
|
-
-else.
|
162
|
-
-define(assertEqual(Expect, Expr),
|
163
|
-
((fun (__X) ->
|
164
|
-
case (Expr) of
|
165
|
-
__X -> ok;
|
166
|
-
__V -> .erlang:error({assertEqual_failed,
|
167
|
-
[{module, ?MODULE},
|
168
|
-
{line, ?LINE},
|
169
|
-
{expression, (??Expr)},
|
170
|
-
{expected, __X},
|
171
|
-
{value, __V}]})
|
172
|
-
end
|
173
|
-
end)(Expect))).
|
174
|
-
-endif.
|
175
|
-
-define(_assertEqual(Expect, Expr), ?_test(?assertEqual(Expect, Expr))).
|
176
|
-
|
177
|
-
%% Note: Class and Term are patterns, and can not be used for value.
|
178
|
-
-ifdef(NOASSERT).
|
179
|
-
-define(assertException(Class, Term, Expr),ok).
|
180
|
-
-else.
|
181
|
-
-define(assertException(Class, Term, Expr),
|
182
|
-
((fun () ->
|
183
|
-
try (Expr) of
|
184
|
-
__V -> .erlang:error({assertException_failed,
|
185
|
-
[{module, ?MODULE},
|
186
|
-
{line, ?LINE},
|
187
|
-
{expression, (??Expr)},
|
188
|
-
{expected,
|
189
|
-
"{ "++(??Class)++" , "++(??Term)
|
190
|
-
++" , [...] }"},
|
191
|
-
{unexpected_success, __V}]})
|
192
|
-
catch
|
193
|
-
Class:Term -> ok;
|
194
|
-
__C:__T ->
|
195
|
-
.erlang:error({assertException_failed,
|
196
|
-
[{module, ?MODULE},
|
197
|
-
{line, ?LINE},
|
198
|
-
{expression, (??Expr)},
|
199
|
-
{expected,
|
200
|
-
"{ "++(??Class)++" , "++(??Term)
|
201
|
-
++" , [...] }"},
|
202
|
-
{unexpected_exception,
|
203
|
-
{__C, __T, erlang:get_stacktrace()}}]})
|
204
|
-
end
|
205
|
-
end)())).
|
206
|
-
-endif.
|
207
|
-
|
208
|
-
-define(assertError(Term, Expr), ?assertException(error, Term, Expr)).
|
209
|
-
-define(assertExit(Term, Expr), ?assertException(exit, Term, Expr)).
|
210
|
-
-define(assertThrow(Term, Expr), ?assertException(throw, Term, Expr)).
|
211
|
-
|
212
|
-
-define(_assertException(Class, Term, Expr),
|
213
|
-
?_test(?assertException(Class, Term, Expr))).
|
214
|
-
-define(_assertError(Term, Expr), ?_assertException(error, Term, Expr)).
|
215
|
-
-define(_assertExit(Term, Expr), ?_assertException(exit, Term, Expr)).
|
216
|
-
-define(_assertThrow(Term, Expr), ?_assertException(throw, Term, Expr)).
|
217
|
-
|
218
|
-
%% Macros for running operating system commands. (Note that these
|
219
|
-
%% require EUnit to be present at runtime, or at least eunit_lib.)
|
220
|
-
|
221
|
-
%% these can be used for simply running commands in a controlled way
|
222
|
-
-define(_cmd_(Cmd), (.eunit_lib:command(Cmd))).
|
223
|
-
-define(cmdStatus(N, Cmd),
|
224
|
-
((fun () ->
|
225
|
-
case ?_cmd_(Cmd) of
|
226
|
-
{(N), __Out} -> __Out;
|
227
|
-
{__N, _} -> .erlang:error({command_failed,
|
228
|
-
[{module, ?MODULE},
|
229
|
-
{line, ?LINE},
|
230
|
-
{command, (Cmd)},
|
231
|
-
{expected_status,(N)},
|
232
|
-
{status,__N}]})
|
233
|
-
end
|
234
|
-
end)())).
|
235
|
-
-define(_cmdStatus(N, Cmd), ?_test(?cmdStatus(N, Cmd))).
|
236
|
-
-define(cmd(Cmd), ?cmdStatus(0, Cmd)).
|
237
|
-
-define(_cmd(Cmd), ?_test(?cmd(Cmd))).
|
238
|
-
|
239
|
-
%% these are only used for testing; they always return 'ok' on success,
|
240
|
-
%% and have no effect if debugging/testing is turned off
|
241
|
-
-ifdef(NOASSERT).
|
242
|
-
-define(assertCmdStatus(N, Cmd),ok).
|
243
|
-
-else.
|
244
|
-
-define(assertCmdStatus(N, Cmd),
|
245
|
-
((fun () ->
|
246
|
-
case ?_cmd_(Cmd) of
|
247
|
-
{(N), _} -> ok;
|
248
|
-
{__N, _} -> .erlang:error({assertCmd_failed,
|
249
|
-
[{module, ?MODULE},
|
250
|
-
{line, ?LINE},
|
251
|
-
{command, (Cmd)},
|
252
|
-
{expected_status,(N)},
|
253
|
-
{status,__N}]})
|
254
|
-
end
|
255
|
-
end)())).
|
256
|
-
-endif.
|
257
|
-
-define(assertCmd(Cmd), ?assertCmdStatus(0, Cmd)).
|
258
|
-
|
259
|
-
-ifdef(NOASSERT).
|
260
|
-
-define(assertCmdOutput(T, Cmd),ok).
|
261
|
-
-else.
|
262
|
-
-define(assertCmdOutput(T, Cmd),
|
263
|
-
((fun () ->
|
264
|
-
case ?_cmd_(Cmd) of
|
265
|
-
{_, (T)} -> ok;
|
266
|
-
{_, __T} -> .erlang:error({assertCmdOutput_failed,
|
267
|
-
[{module, ?MODULE},
|
268
|
-
{line, ?LINE},
|
269
|
-
{command,(Cmd)},
|
270
|
-
{expected_output,(T)},
|
271
|
-
{output,__T}]})
|
272
|
-
end
|
273
|
-
end)())).
|
274
|
-
-endif.
|
275
|
-
|
276
|
-
-define(_assertCmdStatus(N, Cmd), ?_test(?assertCmdStatus(N, Cmd))).
|
277
|
-
-define(_assertCmd(Cmd), ?_test(?assertCmd(Cmd))).
|
278
|
-
-define(_assertCmdOutput(T, Cmd), ?_test(?assertCmdOutput(T, Cmd))).
|
279
|
-
|
280
|
-
%% Macros to simplify debugging (in particular, they work even when the
|
281
|
-
%% standard output is being redirected by EUnit while running tests)
|
282
|
-
|
283
|
-
-ifdef(NODEBUG).
|
284
|
-
-define(debugMsg(S), ok).
|
285
|
-
-define(debugHere, ok).
|
286
|
-
-define(debugFmt(S, As), ok).
|
287
|
-
-define(debugVal(E), (E)).
|
288
|
-
-define(debugTime(S,E), (E)).
|
289
|
-
-else.
|
290
|
-
-define(debugMsg(S),
|
291
|
-
(begin
|
292
|
-
io:fwrite(user, <<"~s:~w: ~s\n">>,
|
293
|
-
[?FILE, ?LINE, S]),
|
294
|
-
ok
|
295
|
-
end)).
|
296
|
-
-define(debugHere, (?debugMsg("<-"))).
|
297
|
-
-define(debugFmt(S, As), (?debugMsg(io_lib:format((S), (As))))).
|
298
|
-
-define(debugVal(E),
|
299
|
-
((fun (__V) ->
|
300
|
-
?debugFmt(<<"~s = ~P">>, [(??E), __V, 15]),
|
301
|
-
__V
|
302
|
-
end)(E))).
|
303
|
-
-define(debugTime(S,E),
|
304
|
-
((fun () ->
|
305
|
-
{__T0, _} = statistics(wall_clock),
|
306
|
-
__V = (E),
|
307
|
-
{__T1, _} = statistics(wall_clock),
|
308
|
-
?debugFmt(<<"~s: ~.3f s">>, [(S), (__T1-__T0)/1000]),
|
309
|
-
__V
|
310
|
-
end)())).
|
311
|
-
-endif.
|
312
|
-
|
313
|
-
-endif. % EUNIT_HRL
|
@@ -1,113 +0,0 @@
|
|
1
|
-
K 25
|
2
|
-
svn:wc:ra_dav:version-url
|
3
|
-
V 38
|
4
|
-
/contribs/!svn/ver/258/trunk/eunit/src
|
5
|
-
END
|
6
|
-
eunit_tests.erl
|
7
|
-
K 25
|
8
|
-
svn:wc:ra_dav:version-url
|
9
|
-
V 54
|
10
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_tests.erl
|
11
|
-
END
|
12
|
-
eunit_proc.erl
|
13
|
-
K 25
|
14
|
-
svn:wc:ra_dav:version-url
|
15
|
-
V 53
|
16
|
-
/contribs/!svn/ver/256/trunk/eunit/src/eunit_proc.erl
|
17
|
-
END
|
18
|
-
autoload.erl
|
19
|
-
K 25
|
20
|
-
svn:wc:ra_dav:version-url
|
21
|
-
V 51
|
22
|
-
/contribs/!svn/ver/238/trunk/eunit/src/autoload.erl
|
23
|
-
END
|
24
|
-
eunit.app.src
|
25
|
-
K 25
|
26
|
-
svn:wc:ra_dav:version-url
|
27
|
-
V 52
|
28
|
-
/contribs/!svn/ver/211/trunk/eunit/src/eunit.app.src
|
29
|
-
END
|
30
|
-
eunit_server.erl
|
31
|
-
K 25
|
32
|
-
svn:wc:ra_dav:version-url
|
33
|
-
V 55
|
34
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_server.erl
|
35
|
-
END
|
36
|
-
eunit_lib.erl
|
37
|
-
K 25
|
38
|
-
svn:wc:ra_dav:version-url
|
39
|
-
V 52
|
40
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_lib.erl
|
41
|
-
END
|
42
|
-
eunit_data.erl
|
43
|
-
K 25
|
44
|
-
svn:wc:ra_dav:version-url
|
45
|
-
V 53
|
46
|
-
/contribs/!svn/ver/253/trunk/eunit/src/eunit_data.erl
|
47
|
-
END
|
48
|
-
eunit.appup.src
|
49
|
-
K 25
|
50
|
-
svn:wc:ra_dav:version-url
|
51
|
-
V 54
|
52
|
-
/contribs/!svn/ver/211/trunk/eunit/src/eunit.appup.src
|
53
|
-
END
|
54
|
-
eunit_autoexport.erl
|
55
|
-
K 25
|
56
|
-
svn:wc:ra_dav:version-url
|
57
|
-
V 59
|
58
|
-
/contribs/!svn/ver/258/trunk/eunit/src/eunit_autoexport.erl
|
59
|
-
END
|
60
|
-
code_monitor.erl
|
61
|
-
K 25
|
62
|
-
svn:wc:ra_dav:version-url
|
63
|
-
V 55
|
64
|
-
/contribs/!svn/ver/238/trunk/eunit/src/code_monitor.erl
|
65
|
-
END
|
66
|
-
eunit_serial.erl
|
67
|
-
K 25
|
68
|
-
svn:wc:ra_dav:version-url
|
69
|
-
V 55
|
70
|
-
/contribs/!svn/ver/249/trunk/eunit/src/eunit_serial.erl
|
71
|
-
END
|
72
|
-
eunit_internal.hrl
|
73
|
-
K 25
|
74
|
-
svn:wc:ra_dav:version-url
|
75
|
-
V 57
|
76
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_internal.hrl
|
77
|
-
END
|
78
|
-
eunit_test.erl
|
79
|
-
K 25
|
80
|
-
svn:wc:ra_dav:version-url
|
81
|
-
V 53
|
82
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_test.erl
|
83
|
-
END
|
84
|
-
eunit.erl
|
85
|
-
K 25
|
86
|
-
svn:wc:ra_dav:version-url
|
87
|
-
V 48
|
88
|
-
/contribs/!svn/ver/249/trunk/eunit/src/eunit.erl
|
89
|
-
END
|
90
|
-
eunit_tty.erl
|
91
|
-
K 25
|
92
|
-
svn:wc:ra_dav:version-url
|
93
|
-
V 52
|
94
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_tty.erl
|
95
|
-
END
|
96
|
-
file_monitor.erl
|
97
|
-
K 25
|
98
|
-
svn:wc:ra_dav:version-url
|
99
|
-
V 55
|
100
|
-
/contribs/!svn/ver/250/trunk/eunit/src/file_monitor.erl
|
101
|
-
END
|
102
|
-
eunit_striptests.erl
|
103
|
-
K 25
|
104
|
-
svn:wc:ra_dav:version-url
|
105
|
-
V 59
|
106
|
-
/contribs/!svn/ver/238/trunk/eunit/src/eunit_striptests.erl
|
107
|
-
END
|
108
|
-
Makefile
|
109
|
-
K 25
|
110
|
-
svn:wc:ra_dav:version-url
|
111
|
-
V 47
|
112
|
-
/contribs/!svn/ver/245/trunk/eunit/src/Makefile
|
113
|
-
END
|
@@ -1,259 +0,0 @@
|
|
1
|
-
8
|
2
|
-
|
3
|
-
dir
|
4
|
-
263
|
5
|
-
http://svn.process-one.net/contribs/trunk/eunit/src
|
6
|
-
http://svn.process-one.net/contribs
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
2008-10-02T07:09:39.920718Z
|
11
|
-
258
|
12
|
-
rcarlsson
|
13
|
-
|
14
|
-
|
15
|
-
svn:special svn:externals svn:needs-lock
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
5c723cce-c907-0410-9aa2-ab8348fff7a4
|
28
|
-
|
29
|
-
eunit_tests.erl
|
30
|
-
file
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
2008-10-18T23:25:36.000000Z
|
36
|
-
7bf5a76dd440923990c7b484df953d88
|
37
|
-
2007-11-15T10:23:54.688786Z
|
38
|
-
238
|
39
|
-
mremond
|
40
|
-
has-props
|
41
|
-
|
42
|
-
eunit_proc.erl
|
43
|
-
file
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
2008-10-18T23:25:36.000000Z
|
49
|
-
03043c0e066a109082097aef890fc37c
|
50
|
-
2008-09-29T17:42:21.837614Z
|
51
|
-
256
|
52
|
-
rcarlsson
|
53
|
-
has-props
|
54
|
-
|
55
|
-
autoload.erl
|
56
|
-
file
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
2008-10-18T23:25:36.000000Z
|
62
|
-
5e5050f0ad965ea25cb9ad302da9a217
|
63
|
-
2007-11-15T10:23:54.688786Z
|
64
|
-
238
|
65
|
-
mremond
|
66
|
-
has-props
|
67
|
-
|
68
|
-
eunit.app.src
|
69
|
-
file
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
2008-10-18T23:25:36.000000Z
|
75
|
-
3cf609893ad581006db46c7faccc018e
|
76
|
-
2007-05-05T14:47:04.988837Z
|
77
|
-
211
|
78
|
-
rcarlsson
|
79
|
-
|
80
|
-
eunit_server.erl
|
81
|
-
file
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
2008-10-18T23:25:36.000000Z
|
87
|
-
dbc03f7a823600ddee4be9a1b9390a44
|
88
|
-
2007-11-15T10:23:54.688786Z
|
89
|
-
238
|
90
|
-
mremond
|
91
|
-
has-props
|
92
|
-
|
93
|
-
eunit_lib.erl
|
94
|
-
file
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
2008-10-18T23:25:36.000000Z
|
100
|
-
e56a109d2b0ca2a4f0fea79b171345c0
|
101
|
-
2007-11-15T10:23:54.688786Z
|
102
|
-
238
|
103
|
-
mremond
|
104
|
-
has-props
|
105
|
-
|
106
|
-
eunit_data.erl
|
107
|
-
file
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
2008-10-18T23:25:36.000000Z
|
113
|
-
9991ae2d9a13cc8daa2afa605687459f
|
114
|
-
2008-09-29T17:13:43.707110Z
|
115
|
-
253
|
116
|
-
rcarlsson
|
117
|
-
has-props
|
118
|
-
|
119
|
-
eunit.appup.src
|
120
|
-
file
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
2008-10-18T23:25:36.000000Z
|
126
|
-
cb8fccb1c3eb4716a1497a2acaca200b
|
127
|
-
2007-05-05T14:47:04.988837Z
|
128
|
-
211
|
129
|
-
rcarlsson
|
130
|
-
|
131
|
-
eunit_autoexport.erl
|
132
|
-
file
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
2008-10-18T23:25:36.000000Z
|
138
|
-
5d1044347abc3dea56ca96165172ef6e
|
139
|
-
2008-10-02T07:09:39.920718Z
|
140
|
-
258
|
141
|
-
rcarlsson
|
142
|
-
has-props
|
143
|
-
|
144
|
-
code_monitor.erl
|
145
|
-
file
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
2008-10-18T23:25:36.000000Z
|
151
|
-
f572097b0ec7cafd2089f56a5eb7f9fe
|
152
|
-
2007-11-15T10:23:54.688786Z
|
153
|
-
238
|
154
|
-
mremond
|
155
|
-
has-props
|
156
|
-
|
157
|
-
eunit_serial.erl
|
158
|
-
file
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
2008-10-18T23:25:36.000000Z
|
164
|
-
cbef3435db2217b039b3a2c5ac1a9b4f
|
165
|
-
2008-05-11T20:06:45.605499Z
|
166
|
-
249
|
167
|
-
rcarlsson
|
168
|
-
has-props
|
169
|
-
|
170
|
-
eunit_internal.hrl
|
171
|
-
file
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
2008-10-18T23:25:36.000000Z
|
177
|
-
5004ef0c3c46afc59168be7f84f4d72e
|
178
|
-
2007-11-15T10:23:54.688786Z
|
179
|
-
238
|
180
|
-
mremond
|
181
|
-
has-props
|
182
|
-
|
183
|
-
eunit_test.erl
|
184
|
-
file
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
2008-10-18T23:25:36.000000Z
|
190
|
-
5002627123543a66a63ae39c2a9b8241
|
191
|
-
2007-11-15T10:23:54.688786Z
|
192
|
-
238
|
193
|
-
mremond
|
194
|
-
has-props
|
195
|
-
|
196
|
-
eunit.erl
|
197
|
-
file
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
2008-10-18T23:25:36.000000Z
|
203
|
-
6f5f15caa627e0ae275ccadcfc028acc
|
204
|
-
2008-05-11T20:06:45.605499Z
|
205
|
-
249
|
206
|
-
rcarlsson
|
207
|
-
has-props
|
208
|
-
|
209
|
-
eunit_tty.erl
|
210
|
-
file
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
2008-10-18T23:25:36.000000Z
|
216
|
-
81a970f0ac5baf4bb85175b7e135f1aa
|
217
|
-
2007-11-15T10:23:54.688786Z
|
218
|
-
238
|
219
|
-
mremond
|
220
|
-
has-props
|
221
|
-
|
222
|
-
file_monitor.erl
|
223
|
-
file
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
2008-10-18T23:25:36.000000Z
|
229
|
-
f2f7a2d45511f1990ed14e243bfaf563
|
230
|
-
2008-08-23T09:12:02.363609Z
|
231
|
-
250
|
232
|
-
rcarlsson
|
233
|
-
has-props
|
234
|
-
|
235
|
-
eunit_striptests.erl
|
236
|
-
file
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
2008-10-18T23:25:36.000000Z
|
242
|
-
1c4d2c7395132297628b6774ab39d327
|
243
|
-
2007-11-15T10:23:54.688786Z
|
244
|
-
238
|
245
|
-
mremond
|
246
|
-
has-props
|
247
|
-
|
248
|
-
Makefile
|
249
|
-
file
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
2008-10-18T23:25:36.000000Z
|
255
|
-
eb300b5f8d4ca4ce302536227aaf97fb
|
256
|
-
2008-01-31T21:22:36.813745Z
|
257
|
-
245
|
258
|
-
rcarlsson
|
259
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
8
|