#include #include #include #include #include #include #include #include #include #include "proftest.h" void message_send(void **state) { prof_connect("stabber@localhost", "password"); prof_input("/msg somejid@someserver.com Hi there"); assert_true(stbbr_received( "" "Hi there" "" )); assert_true(prof_output_regex("me: .+Hi there")); } void message_receive(void **state) { stbbr_for("roster", "" "" "" "" "" "" ); prof_connect("stabber@localhost", "password"); stbbr_wait_for("prof_presence_1"); stbbr_send( "" "How are you?" "" ); assert_true(prof_output_exact("<< incoming from someuser@chatserv.org/laptop (2)")); }