Failed to test Dancer2 on ActivePerl 5.16.3.1 on Windows #516

Closed
sdeseille opened this Issue Dec 15, 2013 · 1 comment

Projects

None yet

2 participants

Contributor

I saw that Dancer2 is not available via PPM on Active Perl for Windows.
I tried to install and test it with cpan command line but also without success.

I join my standard output and error output from cpan command line.

Warning: Cannot install 2>&1, don't know what it is.
Try the command

    i /2>&1/

to find objects with matching identifiers.
Running install for module 'Dancer2'
Running make for S/SU/SUKRIA/Dancer2-0.10.tar.gz
  Has already been unwrapped into directory C:\Perl64\cpan\build\Dancer2-0.10-19JVKk
  Has already been made
Running make test
C:\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/roles/*.t t/route-pod-coverage/*.t t/template_tiny/*.t
t/00-compile.t ............................. ok
t/00-report-prereqs.t ...................... ok
t/ajax_plugin.t ............................ ok
t/any.t .................................... ok
t/app.t .................................... ok
t/auto_page.t ..............................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests
t/charset_server.t ......................... ok
t/config.t ................................. ok
t/config_app1.t ............................ ok
t/config_app2.t ............................ ok
t/config_app3.t ............................ ok
t/config_settings.t ........................ ok
t/context.t ................................ ok
t/context_trigger.t ........................ ok
t/cookie.t ................................. ok
t/custom_dsl.t ............................. ok
t/dancer-test.t ............................ ok
t/deserialize.t ............................ ok
t/dispatcher.t ............................. ok
t/dsl.t .................................... ok
t/engine.t ................................. ok
t/error.t .................................. ok
t/error_template.t ......................... ok
t/factory.t ................................ ok
t/file_utils.t ............................. ok
t/forward.t ................................ ok
t/forward_before_hook.t .................... ok
t/forward_test_tcp.t ....................... ok
t/handler_file.t ........................... ok
t/hooks.t ..................................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/6 subtests
t/http_methods.t ........................... ok
t/http_status.t ............................ ok
t/logger.t .................................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/logger_console.t ......................... ok
t/mime.t ................................... ok
t/plugin_import.t .......................... ok
t/plugin_multiple_apps.t ................... ok
t/plugin_register.t ........................ ok
t/plugin_syntax.t ..........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests
t/redirect.t ............................... ok
t/release-distmeta.t ....................... skipped: these tests are for release candidate testing
t/release-no-tabs.t ........................ skipped: these tests are for release candidate testing
t/release-pod-syntax.t ..................... skipped: these tests are for release candidate testing
t/request.t ................................ ok
t/request_params.t ......................... ok
t/request_upload.t ......................... ok
t/response.t ............................... ok
t/roles/headers.t .......................... ok
t/roles/hook.t ............................. ok
t/roles/server.t ........................... ok
t/route-pod-coverage/route-pod-coverage.t .. ok
t/route.t .................................. ok
t/runner.t .................................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/10 subtests
t/serializer.t ............................. ok
t/serializer_json.t ........................ ok
t/server.t ................................. ok
t/session_config.t ......................... ok
t/session_engines.t ........................ ok
t/session_forward.t ........................ ok
t/session_hooks.t .......................... ok
t/session_lifecycle.t ...................... ok
t/session_object.t ......................... ok
t/shared_engines.t ......................... ok
t/splat.t .................................. ok
t/template.t ............................... ok
t/template_default_tokens.t ................ ok
t/template_ext.t ...........................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests
t/template_name.t .......................... ok
t/template_simple.t ........................ ok
t/template_tiny/01_compile.t ............... ok
t/template_tiny/02_trivial.t ............... ok
t/template_tiny/03_samples.t ............... ok
t/template_tiny/04_compat.t ................ ok
t/template_tiny/05_preparse.t .............. ok
t/time.t ................................... ok
t/types.t .................................. ok
t/uri_for.t ................................ ok
t/vars.t ................................... ok

Test Summary Report
-------------------
t/auto_page.t                            (Wstat: 512 Tests: 7 Failed: 2)
  Failed tests:  6-7
  Non-zero exit status: 2
t/hooks.t                                (Wstat: 256 Tests: 6 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/logger.t                               (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
t/plugin_syntax.t                        (Wstat: 256 Tests: 4 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
t/runner.t                               (Wstat: 256 Tests: 10 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/template_ext.t                         (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
Files=78, Tests=970, 59 wallclock secs ( 0.27 usr +  0.05 sys =  0.31 CPU)
Result: FAIL
  SUKRIA/Dancer2-0.10.tar.gz
  C:\Perl64\site\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports SUKRIA/Dancer2-0.10.tar.gz
Running make install
  make test had returned bad status, won't install without force



error OUTPUT
cpan> install Dancer2 >result_test_dancer2.log 2>&1
# Prerequisite Report:
#    Version Module
#   -------- ----------------------------
#    missing CGI::Deurl::XS
#       0.23 Capture::Tiny
#       1.32 Carp
#       0.20 Class::Load
#       0.06 Class::Load::XS
#       0.24 Config::Any
#       0.29 Crypt::URandom
#       3.40 Cwd
#      2.145 Data::Dumper
#       5.85 Digest::SHA
#       2.49 Encode
#       5.67 Exporter
#       6.84 ExtUtils::MakeMaker
#       1.11 Fcntl
#       2.84 File::Basename
#       2.23 File::Copy
#       2.09 File::Path
#       3.40 File::Spec
#       3.40 File::Spec::Functions
#     0.2304 File::Temp
#       1.51 FindBin
#       2.42 Getopt::Long
#       1.17 HTTP::Body
#       6.02 HTTP::Date
#       6.05 HTTP::Headers
#       6.04 HTTP::Request::Common
#       0.16 HTTP::Server::Simple::PSGI
#      0.051 Hash::Merge::Simple
#       1.16 IO::File
#       1.33 IO::Handle
#       1.12 IPC::Open3
#       2.90 JSON
#    missing JSON::XS
#       0.06 LWP::Protocol::PSGI
#       6.04 LWP::UserAgent
#       1.27 List::Util
#       3.14 MIME::Base64
#       2.04 MIME::Types
#      1.004 Math::Random::ISAAC::XS
#     0.4203 Module::Build
#   1.003001 Moo
#   1.003001 Moo::Role
#       0.25 MooX::Types::MooseLike
#       0.25 MooX::Types::MooseLike::Base
#       1.30 POSIX
#     1.0030 Plack::Request
#       3.28 Pod::Simple::Search
#       3.28 Pod::Simple::SimpleTree
#       1.51 Pod::Usage
#   1.003002 Role::Tiny
#       1.27 Scalar::Util
#       2.25 Template
#       1.12 Template::Tiny
#   1.001002 Test::Builder
#      0.013 Test::Fatal
#       0.12 Test::MockTime
#   1.001002 Test::More
#       1.07 Test::Script
#       2.02 Test::TCP
#       1.60 URI
#       3.31 URI::Escape
#    missing URL::Encode::XS
#       0.84 YAML
#       0.84 YAML::Any
#       1.25 constant
#       0.63 lib
#       1.18 overload
#      0.225 parent
#       1.07 strict
#       1.09 utf8
#       1.02 vars
#       1.13 warnings

#   Failed test 'Found file on public with Autopage'
#   at t/auto_page.t line 36.
#          got: '404'
#     expected: '200'

#   Failed test 'Public served file as correct mime'
#   at t/auto_page.t line 38.
#                   'text/html'
#     doesn't match '(?^:text/plain)'
# Looks like you failed 2 tests of 7.
>> Dancer2 v0.10 server -956 listening on http://0.0.0.0:50647
>> Dancer2 v0.10 server -1640 listening on http://0.0.0.0:50580
>> Dancer2 v0.10 server -5884 listening on http://0.0.0.0:50435

    #   Failed test 'before_file_render was called'
    #   at t/hooks.t line 134.
    #          got: '1'
    #     expected: '2'

    #   Failed test 'after_file_render was called'
    #   at t/hooks.t line 135.
    #          got: '1'
    #     expected: '2'
    # Looks like you failed 2 tests of 4.

#   Failed test 'file render hooks'
#   at t/hooks.t line 136.
# Looks like you failed 1 test of 6.

    #   Failed test at t/logger.t line 47.
    #     Structures begin differing at:
    #          $got->[2] = HASH(0x3db2d70)
    #     $expected->[2] = Does not exist
    # Looks like you failed 1 test of 2.

#   Failed test 'log level and capture'
#   at t/logger.t line 54.
# Looks like you failed 1 test of 4.

    #   Failed test 'plugin_setting returned the expected config'
    #   at t/plugin_syntax.t line 32.
    #          got: '{}'
    #     expected: '{"plugin":"42"}'
    # Looks like you failed 1 test of 4.

#   Failed test 'global and route keywords'
#   at t/plugin_syntax.t line 39.
# Looks like you failed 1 test of 4.
# If you want extra speed, install URL::Encode::XS
# If you want extra speed, install CGI::Deurl::XS
# If you want extra speed, install URL::Encode::XS
# If you want extra speed, install CGI::Deurl::XS
# If you want extra speed, install URL::Encode::XS
# If you want extra speed, install CGI::Deurl::XS

#   Failed test 'location is set correctly'
#   at t/runner.t line 11.
#          got: 'C:\Perl64'
#     expected: 'C:\Perl64\cpan\build\Dancer2-0.10-19JVKk\t'
# Looks like you failed 1 test of 10.
>> Dancer2 v0.10 server -976 listening on http://0.0.0.0:50438
>> Dancer2 v0.10 server -4068 listening on http://0.0.0.0:50218
>> Dancer2 v0.10 server -5296 listening on http://0.0.0.0:50486
>> Dancer2 v0.10 server -4156 listening on http://0.0.0.0:50585
>> Dancer2 v0.10 server -3876 listening on http://0.0.0.0:50831
>> Dancer2 v0.10 server -3212 listening on http://0.0.0.0:50048
# Testing engine YAML
>> Dancer2 v0.10 server -4956 listening on http://0.0.0.0:50050
# Testing engine Simple
>> Dancer2 v0.10 server -5080 listening on http://0.0.0.0:50330
# Crypto strength tokens
>> Dancer2 v0.10 server -3892 listening on http://0.0.0.0:50631

#   Failed test 'view('foo') gives filename with right extension as configured'
#   at t/template_ext.t line 31.
#          got: 'C:\Perl64\views\foo.foo'
#     expected: 'C:\Perl64\cpan\build\Dancer2-0.10-19JVKk\t\views\foo.foo'
# Looks like you failed 1 test of 3.
Failed 6/78 test programs. 7/970 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
Failed during this command:
 SUKRIA/Dancer2-0.10.tar.gz                   : make_test NO
Owner

Can you try with an updated version?

@sdeseille sdeseille closed this Dec 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment