-
Notifications
You must be signed in to change notification settings - Fork 83
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
If the unit tests are run outside the build directory, e.g.:
./build/unitTest
instead of cd build && ./unitTest
you will get 11 failures related to missing schema files.
This is caused by relative paths being used in the schema unit tests.
An error example:
/home/lion/yscope/clp-ffi-go/cpp/clp/components/core/tests/test-Grep.cpp:21: FAILED:
due to unexpected exception with message:
ReaderInterface operation failed
[2023-05-20 23:25:59.016] [info] [test-ParserWithUserSchema.cpp:72] File not found: /home/lion/yscope/clp-ffi-go/cpp/clp/components/tests/test_schema_files/missing_schema.txt
CLP version
Environment
ghcr.io/y-scope/clp/clp-core-dependencies-x86-ubuntu-focal:main
Reproduction steps
- build the latest CLP
- run
unitTest
outside of your build directory (i.e. rununitTest
from any directory other than the file's parent)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working