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

meson: Support all tests from cmake #48

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

igsha
Copy link
Collaborator

@igsha igsha commented Apr 9, 2024

Unified test launch for both meson and cmake: make/ninja test. Support tests for cmake through ctest.
Enable jid test in libdino.

@igsha
Copy link
Collaborator Author

igsha commented Apr 9, 2024

Example of ctest output:

❯ ctest -N
Test project /home/isharonov/dino/build
  Test #1: xmpp-vala
  Test #2: libdino
  Test #3: omemo

Total Tests: 3

❯ ctest
Test project /home/isharonov/dino/build
    Start 1: xmpp-vala
1/3 Test #1: xmpp-vala ........................   Passed    0.05 sec
    Start 2: libdino
2/3 Test #2: libdino ..........................   Passed    0.05 sec
    Start 3: omemo
3/3 Test #3: omemo ............................   Passed    0.74 sec

100% tests passed, 0 tests failed out of 3

Total Test time (real) =   0.84 sec

Meson test example:

❯ meson test --list
xmpp-vala
libdino
omemo

❯ meson test
ninja: Entering directory `/home/isharonov/dino/build'
ninja: no work to do.
1/3 xmpp-vala        OK              0.11s
2/3 libdino          OK              0.09s
3/3 omemo            OK              0.41s

Ok:                 3
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /home/isharonov/dino/build/meson-logs/testlog.txt

Unified test launch for both meson and cmake: make/ninja test.
Support tests for cmake through ctest.
Enable jid test in libdino.
Enable tests for win64 CI/CD.
@mxlgv mxlgv requested review from vlomovtsev and mxlgv April 9, 2024 09:38
@mxlgv mxlgv merged commit 2e5212f into mxlgv:master Apr 9, 2024
4 checks passed
@igsha igsha deleted the meson-tests branch April 10, 2024 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants