Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests don't build; add doc #49

Open
willwray opened this issue Sep 2, 2024 · 1 comment
Open

Tests don't build; add doc #49

willwray opened this issue Sep 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@willwray
Copy link

willwray commented Sep 2, 2024

Please add a doc on how to build the tests.

A fresh git clone configures nicely from IDE or commandline,

> cmake -G Ninja -S . -B build

It magically downloads CPM, tts and eve, and then reports:

...
[cmake] -- [kyosu] - Setup for version 0.1.0
[cmake] -- [kyosu] - Building in Debug mode
[cmake] -- [kyosu] - Unit tests : ON (via KYOSU_BUILD_TEST)
[cmake] -- [kyosu] - Doxygen    : OFF (via KYOSU_BUILD_DOCUMENTATION)
[cmake] -- Configuring done (2.2s)
[cmake] -- Generating done (0.3s)
[cmake] -- Build files have been written to: /home/will/repos/kyosu/build

An attempt to build then does nothing:

> cmake --build build --target all
[0/2] Re-checking globbed directories...
ninja: no work to do.

CTest fails to find any exes, because none have been built.

How to build and run the tests?

@willwray willwray added the bug Something isn't working label Sep 2, 2024
@jfalcou
Copy link
Owner

jfalcou commented Sep 2, 2024

Yeah, this should be

ninja kyosu-test

I will add doc but I'll also update copacabana cmake so that your command works out of the box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants