@@ -26,7 +26,7 @@
fi
if test -f $TGT; then
- prove $OPTS $TGT
+ prove -v $OPTS $TGT
else
prove $OPTS $TGT/*.t
fi
> ./test/etap/run test/etap/231-cors.t
test/etap/231-cors.t ..
test/etap/231-cors.t:257: Warning: function test_if_none_match_header/0 is
unused
test/etap/231-cors.t:432: Warning: variable 'Else' is unused
# Current time local 2014-04-14 16:04:37
# Using etap version "0.3.4"
1..28
Apache CouchDB 0.0.0 (LogLevel=info) is starting.
=INFO REPORT==== 14-Apr-2014::16:04:37 ===
application: ibrowse
exited: {shutdown,{ibrowse_app,start,[normal,[]]}}
type: temporary
Apache CouchDB has started. Time to relax.
[info] [<0.2.0>] Apache CouchDB has started on http://127.0.0.1:64397/
[info] [<0.94.0>] 127.0.0.1 - - GET / 200
ok 1 - No CORS Headers when disabled
[info] [<0.95.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 2 - No CORS Headers when disabled
[info] [<0.96.0>] 127.0.0.1 - - GET / 200
ok 3 - Specified invalid origin, no Access
[info] [<0.97.0>] 127.0.0.1 - - OPTIONS / 405
ok 4 - invalid origin
[info] [<0.98.0>] 127.0.0.1 - - OPTIONS / 204
ok 5 - test_preflight_request Access-Control-Allow-Methods ok
[info] [<0.99.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 6 - db Access-Control-Allow-Origin ok
ok 7 - db Access-Control-Expose-Headers ok
[info] [<0.100.0>] 127.0.0.1 - - PUT /etap-test-db/doc1/attachment.txt 201
[info] [<0.101.0>] 127.0.0.1 - - GET /etap-test-db/doc1?attachments=true 200
ok 8 - Response without errors
[info] [<0.102.0>] 127.0.0.1 - - PUT /etap-test-db/doc2/attachment.bin 201
[info] [<0.103.0>] 127.0.0.1 - - GET /etap-test-db/doc2/attachment.bin 206
ok 9 - Response without errors
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
ok 10 - db Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
ok 11 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 12 - check non defined host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 13 - check non defined scheme in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 14 - check host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 15 - check scheme in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 16 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 17 - db access config case mismatch
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 18 - db Access-Control-Allow-Credentials off
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 19 - db Access-Control-Allow-Credentials ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 204
ok 20 - test_preflight_request Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db 200
ok 21 - db Access-Control-Allow-Origin ok
ok 22 - db Access-Control-Expose-Headers ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS /etap-test-db 204
ok 23 - db Access-Control-Allow-Methods ok
[info] [<0.94.0>] 127.0.0.1 - - GET /etap-test-db1 200
ok 24 - db origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 25 - check non defined host:port in origin ok
[info] [<0.94.0>] 127.0.0.1 - - OPTIONS / 405
ok 26 - check non defined scheme in origin ok
# Test died abnormally: {'EXIT',
{function_clause,
[{couch_passwords,hash_admin_password,["test"]},
{erl_eval,do_apply,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5}]}}
[error] [<0.30.0>] {error_report,<0.22.0>,
{<0.30.0>,crash_report,
[[{initial_call,{etap,start_etap_server,[]}},
{pid,<0.30.0>},
{registered_name,etap_server},
{error_info,
{exit,
{badarg,
[{io,format,
[<0.22.0>,"~s~n",
[[66,97,105,108,32,111,117,116,33,32|
{'EXIT',
{function_clause,
[{couch_passwords,hash_admin_password,
["test"]},
{erl_eval,do_apply,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5},
{erl_eval,expr,5},
{escript,eval_exprs,5},
{erl_eval,local_func,5}]}}]]]},
{etap,test_server,1},
{proc_lib,init_p_do_apply,3}]},
[{io,o_request,3},
{etap,test_server,1},
{proc_lib,init_p_do_apply,3}]}},
{ancestors,[<0.2.0>]},
{messages,[done]},
{links,[]},
{dictionary,[]},
{trap_exit,false},
{status,running},
{heap_size,2584},
{stack_size,24},
{reductions,1134}],
[]]}}
Failed 2/28 subtests
Test Summary Report
-------------------
test/etap/231-cors.t (Wstat: 0 Tests: 26 Failed: 0)
Parse errors: Bad plan. You planned 28 tests but ran 26.
Files=1, Tests=26, 1 wallclock secs ( 0.05 usr 0.00 sys + 0.24 cusr 0.05
csys = 0.34 CPU)
Result: FAIL
This is on Mac OS X 10.9.2 Erlang R14B01.
On 14 Apr 2014, at 15:59 , Alexander Shorin <[email protected]> wrote:
> Could you run these tests with verbose mode? Or patch run.tpl to
> always apply -v argument to prove call?
> --
> ,,,^..^,,,
>
>
> On Mon, Apr 14, 2014 at 5:54 PM, Jan Lehnardt <[email protected]> wrote:
>> make distcheck:
>>
>> ../test/etap/231-cors.t ............................
>> Failed 3/28 subtests
signature.asc
Description: Message signed with OpenPGP using GPGMail
