electronicarts / EASTL

EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance.
BSD 3-Clause "New" or "Revised" License
7.82k stars 905 forks source link

How to run unit tests #529

Closed cybaol closed 1 month ago

cybaol commented 1 month ago

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 1 month ago

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 1 month ago

OK, All tests passed for me on archlinux. I will close this issue.