Added regex output matcher, presence test

This commit is contained in:
James Booth
2015-05-29 01:01:34 +01:00
parent f17afcf5d4
commit a522d0225d
9 changed files with 80 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ ping_multiple(void **state)
"<ping xmlns=\"urn:xmpp:ping\"/>"
"</iq>"
));
assert_true(prof_output("Ping response from server"));
assert_true(prof_output_exact("Ping response from server"));
prof_input("/ping");
assert_true(stbbr_received(
@@ -37,7 +37,7 @@ ping_multiple(void **state)
"<ping xmlns=\"urn:xmpp:ping\"/>"
"</iq>"
));
assert_true(prof_output("Ping response from server"));
assert_true(prof_output_exact("Ping response from server"));
}
void
@@ -45,7 +45,7 @@ ping_responds(void **state)
{
prof_connect("stabber@localhost", "password");
assert_true(prof_output("stabber@localhost logged in successfully"));
assert_true(prof_output_exact("stabber@localhost logged in successfully"));
stbbr_send(
"<iq id=\"pingtest1\" type=\"get\" to=\"stabber@localhost/profanity\" from=\"localhost\">"