diff options
Diffstat (limited to 'test/interop/ping_test.c')
| -rw-r--r-- | test/interop/ping_test.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/interop/ping_test.c b/test/interop/ping_test.c new file mode 100644 index 0000000..6d699da --- /dev/null +++ b/test/interop/ping_test.c @@ -0,0 +1,27 @@ +#include "greatest.h" +#include "testclient.h" +#include "cleanup.c" +#include "topics.c" + +TEST ping_test() +{ + TestClient *client; + + client = TestClientNew("clienta"); + ASSERT(TestClientConnect(client, "localhost", 1883, 1, 1)); + ASSERT(TestClientWait(client, 5000)); + TestClientDisconnect(client); + TestClientFree(client); + + PASS(); +} + +GREATEST_MAIN_DEFS(); + +int main(int argc, char **argv) +{ + GREATEST_MAIN_BEGIN(); + cleanup(); + RUN_TEST(ping_test); + GREATEST_MAIN_END(); +} |
