1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
Commit Graph

235 Commits

Author SHA1 Message Date
James Booth
d5a2e645bf Tests valid and invalid resource presence strings 2013-12-17 22:58:27 +00:00
James Booth
99f4eeb60d Removed help->usage when not used in tests 2013-12-17 22:49:02 +00:00
James Booth
de06c40d46 Added tests for "/account set muc" and "/account set nick" 2013-12-17 22:46:54 +00:00
James Booth
3b2446c46a Added tests for "/account set password" 2013-12-17 22:40:55 +00:00
James Booth
8adca66fa3 Added tests for "/account set resource" 2013-12-17 22:37:35 +00:00
James Booth
9b41c4ee32 Added tests for "/account set server" 2013-12-17 22:33:49 +00:00
James Booth
52f6ad6fe1 Added validation tests for "/account set" and "/account set jid" 2013-12-16 01:04:25 +00:00
James Booth
52d15242ab Use expect_any when testing something else in cmd_account tests 2013-12-16 00:18:38 +00:00
James Booth
e14b4ef558 Added tests for "/account rename" 2013-12-16 00:12:07 +00:00
James Booth
3c0bbed717 Added tests for "/account disable" 2013-12-15 23:55:59 +00:00
James Booth
4216949b2e Added tests for "/account enable" 2013-12-15 23:51:29 +00:00
James Booth
b2f4570886 Test "/account add" shows message on success 2013-12-15 23:39:04 +00:00
James Booth
85629cb9a3 Test "/account add <account>" adds account 2013-12-15 23:36:20 +00:00
James Booth
bf0870afe4 Test "/account add" with missing arg 2013-12-15 23:30:09 +00:00
James Booth
2197804826 Test "/account show <account>" when account exists 2013-12-15 23:26:02 +00:00
James Booth
838e6e1f5b Test "/account show" when no account does not exist 2013-12-15 23:22:22 +00:00
James Booth
8aaca1054f Added "/account show" test when no account supplied 2013-12-15 23:17:35 +00:00
James Booth
6f060b583e Test "/account list" 2013-12-15 23:07:53 +00:00
James Booth
683da12c3a Added cmd_account test 2013-12-15 22:28:22 +00:00
James Booth
6d75ebb8e9 Test account free'd after connect 2013-12-15 22:00:42 +00:00
James Booth
5ec2d3cf7c Added tests for connecting with account 2013-12-15 21:31:27 +00:00
James Booth
cae2979a0b Added test for message when connecting via account 2013-12-15 21:23:58 +00:00
James Booth
540d658e35 Added ask for password test when connecting with an account 2013-12-15 20:52:30 +00:00
James Booth
5c65599e6a Tests lowercasing argument on cmd_connect 2013-12-15 20:38:26 +00:00
James Booth
5e739cbfb7 Moved fulljid logic to accounts 2013-12-15 20:32:30 +00:00
James Booth
9b631cf571 Ignore arguments that are not part of test 2013-12-15 20:02:25 +00:00
James Booth
7842b0d1fc Added mock log module 2013-12-15 19:56:48 +00:00
James Booth
079ea5304b Moved _ask_password to UI module 2013-12-15 19:38:23 +00:00
James Booth
eff2ef3859 Check expected arg to account_get_account in cmd_rooms test 2013-12-15 18:15:16 +00:00
James Booth
bf347ab9e0 Added cmd_connect tests 2013-12-15 18:08:26 +00:00
James Booth
2490f5b417 Seperated command functions into module 2013-12-15 16:10:32 +00:00
James Booth
447d235868 Mocked account preferences and tested cmd_rooms 2013-12-14 18:43:19 +00:00
James Booth
3e3786eb61 Removed debug from tests 2013-12-14 17:15:43 +00:00
James Booth
0b3a9f5785 Added roster_list tests to cmocka 2013-12-14 17:03:39 +00:00
James Booth
4bb38ac011 Added parser tests to cmocka 2013-12-14 16:48:27 +00:00
James Booth
0730867326 Added history and jid tests to cmocka 2013-12-14 16:35:56 +00:00
James Booth
71577c1fdd Added missing files 2013-12-14 16:17:53 +00:00
James Booth
3a403046ff Moved autocomplete tests to cmocka 2013-12-14 16:16:46 +00:00
James Booth
7f7973f9a7 Moved common tests to cmocka 2013-12-14 16:07:57 +00:00
James Booth
107fdd355e Added simple mock test, refactored roster 2013-12-14 15:34:17 +00:00
James Booth
0de1ff9b4d Removed unused boolean result from autocomplete add and remove 2013-12-09 23:51:13 +00:00
James Booth
b5eb095820 Removed limit on number of windows, WIP 2013-08-27 23:38:25 +01:00
James Booth
42c3a1c1f7 Added function to get next available window number, and tests 2013-08-27 22:02:23 +01:00
James Booth
f2509b078a Added test for broken argument quoting 2013-08-26 23:44:45 +01:00
James Booth
d2a354fd53 Fixed compiler warning in test_autocomplete.c 2013-08-26 14:47:40 +01:00
Dmitry Podgorny
545a23e92f removed strdup in autocomplete calls 2013-08-26 03:29:50 +03:00
James Booth
8137efbfa3 Added test for quoted freetext in parser 2013-07-20 20:53:43 +01:00
James Booth
e7478d8cb8 Added parser tests 2013-07-14 00:46:56 +01:00
James Booth
60cad8d296 Merge branch 'master' into unicode 2013-07-13 23:17:35 +01:00
James Booth
1d05a70473 Down arrow adds current line to history and shows empty line 2013-07-13 23:02:36 +01:00
James Booth
36265dde2f Moved functions to parser.c, moved parser to tools 2013-07-11 22:57:35 +01:00
James Booth
f042d1a267 Fixed roster tests 2013-06-23 18:59:36 +01:00
James Booth
c1ee75da40 Removed contact_list, moved roster logic to xmpp/roster module 2013-05-06 23:04:46 +01:00
James Booth
05f2d29396 Renamed contact_list_ functions to roster_ 2013-05-06 22:32:58 +01:00
James Booth
ab591b41b2 Fixed tests 2013-02-17 00:11:00 +00:00
James Booth
e33ccb07a4 Removed invalid tests 2013-02-14 22:08:26 +00:00
James Booth
ec78914044 Only create contacts resource when online 2013-02-10 11:19:36 +00:00
James Booth
facb2a653b Renamed contact property jid->barejid 2013-02-09 23:50:41 +00:00
James Booth
86bad48f41 Fixed tests 2013-02-02 22:54:16 +00:00
James Booth
1d5046bc97 Renamed parser.c -> command_parser.c
Included in command.h
2013-01-28 01:43:43 +00:00
James Booth
c72d7ad6a6 Renamed history modules 2013-01-28 01:35:11 +00:00
James Booth
8bdab23e25 Renamed create jid function using barejid and resource 2013-01-27 01:14:59 +00:00
James Booth
d239a1278b Fixed jid handling to allow @ and / in resource 2013-01-26 16:13:11 +00:00
James Booth
527e739ac6 Got rid of old naming convention on prof_autocomplete 2013-01-25 01:11:49 +00:00
James Booth
97a497c355 Updated /info command for chat and private chat 2013-01-20 23:30:15 +00:00
James Booth
bae9bde484 Command parser handles quotes arguments 2013-01-14 23:18:50 +00:00
James Booth
3a22719bd7 Added jid_create_room_jid 2013-01-13 00:19:56 +00:00
James Booth
1cc33cc491 Changed Jid typedef to be explicit pointer 2013-01-13 00:05:25 +00:00
James Booth
94bcf1889d Added jid datatype 2013-01-12 23:10:56 +00:00
James Booth
89967905db Autocomplete: added free function
Fixed tests
2013-01-11 00:17:18 +00:00
James Booth
e64ed7771f Fixed contact list test 2012-11-28 01:43:56 +00:00
James Booth
78dd79f6a0 Commands now use parser function to handle parameters 2012-11-18 02:40:49 +00:00
James Booth
312d362eaa Handle commands with min 0 args 2012-11-18 00:38:37 +00:00
James Booth
191ab83c9b Added command parser for commands accepting free text
e.g. /msg user@host here is a message
2012-11-18 00:25:08 +00:00
James Booth
824eaa1678 Added parser module 2012-11-18 00:07:00 +00:00
James Booth
0ce7b2acb7 Removed old chat session tests 2012-11-01 00:29:51 +00:00
James Booth
d339004f55 Merge branch 'master' into chatstates
Conflicts:
	Makefile.am
2012-10-30 01:38:08 +00:00
James Booth
768b2aa466 Fixed tests 2012-10-29 22:55:17 +00:00
James Booth
a5e4e52567 Merge branch 'master' into type_out 2012-10-22 22:21:55 +01:00
James Booth
5353bb47d6 Refactored parameter autocompleters 2012-10-22 00:16:22 +01:00
James Booth
6bad38c2d5 Removed trailing whitespace from src and tests 2012-10-21 20:02:20 +01:00
James Booth
5b8599272a Basic chat session states 2012-10-04 00:34:03 +01:00
James Booth
f8de28232e Started work on chat session, and chat states 2012-10-03 23:47:10 +01:00
James Booth
0fe70ce7d3 Merge common and util 2012-08-23 01:08:06 +01:00
James Booth
30ca6cac3d Added autobuild tools 2012-07-01 14:47:09 +01:00