Skip to content

Tests are broken #58

@dzenanz

Description

@dzenanz

CI is broken. In a pull request #54, excerpt from the build log:

/usr/share/miniconda/envs/xtensor-zarr/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: warning: libnsl.so.1, needed by /usr/share/miniconda/envs/xtensor-zarr/lib/libxerces-c-3.2.so, not found (try using -rpath or -rpath-link)
/usr/share/miniconda/envs/xtensor-zarr/bin/../lib/gcc/x86_64-conda-linux-gnu/11.2.0/../../../../x86_64-conda-linux-gnu/bin/ld: /usr/share/miniconda/envs/xtensor-zarr/lib/libpq.so.5: undefined reference to `memcpy@GLIBC_2.14'
collect2: error: ld returned 1 exit status
test/CMakeFiles/test_xtensor_zarr.dir/build.make:198: recipe for target 'test/test_xtensor_zarr' failed

Furthermore, running test_xtensor_zarr locally has multiple failures:

[==========] Running 12 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 10 tests from xzarr_hierarchy
[ RUN      ] xzarr_hierarchy.read_v2
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.read_v2 (3 ms)
[ RUN      ] xzarr_hierarchy.read_array
[       OK ] xzarr_hierarchy.read_array (5 ms)
[ RUN      ] xzarr_hierarchy.write_array
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.write_array (3 ms)
[ RUN      ] xzarr_hierarchy.create_group
[       OK ] xzarr_hierarchy.create_group (3 ms)
[ RUN      ] xzarr_hierarchy.create_node
[       OK ] xzarr_hierarchy.create_node (8 ms)
[ RUN      ] xzarr_hierarchy.explore
C:\Libs\xtensor-zarr\test\test_zarr.cpp(112): error: Expected equality of these values:
  nodes
    Which is: "{\"arthur\\\\dent\":\"array\",\"marvin\":\"explicit_group\",\"marvin\\\\android\":\"array\",\"marvin\\\\paranoid\":\"explicit_group\",\"tricia\\\\mcmillan\":\"explicit_group\"}"
  "{\"arthur\":\"implicit_group\",\"arthur/dent\":\"array\",\"marvin\":\"explicit_group\",\"marvin/android\":\"array\",\"marvin/paranoid\":\"explicit_group\",\"tricia\":\"implicit_group\",\"tricia/mcmillan\":\"explicit_group\"}"
[  FAILED  ] xzarr_hierarchy.explore (3 ms)
[ RUN      ] xzarr_hierarchy.store_erase
unknown file: error: C++ exception with description "The process cannot access the file because it is being used by another process.
: 'store1\key1'" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.store_erase (3 ms)
[ RUN      ] xzarr_hierarchy.store_erase_prefix
[       OK ] xzarr_hierarchy.store_erase_prefix (5 ms)
[ RUN      ] xzarr_hierarchy.write_v2
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] xzarr_hierarchy.write_v2 (4 ms)
[ RUN      ] xzarr_hierarchy.array_default_params
[       OK ] xzarr_hierarchy.array_default_params (1 ms)
[----------] 10 tests from xzarr_hierarchy (49 ms total)

[----------] 2 tests from gdal
[ RUN      ] gdal.write_read_v2_array_gdal
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] gdal.write_read_v2_array_gdal (1 ms)
[ RUN      ] gdal.write_read_v3_array_gdal
unknown file: error: C++ exception with description "Unkown compressor type: gzip" thrown in the test body.
[  FAILED  ] gdal.write_read_v3_array_gdal (1 ms)
[----------] 2 tests from gdal (3 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 2 test suites ran. (54 ms total)
[  PASSED  ] 5 tests.
[  FAILED  ] 7 tests, listed below:
[  FAILED  ] xzarr_hierarchy.read_v2
[  FAILED  ] xzarr_hierarchy.write_array
[  FAILED  ] xzarr_hierarchy.explore
[  FAILED  ] xzarr_hierarchy.store_erase
[  FAILED  ] xzarr_hierarchy.write_v2
[  FAILED  ] gdal.write_read_v2_array_gdal
[  FAILED  ] gdal.write_read_v3_array_gdal

 7 FAILED TESTS

C:\Libs\xtensor-zarr-vs19\test\RelWithDebInfo\test_xtensor_zarr.exe (process 15728) exited with code 1.

The test has commented-out code, which, when uncommented, produces compile errors:

1>C:\Libs\xtensor-zarr\test\test_zarr.cpp(65,12): error C2039: 'chunks': is not a member of 'xt::xarray_container<xt::uvector<double,std::allocator<T>>,xt::layout_type::row_major,xt::svector<size_t,4,std::allocator<unsigned __int64>,true>,xt::xtensor_expression_tag>'
1>        with
1>        [
1>            T=double
1>        ]
1>C:\Libs\xtensor\include\xtensor\xtensor_forward.hpp(82): message : see declaration of 'xt::xarray_container<xt::uvector<double,std::allocator<T>>,xt::layout_type::row_major,xt::svector<size_t,4,std::allocator<unsigned __int64>,true>,xt::xtensor_expression_tag>'
1>        with
1>        [
1>            T=double
1>        ]
1>C:\Libs\xtensor-zarr\test\test_zarr.cpp(69,9): error C2039: 'attrs': is not a member of 'xt::xarray_container<xt::uvector<double,std::allocator<T>>,xt::layout_type::row_major,xt::svector<size_t,4,std::allocator<unsigned __int64>,true>,xt::xtensor_expression_tag>'
1>        with
1>        [
1>            T=double
1>        ]
1>C:\Libs\xtensor\include\xtensor\xtensor_forward.hpp(82): message : see declaration of 'xt::xarray_container<xt::uvector<double,std::allocator<T>>,xt::layout_type::row_major,xt::svector<size_t,4,std::allocator<unsigned __int64>,true>,xt::xtensor_expression_tag>'
1>        with
1>        [
1>            T=double
1>        ]
1>C:\Libs\xtensor-zarr\test\test_zarr.cpp(69,9): error C2660: 'testing::internal::EqHelper::Compare': function does not take 3 arguments
1>C:\Libs\googletest\googletest\include\gtest/gtest.h(1580,26): message : see declaration of 'testing::internal::EqHelper::Compare'
1>C:\Libs\xtensor-zarr\test\test_zarr.cpp(69,9): error C2737: 'gtest_ar': const object must be initialized
1>Done building project "test_xtensor_zarr.vcxproj" -- FAILED.

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