NIST-NVD-Store-SQLite3 v1.02.00 Perl 5 v5.34.0 x86_64-linux

Status
Fail
From
Slaven Rezić
Dist
NIST-NVD-Store-SQLite3 v1.02.00
Platform
Perl 5 v5.34.0 x86_64-linux
Date
2022-03-27 17:12:50
ID
21663308-adf1-11ec-9e88-fa231f24ea8f
This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language.  See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org


--
Dear C.J. Collier,

This is a computer-generated report for NIST-NVD-Store-SQLite3-1.02.00
on perl 5.34.0, created by CPAN-Reporter-1.2018.

Thank you for uploading your work to CPAN.  However, there was a problem
testing your distribution.

If you think this report is invalid, please consult the CPAN Testers Wiki
for suggestions on how to avoid getting FAIL reports for missing library
or binary dependencies, unsupported operating systems, and so on:

http://wiki.cpantesters.org/wiki/CPANAuthorNotes

Sections of this report:

    * Tester comments
    * Program output
    * Prerequisites
    * Environment and other context

------------------------------
TESTER COMMENTS
------------------------------

Additional comments from tester:

none provided

------------------------------
PROGRAM OUTPUT
------------------------------

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 "/opt/perl-5.34.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing NIST::NVD::Store::SQLite3 1.02.00, Perl 5.034000, /opt/perl-5.34.0/bin/perl
t/00-load.t ......... ok

#   Failed test '[/home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/t/data/nvdcve-2.0-test.xml] is a file'
#   at t/01-load-nvdcve.t line 38.
# running /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/blib/script/convert-nvdcve --nvd /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/t/data/nvdcve-2.0-test.xml --cwe /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/t/data/cwec_v2.1.xml --store SQLite3 2>&1

#   Failed test 'conversion script returned cleanly'
#   at t/01-load-nvdcve.t line 67.
#          got: '512'
#     expected: '0'
# using store [SQLite3]
# reading NVDs from file: /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/t/data/nvdcve-2.0-test.xml...couldn't open "/home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/t/data/nvdcve-2.0-test.xml": No such file or directory at /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/blib/script/convert-nvdcve line 154.
file_writeable_ok is now file_writable_ok at t/01-load-nvdcve.t line 71.
# Looks like you failed 2 tests of 21.
t/01-load-nvdcve.t .. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/21 subtests 
t/critic.t .......... skipped: Author test.  Set $ENV{RELEASE_TESTING} to a true value to run.

#   Failed test 'cpe pk id is defined'
#   at t/cwe.t line 40.

#   Failed test 'cpe pk id is an integer for cpe urn [cpe:/a:apple:safari:4.0]'
#   at t/cwe.t line 42.
#                   undef
#     doesn't match '(?^:^\d+$)'

#   Failed test 'one and only one result for the query'
#   at t/cwe.t line 76.
#          got: '0'
#     expected: '1'
# $VAR1 = {
#           'id' => 'cpe:/a:apple:safari:4.0',
#           'query' => '
# SELECT id FROM cpe WHERE cpe.urn=?
# '
#         };

#   Failed test 'direct query returned > 0 results'
#   at t/cwe.t line 113.
# $VAR1 = {
#           'query' => '
# SELECT cve.cve_id
#   FROM cpe_cve_map,cve
#  WHERE cpe_cve_map.cpe_id=?
#    AND cpe_cve_map.cve_id=cve.id
# ORDER BY cve.cve_id
# ',
#           'id' => undef
#         };

#   Failed test 'more than 0 results for method [cve_for_cpe]'
#   at t/cwe.t line 122.
# $->cve_for_cpe( cpe => cpe:/a:apple:safari:4.0 )

#   Failed test 'direct query returned > 0 results'
#   at t/cwe.t line 113.
# $VAR1 = {
#           'query' => '
# SELECT cwe.cwe_id
#   FROM cpe_cwe_map,cwe
#  WHERE cpe_cwe_map.cpe_id=?
#    AND cpe_cwe_map.cwe_id=cwe.id
# ORDER BY cwe.cwe_id
# ',
#           'id' => undef
#         };

#   Failed test 'more than 0 results for method [cwe_for_cpe]'
#   at t/cwe.t line 122.
# $->cwe_for_cpe( cpe => cpe:/a:apple:safari:4.0 )
Use of uninitialized value $args{"cwe_id"} in pattern match (m//) at /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/blib/lib/NIST/NVD/Store/SQLite3.pm line 545.
Use of uninitialized value $args{"cwe_id"} in concatenation (.) or string at /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/blib/lib/NIST/NVD/Store/SQLite3.pm line 545.
cwe_id [] is malformed at /home/cpansand/.cpan/build/2022032709/NIST-NVD-Store-SQLite3-1.02.00-2/blib/lib/NIST/NVD/Store/SQLite3.pm line 545.
# Looks like your test exited with 2 just after 20.
t/cwe.t ............. 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 9/22 subtests 

#   Failed test 'correct number of CVEs returned for this CPE: [cpe:/a:opera:opera_browser:7.0:beta1_v2]'
#   at t/insert.t line 39.
#          got: '0'
#     expected: '7'

#   Failed test 'Correct list of CVE IDs'
#   at t/insert.t line 48.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'CVE-2011-4681'
# $VAR1 = [];

#   Failed test 'CVE entry is a HASH ref'
#   at t/insert.t line 57.
#          got: ''
#     expected: 'HASH'
# $VAR1 = undef;

#   Failed test 'extracting cvss worked'
#   at t/insert.t line 62.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x55730b986b28)
# $VAR1 = undef;
# Looks like you planned 15 tests but ran 8.
# Looks like you failed 4 tests of 8 run.
t/insert.t .......... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 11/15 subtests 
t/manifest.t ........ skipped: Author test.  Set $ENV{RELEASE_TESTING} to a true value to run.
t/pod-coverage.t .... ok
t/pod.t ............. ok

#   Failed test 'correct number of CVEs returned for this CPE'
#   at t/query.t line 39.
#          got: '0'
#     expected: '2'
# cve_for_cpe( cpe => cpe:/a:microsoft:ie:7.0.5730.11 )

#   Failed test 'Correct list of CVE IDs'
#   at t/query.t line 47.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'CVE-2002-2435'
# $VAR1 = [];

#   Failed test 'CVE entry is a HASH ref'
#   at t/query.t line 56.
#          got: ''
#     expected: 'HASH'

#   Failed test 'extracting cvss worked'
#   at t/query.t line 60.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x563e0e131380)
# $VAR1 = undef;
# Looks like you planned 10 tests but ran 8.
# Looks like you failed 4 tests of 8 run.
t/query.t ........... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 6/10 subtests 

#   Failed test 'return value is defined'
#   at t/sqlite3.t line 29.

#   Failed test 'cpe primary key is numeric'
#   at t/sqlite3.t line 31.
#                   undef
#     doesn't match '(?^:\d+)'

#   Failed test 'cve list has correct number of elements'
#   at t/sqlite3.t line 38.
#          got: '0'
#     expected: '7'

#   Failed test 'cve list contains the right elements'
#   at t/sqlite3.t line 40.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'CVE-2011-4681'
# $VAR1 = [];
# Looks like you failed 4 tests of 9.
t/sqlite3.t ......... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/9 subtests 

#   Failed test 'correct number of CVEs returned for this CPE'
#   at t/update.t line 37.
#          got: '0'
#     expected: '2'

#   Failed test 'Correct list of CVE IDs'
#   at t/update.t line 44.
#     Structures begin differing at:
#          $got->[0] = Does not exist
#     $expected->[0] = 'CVE-2002-2435'
# $VAR1 = [];

#   Failed test 'CVE entry is a HASH ref'
#   at t/update.t line 51.
#          got: ''
#     expected: 'HASH'

#   Failed test 'extracting cvss worked'
#   at t/update.t line 55.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x5617da056b50)
# $VAR1 = undef;
# Looks like you planned 10 tests but ran 8.
# Looks like you failed 4 tests of 8 run.
t/update.t .......... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 6/10 subtests 

Test Summary Report
-------------------
t/01-load-nvdcve.t (Wstat: 512 Tests: 21 Failed: 2)
  Failed tests:  5, 8
  Non-zero exit status: 2
t/cwe.t           (Wstat: 512 Tests: 20 Failed: 7)
  Failed tests:  4-5, 7, 11, 13, 17, 19
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 22 tests but ran 20.
t/insert.t        (Wstat: 1024 Tests: 8 Failed: 4)
  Failed tests:  5-8
  Non-zero exit status: 4
  Parse errors: Bad plan.  You planned 15 tests but ran 8.
t/query.t         (Wstat: 1024 Tests: 8 Failed: 4)
  Failed tests:  5-8
  Non-zero exit status: 4
  Parse errors: Bad plan.  You planned 10 tests but ran 8.
t/sqlite3.t       (Wstat: 1024 Tests: 9 Failed: 4)
  Failed tests:  4-5, 8-9
  Non-zero exit status: 4
t/update.t        (Wstat: 1024 Tests: 8 Failed: 4)
  Failed tests:  5-8
  Non-zero exit status: 4
  Parse errors: Bad plan.  You planned 10 tests but ran 8.
Files=11, Tests=78,  0 wallclock secs ( 0.06 usr  0.00 sys +  0.80 cusr  0.06 csys =  0.92 CPU)
Result: FAIL
Failed 6/11 test programs. 25/78 subtests failed.
Makefile:884: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 4

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

requires:

    Module                Need Have    
    --------------------- ---- --------
    DBD::SQLite           0    1.70    
    DBI                   0    1.643   
    NIST::NVD             1    1.02.00 
    Time::HiRes           0    1.9767  
    XML::XPath            0    1.44    

build_requires:

    Module                Need Have    
    --------------------- ---- --------
    File::LibMagic        0    1.23    
    File::MMagic          0    1.30    
    Perl::Critic          0    1.140   
    Test::More            0    1.302190
    Test::Pod             0    1.52    
    Test::Pod::Coverage   0    1.10    
    XML::XPath            0    1.44    
    XML::XPath::XMLParser 0    1.44    

configure_requires:

    Module                Need Have    
    --------------------- ---- --------
    ExtUtils::MakeMaker   0    7.64    


------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

    LANG = en_US.UTF-8
    PATH = /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cpansand/bin/linux-gnu:/home/cpansand/bin/sh:/home/cpansand/bin:/usr/games:/home/cpansand/devel:/home/eserte/src/srezic-misc/scripts
    PERL5LIB = /home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/arch:/home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/lib
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 28311
    PERL5_CPAN_IS_RUNNING = 28311
    PERL5_CPAN_IS_RUNNING_IN_RECURSION = 27485,28311
    PERLDOC = -MPod::Perldoc::ToTextOverstrike
    PERL_BATCH = yes
    PERL_CANARY_STABILITY_NOPROMPT = 1
    PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/2022032709/cpanreporter_000_config.ini
    PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
    PERL_USE_UNSAFE_INC = 1
    SHELL = /usr/bin/zsh
    TERM = screen
    TMPDIR = /var/tmp/cpansmoker-1023/2022032709

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = /opt/perl-5.34.0/bin/perl
    $UID/$EUID = 1023 / 1023
    $GID = 1023 1023
    $EGID = 1023 1023

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.29    
    CPAN::Meta          2.150010
    Cwd                 3.80    
    ExtUtils::CBuilder  0.280236
    ExtUtils::Command   7.64    
    ExtUtils::Install   2.20    
    ExtUtils::MakeMaker 7.64    
    ExtUtils::Manifest  1.73    
    ExtUtils::ParseXS   3.43    
    File::Spec          3.80    
    JSON                4.03    
    JSON::PP            4.06    
    Module::Build       0.4231  
    Module::Signature   0.87    
    Parse::CPAN::Meta   2.150010
    Test::Harness       3.43    
    Test::More          1.302190
    YAML                1.30    
    YAML::Syck          1.34    
    version             0.9928  


--

Summary of my perl5 (revision 5 version 34 subversion 0) configuration:
   
  Platform:
    osname=linux
    osvers=4.9.0-16-amd64
    archname=x86_64-linux
    uname='linux cloud11.bbbike.org 4.9.0-16-amd64 #1 smp debian 4.9.272-2 (2021-07-19) x86_64 gnulinux '
    config_args='-ds -e -Dprefix=/opt/perl-5.34.0 -Dcf_email=srezic@cpan.org'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='6.3.0 20170516'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.24.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.24'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    HAS_TIMES
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under linux
  Compiled at Sep  4 2021 11:49:03
  %ENV:
    PERL5LIB="/home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/arch:/home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/lib"
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="28311"
    PERL5_CPAN_IS_RUNNING="28311"
    PERL5_CPAN_IS_RUNNING_IN_RECURSION="27485,28311"
    PERLDOC="-MPod::Perldoc::ToTextOverstrike"
    PERL_BATCH="yes"
    PERL_CANARY_STABILITY_NOPROMPT="1"
    PERL_CPAN_REPORTER_CONFIG="/var/tmp/cpansmoker-1023/2022032709/cpanreporter_000_config.ini"
    PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
    PERL_USE_UNSAFE_INC="1"
  @INC:
    /home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/arch
    /home/cpansand/.cpan/build/2022032709/NIST-NVD-1.02.00-5/blib/lib
    /opt/perl-5.34.0/lib/site_perl/5.34.0/x86_64-linux
    /opt/perl-5.34.0/lib/site_perl/5.34.0
    /opt/perl-5.34.0/lib/5.34.0/x86_64-linux
    /opt/perl-5.34.0/lib/5.34.0
    .