Skip to content

One unit test is failing on OpenBSD and FreeBSD #504

@rwestphal

Description

@rwestphal

One test fails when running make test on OpenBSD or FreeBSD:

99% tests passed, 1 tests failed out of 104

Total Test time (real) =  16.40 sec

The following tests FAILED:
         40 - test_conformance (Failed)
Errors while running CTest
*** Error code 8

Here's the full output when I run the associated test program manually:

$ ./tests/test_conformance
[==========] Running 8 test(s).
[ RUN      ] test_implemented1_yin
libyang[0]: Module "b@2015-04-04" in another revision "2015-01-01" already implemented.
libyang[0]: Module "b" parsing failed.
[       OK ] test_implemented1_yin
[ RUN      ] test_implemented1_yang
libyang[0]: Module "b@2015-04-04" in another revision "2015-01-01" already implemented.
libyang[0]: Module "b" parsing failed.
[       OK ] test_implemented1_yang
[ RUN      ] test_implemented2_yin
libyang[0]: Module "b" in another revision already implemented.
libyang[0]: Making the augment target module "b" implemented failed.
libyang[0]: Module "a" parsing failed.
[       OK ] test_implemented2_yin
[ RUN      ] test_implemented2_yang
libyang[0]: Module "b" in another revision already implemented.
libyang[0]: Making the augment target module "b" implemented failed.
libyang[0]: Module "a" parsing failed.
[       OK ] test_implemented2_yang
[ RUN      ] test_implemented_info_yin
[  ERROR   ] --- "<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
  <module-set>
    <name>complete</name>
    <checksum>10</checksum>
    <import-only-module>
      <name>ietf-yang-metadata</name>
      <revision>2016-08-05</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-metadata</namespace>
    </import-only-module>
    <module>
      <name>yang</name>
      <revision>2017-02-20</revision>
      <namespace>urn:ietf:params:xml:ns:yang:1</namespace>
    </module>
    <import-only-module>
      <name>ietf-inet-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-inet-types</namespace>
    </import-only-module>
    <import-only-module>
      <name>ietf-yang-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-types</namespace>
    </import-only-module>
    <import-only-module>
      <name>ietf-datastores</name>
      <revision>2017-08-17</revision>
      <namespace>urn:iet[  FAILED  ] test_implemented_info_yin
[ RUN      ] test_implemented_info_yang
[  ERROR   ] --- "<yang-library xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-library">
  <module-set>
    <name>complete</name>
    <checksum>10</checksum>
    <import-only-module>
      <name>ietf-yang-metadata</name>
      <revision>2016-08-05</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-metadata</namespace>
    </import-only-module>
    <module>
      <name>yang</name>
      <revision>2017-02-20</revision>
      <namespace>urn:ietf:params:xml:ns:yang:1</namespace>
    </module>
    <import-only-module>
      <name>ietf-inet-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-inet-types</namespace>
    </import-only-module>
    <import-only-module>
      <name>ietf-yang-types</name>
      <revision>2013-07-15</revision>
      <namespace>urn:ietf:params:xml:ns:yang:ietf-yang-types</namespace>
    </import-only-module>
    <import-only-module>
      <name>ietf-datastores</name>
      <revision>2017-08-17</revision>
      <namespace>urn:iet[  FAILED  ] test_implemented_info_yang
[ RUN      ] test_revision_date_yin
libyang[0]: Invalid date "2018-02-29", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
libyang[0]: Invalid date "18-02-28", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
libyang[0]: Invalid date "today", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
[       OK ] test_revision_date_yin
[ RUN      ] test_revision_date_yang
libyang[0]: Invalid date "2018-02-29", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
libyang[0]: Invalid date "18-02-28", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
libyang[0]: Invalid date "today", valid date in format "YYYY-MM-DD" expected.
libyang[0]: Module "x" parsing failed.
[       OK ] test_revision_date_yang
[==========] 8 test(s) run.
[  PASSED  ] 6 test(s).
[  FAILED  ] 2 test(s), listed below:
[  FAILED  ] test_implemented_info_yin
[  FAILED  ] test_implemented_info_yang

 2 FAILED TEST(S)

Opening the issue just to keep track of the problem. Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions