Cytnx-dev / Cytnx

Project Cytnx, A Cross-section of Python & C++,Tensor network library
Apache License 2.0
35 stars 14 forks source link

Location of data directories for the tests #512

Open ianmccul opened 1 day ago

ianmccul commented 1 day ago

I have been attempting to run the test infrastructure locally. Most of the tests are failing with errors like

invalid file path for load. >> ../../tests/test_data_base/common/BlockUniTensor/OriginalBUT.cytnx

With some more investigating, I determined that it is running this code from the directory /home/ian/build/cytnx/tests. That is a subdirectory of my build directory, which is fine - but I have no idea why it would think that the .cytnx files would be located two directories up from there. I guess it should be looking in the source directory.

I have no idea what is different about my setup, I guess maybe people are using a build directory that is inside the source directory?

ianmccul commented 1 day ago

fix in #513