How to run unit tests
cybaol opened this issue · 2 comments
cybaol commented
Hi, I'am EASTL maintainer on Arch Linux.
I see a lot of other dependencies in the tests, such as EAStdC, EABase, EAMain, EATest, etc. But EATest also depends on EAMain in EATest subdirectory.
I want to know how to build and run unit tests?
cybaol commented
I followed CONTRIBUTING.md to compile and test the source.
But tests failed. error log: LastTest.log
And this is my packaging command:
cmake -B build -S . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DEASTL_BUILD_TESTS=ON \
-DEASTL_BUILD_BENCHMARK=ON \
-DEASTL_STD_ITERATOR_CATEGORY_ENABLED=ON \
-Wno-dev
cmake --build build
cd build/test
ctest -VV
cybaol commented
OK, All tests passed for me on archlinux.
I will close this issue.