1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-02 21:21:10 +00:00
profanity/tests/functionaltests
ike08 d35a7a7f7e Refactor tests to use the new cmocka test runner
## 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.
2023-11-01 18:30:08 -06:00
..
functionaltests.c Refactor tests to use the new cmocka test runner 2023-11-01 18:30:08 -06:00
proftest.c Refactor tests to use the new cmocka test runner 2023-11-01 18:30:08 -06:00
proftest.h Refactor tests to use the new cmocka test runner 2023-11-01 18:30:08 -06:00
start_profanity.sh Set columns when running functional tests 2015-06-13 23:59:33 +01:00
test_carbons.c Add carbons from check 2017-01-23 22:25:36 +00:00
test_carbons.h Trim excess whitespace 2021-08-26 01:18:10 +00:00
test_chat_session.c Use single quotes in functional test stanzas 2015-12-30 00:12:24 +00:00
test_chat_session.h Trim excess whitespace 2021-08-26 01:18:10 +00:00
test_connect.c Update tests with new URL 2019-05-03 10:46:41 +02:00
test_connect.h Trim excess whitespace 2021-08-26 01:18:10 +00:00
test_disconnect.c Allow clearing account resource 2016-11-22 00:39:52 +00:00
test_disconnect.h Call UI disconnect functions before disconnecting with /disconnect 2016-01-05 01:30:32 +00:00
test_message.c Use single quotes in functional test stanzas 2015-12-30 00:12:24 +00:00
test_message.h Added chat message functional tests 2015-12-22 00:27:37 +00:00
test_muc.c Update tests with new URL 2019-05-03 10:46:41 +02:00
test_muc.h Add room /me functional tests 2018-04-21 20:40:11 +01:00
test_ping.c Update tests with new URL 2019-05-03 10:46:41 +02:00
test_ping.h Only send ping requests to client that support it 2017-06-16 00:59:21 +01:00
test_presence.c Update tests with new URL 2019-05-03 10:46:41 +02:00
test_presence.h Remove status from cl_ev_presence_send 2017-01-15 23:59:31 +00:00
test_receipts.c Update tests with new URL 2019-05-03 10:46:41 +02:00
test_receipts.h Trim excess whitespace 2021-08-26 01:18:10 +00:00
test_rooms.c Fix tests, move glob creation 2018-01-27 23:51:03 +00:00
test_rooms.h Trim excess whitespace 2021-08-26 01:18:10 +00:00
test_roster.c Add nickname support for /roster remove 2023-04-13 16:41:21 +02:00
test_roster.h Add nickname support for /roster remove 2023-04-13 16:41:21 +02:00
test_software.c Use single quotes in functional test stanzas 2015-12-30 00:12:24 +00:00
test_software.h Trim excess whitespace 2021-08-26 01:18:10 +00:00