Added muc tests

This commit is contained in:
James Booth
2014-01-30 23:32:52 +00:00
parent 0338d136e0
commit 63b3299b06
4 changed files with 26 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#include "test_preferences.h"
#include "test_server_events.h"
#include "test_cmd_alias.h"
#include "test_muc.h"
#define PROF_RUN_TESTS(name) fprintf(stderr, "\n-> Running %s\n", #name); \
fflush(stderr); \
@@ -427,6 +428,10 @@ int main(int argc, char* argv[]) {
close_preferences),
};
const UnitTest muc_tests[] = {
unit_test(test_muc_add_invite),
};
int bak, bak2, new;
fflush(stdout);
fflush(stderr);
@@ -456,6 +461,7 @@ int main(int argc, char* argv[]) {
PROF_RUN_TESTS(preferences_tests);
PROF_RUN_TESTS(cmd_alias_tests);
PROF_RUN_TESTS(server_events_tests);
PROF_RUN_TESTS(muc_tests);
fflush(stdout);
dup2(bak, 1);