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

Status
Fail
From
Andreas J. König (ANDK)
Dist
NIST-NVD-Store-SQLite3 v1.02.00
Platform
Perl 5 v5.35.9 x86_64-linux
Date
2022-04-03 18:06:45
ID
d2de0930-b378-11ec-88fa-c031704e86bf
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.35.9, 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:

this report is from an automated smoke testing program
and was not reviewed by a human for accuracy

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

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

PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/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.035009, /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/bin/perl
t/00-load.t ......... ok

#   Failed test '[/tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/t/data/nvdcve-2.0-test.xml] is a file'
#   at t/01-load-nvdcve.t line 38.
# running /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/blib/script/convert-nvdcve --nvd /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/t/data/nvdcve-2.0-test.xml --cwe /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/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: /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/t/data/nvdcve-2.0-test.xml...couldn't open "/tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/t/data/nvdcve-2.0-test.xml": No such file or directory at /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/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 = {
#           'id' => undef,
#           '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
# '
#         };

#   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 /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/blib/lib/NIST/NVD/Store/SQLite3.pm line 545.
Use of uninitialized value $args{"cwe_id"} in concatenation (.) or string at /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/blib/lib/NIST/NVD/Store/SQLite3.pm line 545.
cwe_id [] is malformed at /tmp/loop_over_bdir-1104-fxAftl/NIST-NVD-Store-SQLite3-1.02.00-0/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(0x56432cb58330)
# $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(0x557370d8d7a0)
# $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(0x5561ee43de08)
# $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,  4 wallclock secs ( 0.04 usr  0.04 sys +  1.04 cusr  0.32 csys =  1.44 CPU)
Result: FAIL
Failed 6/11 test programs. 25/78 subtests failed.
make: *** [Makefile:884: test_dynamic] Error 4

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

Prerequisite modules loaded:

requires:

    Module                Need Have    
    --------------------- ---- --------
    DBD::SQLite           0    1.71_05 
    DBI                   0    1.643   
    NIST::NVD             1    1.02.01 
    Time::HiRes           0    1.9769  
    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.302188
    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:

    AUTOMATED_TESTING = 1
    LANG = en_US.UTF-8
    PATH = /home/sand/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/perl/bin:/usr/X11/bin:/sbin:/usr/sbin
    PERL5LIB = 
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 1738224
    PERL5_CPAN_IS_RUNNING = 1738224
    PERL_CANARY_STABILITY_NOPROMPT = 1
    PERL_MM_USE_DEFAULT = 1
    PERL_USE_UNSAFE_INC = 1
    SHELL = /usr/bin/zsh
    TERM = screen

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

    $^X = /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/bin/perl
    $UID/$EUID = 1005 / 1005
    $GID = 1005 1005
    $EGID = 1005 1005

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.33    
    CPAN::Meta          2.150010
    Cwd                 3.83    
    ExtUtils::CBuilder  0.280236
    ExtUtils::Command   7.64    
    ExtUtils::Install   2.20    
    ExtUtils::MakeMaker 7.64    
    ExtUtils::Manifest  1.73    
    ExtUtils::ParseXS   3.44    
    File::Spec          3.83    
    JSON                4.05    
    JSON::PP            4.07    
    Module::Build       0.4231  
    Module::Signature   0.88    
    Parse::CPAN::Meta   2.150010
    Test::Harness       3.43    
    Test::More          1.302188
    YAML                1.30    
    YAML::Syck          1.34    
    version             0.9929  


--

Summary of my perl5 (revision 5 version 35 subversion 9) configuration:
  Commit id: a4f7faaf7e7c49fceb79725d6853abbd83bc8bd9
  Platform:
    osname=linux
    osvers=5.15.0-2-amd64
    archname=x86_64-linux
    uname='linux k93msid 5.15.0-2-amd64 #1 smp debian 5.15.5-2 (2021-12-18) x86_64 gnulinux '
    config_args='-Dprefix=/home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f -Dmyhostname=k93msid -Dinstallusrbinperl=n -Uversiononly -Dusedevel -des -Ui_db -Dlibswanted=cl pthread socket inet nsl gdbm dbm malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat -Uuseithreads -Uuselongdouble -DEBUGGING=both'
    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 -DDEBUGGING -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 -g'
    cppflags='-fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='11.2.0'
    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.33.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.33'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E'
    cccdlflags='-fPIC'
    lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    DEBUGGING
    HAS_TIMES
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_DEVEL
    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 Feb 20 2022 17:33:40
  %ENV:
    PERL5LIB=""
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="1738224"
    PERL5_CPAN_IS_RUNNING="1738224"
    PERL_CANARY_STABILITY_NOPROMPT="1"
    PERL_MM_USE_DEFAULT="1"
    PERL_USE_UNSAFE_INC="1"
  @INC:
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/lib/site_perl/5.35.9/x86_64-linux
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/lib/site_perl/5.35.9
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/lib/5.35.9/x86_64-linux
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.35.9/bb7f/lib/5.35.9
    .