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
John Hernandez
5b8b9074a2
Add nickname support for /roster remove
...
Add support of name/nickname instead of only JID for `/roster remove` command.
Add tests for it as well.
2023-04-13 16:41:21 +02:00
a1346054
a1dc3d1237
Trim excess whitespace
2021-08-26 01:18:10 +00:00
Michael Vetter
693fdcce65
functest: Make char const
2020-10-15 10:12:33 +02:00
Michael Vetter
12cafe4e60
Add include for waitpid to functionaltest
2020-06-04 12:02:02 +02:00
Michael Vetter
a28f0d9e74
Update tests with new URL
...
https://github.com/profanity-im/profanity/issues/1085
2019-05-03 10:46:41 +02:00
Paul Fariello
a952776b89
Rename mucconf wins into conf wins
...
Configuration windows are now being used by both muc and cmd.
2018-09-05 13:51:00 +02:00
James Booth
ee664bf1d2
Add room /me functional tests
2018-04-21 20:40:11 +01:00
James Booth
e571ccd8ea
Fix tests, move glob creation
2018-01-27 23:51:03 +00:00
James Booth
f189dbc687
Only send ping requests to client that support it
2017-06-16 00:59:21 +01:00
James Booth
970ab94ed3
Change server name in functional tests
2017-06-15 23:30:39 +01:00
James Booth
6511d61b13
Show message when server does not support ping
2017-06-15 23:27:30 +01:00
James Booth
8e75437a7e
Add carbons from check
2017-01-23 22:25:36 +00:00
James Booth
2b7894ccff
Remove status from cl_ev_presence_send
...
fixes #888
2017-01-15 23:59:31 +00:00
James Booth
e043029a50
Allow clearing account resource
...
issue #880
2016-11-22 00:39:52 +00:00
James Booth
609d05366c
Use server features for account muc service
...
issue #878
2016-11-20 02:09:34 +00:00
James Booth
388a20813c
Tests: disable occupants panel in functional tests
2016-09-26 00:39:37 +01:00
James Booth
e78684f689
Tests: longer timeout for failing functional test on travis
2016-09-26 00:16:12 +01:00
James Booth
fca59a3110
log_info on private carbons
2016-08-28 17:27:26 +01:00
James Booth
a978bb12bf
Send receipt request only when receiver supports feature
...
issue #829
2016-08-18 22:53:23 +01:00
James Booth
b8c94376aa
Add /blocked command
2016-05-01 19:39:39 +01:00
James Booth
167553ae8f
Fixed functional test ID based stubs
2016-04-26 23:50:55 +02:00
James Booth
9b177a9e01
Removed #AX_PREFIX_CONFIG_H
2016-03-31 21:05:02 +01:00
James Booth
41fe8c22b1
Added C plugin code from plugins branch
2016-02-14 22:28:55 +00:00
James Booth
e1e0fda8b3
Call UI disconnect functions before disconnecting with /disconnect
...
fixes #703
2016-01-05 01:30:32 +00:00
James Booth
69ac809776
Added functional tests for /console command
2015-12-30 00:32:52 +00:00
James Booth
7f98e013e1
Use single quotes in functional test stanzas
2015-12-30 00:12:24 +00:00
James Booth
377a63d038
Uncommented functional tests
2015-12-22 00:45:15 +00:00
James Booth
6303e0e25a
Added chat message functional tests
2015-12-22 00:27:37 +00:00
James Booth
d9f5a2bda6
Updated console new message text
2015-12-20 23:26:05 +00:00
James Booth
1b88b5706e
Change console incoming message text to include "win"
2015-12-20 22:50:03 +00:00
James Booth
94169705b5
Added functional test for muc console message
2015-12-20 03:11:02 +00:00
James Booth
9f34373b46
Disable muc notifications for functional tests
2015-12-20 02:57:01 +00:00
James Booth
c61e9d80ea
Added more muc functional tests
2015-12-20 02:42:11 +00:00
James Booth
46a0e6ebed
Removed whitespace
2015-12-20 02:17:17 +00:00
James Booth
87b4d7cbab
Added muc functional tests
2015-12-20 02:13:01 +00:00
James Booth
cadaf73148
Fixed functional tests
2015-11-29 00:16:00 +00:00
James Booth
6640a0891f
Force tls on all connections, add tls policy account property
2015-10-18 03:06:23 +01:00
James Booth
9c08211119
functionaltests: user ip address for server on connect
2015-10-13 00:45:10 +01:00
James Booth
118e92039e
functionaltests: reset connect wait to 30 secs
2015-10-13 00:32:02 +01:00
James Booth
14ff1db9a6
functionaltests: Doubled libexpect timeout for connect
2015-10-13 00:24:28 +01:00
James Booth
e7b4f0bd78
Doubled expect timeout for connect in tests, removed libuuid from travis build
2015-10-13 00:10:28 +01:00
James Booth
e9aff68947
Fixed functional tests
2015-09-30 22:42:42 +01:00
James Booth
406b821b35
Show software version result in current window
2015-08-06 01:56:52 +01:00
James Booth
ac3e7dd9e8
Handle software version requests for gateways that return from domainpart
2015-08-05 00:48:50 +01:00
James Booth
2a92169351
Use id handler for software version requests, handle errors
2015-08-05 00:26:29 +01:00
James Booth
de747e3d46
Added software version request tests
2015-08-04 23:43:19 +01:00
James Booth
2cb2f83ce3
Added test for missing resource on presence
2015-08-04 23:22:43 +01:00
James Booth
decd5066ce
tests: prof_connect_with_roster takes items
2015-07-23 00:40:08 +01:00
James Booth
f9a7e35001
Added id attributes to roster queries
...
fixes #596
2015-07-22 22:48:37 +01:00