mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
d35a7a7f7e
## Summary Fixes https://github.com/profanity-im/profanity/issues/1907 Update functional and unit test code to comply with the current cmocka test runner. ## Changes - `UnitTest` struct to `CMUnitTest` struct - `unit_test()` macro to `cmocka_unit_test(f)` macro - `unit_test_setup_teardown()` macro to `cmocka_unit_test_setup_teardown` macro - `run_tests()` macro to `cmocka_run_group_tests()` function - Setup and teardown functions return `int` instead of `void` ## Testing ### Unit Tests `make check` ### Functional Tests I did not compile or run functional tests because they are *shelved* for now. ### Valgrind I'm not entirely sure how to fun Valgrind in this case. I did not do fancy memory management, so it should be fine. |
||
---|---|---|
.. | ||
functionaltests.c | ||
proftest.c | ||
proftest.h | ||
start_profanity.sh | ||
test_carbons.c | ||
test_carbons.h | ||
test_chat_session.c | ||
test_chat_session.h | ||
test_connect.c | ||
test_connect.h | ||
test_disconnect.c | ||
test_disconnect.h | ||
test_message.c | ||
test_message.h | ||
test_muc.c | ||
test_muc.h | ||
test_ping.c | ||
test_ping.h | ||
test_presence.c | ||
test_presence.h | ||
test_receipts.c | ||
test_receipts.h | ||
test_rooms.c | ||
test_rooms.h | ||
test_roster.c | ||
test_roster.h | ||
test_software.c | ||
test_software.h |