Closed igsha closed 3 months ago
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.