1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00
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
..
2022-06-28 20:46:35 +02:00
2023-01-10 10:37:25 +01:00
2023-01-18 20:02:46 +01:00
2020-07-07 14:18:57 +02:00
2023-07-25 16:35:14 +02:00
2023-05-10 18:12:11 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2022-02-01 15:01:28 +01:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2023-04-18 14:28:20 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2023-04-18 14:28:20 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2023-04-18 14:28:20 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2023-03-11 15:05:03 +01:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00
2020-07-07 14:18:57 +02:00