mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Add commandline parsing to all tests.
This commit is contained in:
parent
7b6be113ea
commit
e41e8e1610
16 changed files with 209 additions and 94 deletions
|
@ -47,7 +47,7 @@ START_TEST (check_csync_init)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
static Suite *csync_suite(void) {
|
static Suite *make_csync_suite(void) {
|
||||||
Suite *s = suite_create("csync");
|
Suite *s = suite_create("csync");
|
||||||
|
|
||||||
create_case(s, "check_csync_destroy_null", check_csync_destroy_null);
|
create_case(s, "check_csync_destroy_null", check_csync_destroy_null);
|
||||||
|
@ -57,16 +57,22 @@ static Suite *csync_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -34,7 +34,7 @@ START_TEST (check_csync_config_load)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
static Suite *csync_suite(void) {
|
static Suite *make_csync_suite(void) {
|
||||||
Suite *s = suite_create("csync_config");
|
Suite *s = suite_create("csync_config");
|
||||||
|
|
||||||
create_case_fixture(s, "check_csync_config_copy_default", check_csync_config_copy_default, setup, teardown);
|
create_case_fixture(s, "check_csync_config_copy_default", check_csync_config_copy_default, setup, teardown);
|
||||||
|
@ -43,16 +43,22 @@ static Suite *csync_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -48,7 +48,7 @@ START_TEST (check_csync_excluded)
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
static Suite *csync_suite(void) {
|
static Suite *make_csync_suite(void) {
|
||||||
Suite *s = suite_create("csync_exclude");
|
Suite *s = suite_create("csync_exclude");
|
||||||
|
|
||||||
create_case_fixture(s, "check_csync_exclude_add", check_csync_exclude_add, setup, teardown);
|
create_case_fixture(s, "check_csync_exclude_add", check_csync_exclude_add, setup, teardown);
|
||||||
|
@ -58,16 +58,22 @@ static Suite *csync_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -215,7 +215,7 @@ START_TEST (check_csync_journal_write)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
static Suite *csync_suite(void) {
|
static Suite *make_csync_suite(void) {
|
||||||
Suite *s = suite_create("csync_journal");
|
Suite *s = suite_create("csync_journal");
|
||||||
|
|
||||||
create_case(s, "check_csync_journal_check", check_csync_journal_check);
|
create_case(s, "check_csync_journal_check", check_csync_journal_check);
|
||||||
|
@ -234,16 +234,22 @@ static Suite *csync_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -63,7 +63,7 @@ START_TEST (check_csync_lock_content)
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
static Suite *csync_suite(void) {
|
static Suite *make_csync_suite(void) {
|
||||||
Suite *s = suite_create("csync_lock");
|
Suite *s = suite_create("csync_lock");
|
||||||
|
|
||||||
create_case_fixture(s, "check_csync_lock", check_csync_lock, setup, teardown);
|
create_case_fixture(s, "check_csync_lock", check_csync_lock, setup, teardown);
|
||||||
|
@ -72,14 +72,22 @@ static Suite *csync_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
/* srunner_set_fork_status(sr, CK_NOFORK); */
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -56,14 +56,24 @@ static Suite *make_c_strdup_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
Suite *s2 = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_c_malloc_suite();
|
ZERO_STRUCT(arguments);
|
||||||
Suite *s2 = make_c_strdup_suite();
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_c_malloc_suite();
|
||||||
|
s2 = make_c_strdup_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_add_suite (sr, s2);
|
srunner_add_suite (sr, s2);
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
|
|
|
@ -112,14 +112,24 @@ static Suite *make_std_c_isdir_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
Suite *s2 = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_std_c_mkdirs_suite();
|
ZERO_STRUCT(arguments);
|
||||||
Suite *s2 = make_std_c_isdir_suite();
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_std_c_mkdirs_suite();
|
||||||
|
s2 = make_std_c_isdir_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_add_suite (sr, s2);
|
srunner_add_suite (sr, s2);
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
|
|
|
@ -68,15 +68,22 @@ static Suite *make_c_copy_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_c_copy_suite();
|
ZERO_STRUCT(arguments);
|
||||||
/* Suite *s2 = make_std_is_dir_suite(); */
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_c_copy_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
/* srunner_add_suite (sr, s2); */
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -262,15 +262,22 @@ static Suite *make_c_jhash_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_c_jhash_suite();
|
ZERO_STRUCT(arguments);
|
||||||
/* Suite *s2 = make_xstrdup_suite(); */
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_c_jhash_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
/* srunner_add_suite (sr, s2); */
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -101,14 +101,24 @@ static Suite *make_std_c_dirname_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
Suite *s2 = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_std_c_basename_suite();
|
ZERO_STRUCT(arguments);
|
||||||
Suite *s2 = make_std_c_dirname_suite();
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_std_c_basename_suite();
|
||||||
|
s2 = make_std_c_dirname_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_add_suite (sr, s2);
|
srunner_add_suite (sr, s2);
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
|
|
|
@ -274,14 +274,22 @@ static Suite *make_c_rbtree_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_c_rbtree_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_c_rbtree_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
/* srunner_set_fork_status(sr, CK_NOFORK); */
|
if (arguments.nofork) {
|
||||||
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -106,17 +106,24 @@ static Suite *make_std_c_strlist_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
Suite *s2 = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = make_std_c_streq_suite();
|
ZERO_STRUCT(arguments);
|
||||||
Suite *s2 = make_std_c_strlist_suite();
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_std_c_streq_suite();
|
||||||
|
s2 = make_std_c_strlist_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_add_suite (sr, s2);
|
srunner_add_suite (sr, s2);
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
|
|
|
@ -346,7 +346,7 @@ START_TEST (check_csync_vio_utimes)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
static Suite *csync_vio_suite(void) {
|
static Suite *make_csync_vio_suite(void) {
|
||||||
Suite *s = suite_create("csync_vio");
|
Suite *s = suite_create("csync_vio");
|
||||||
|
|
||||||
create_case_fixture(s, "check_csync_vio_load", check_csync_vio_load, setup, teardown);
|
create_case_fixture(s, "check_csync_vio_load", check_csync_vio_load, setup, teardown);
|
||||||
|
@ -381,16 +381,22 @@ static Suite *csync_vio_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_vio_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_vio_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -14,7 +14,7 @@ START_TEST (check_csync_vio_file_stat_new)
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
static Suite *csync_vio_suite(void) {
|
static Suite *make_csync_vio_suite(void) {
|
||||||
Suite *s = suite_create("csync_vio_file_stat");
|
Suite *s = suite_create("csync_vio_file_stat");
|
||||||
|
|
||||||
create_case(s, "check_csync_vio_file_stat_new", check_csync_vio_file_stat_new);
|
create_case(s, "check_csync_vio_file_stat_new", check_csync_vio_file_stat_new);
|
||||||
|
@ -22,16 +22,22 @@ static Suite *csync_vio_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_vio_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_vio_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -43,7 +43,7 @@ START_TEST (check_csync_vio_handle_new_null)
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
||||||
static Suite *csync_vio_suite(void) {
|
static Suite *make_csync_vio_suite(void) {
|
||||||
Suite *s = suite_create("csync_vio_handle");
|
Suite *s = suite_create("csync_vio_handle");
|
||||||
|
|
||||||
create_case(s, "check_csync_vio_handle_new", check_csync_vio_handle_new);
|
create_case(s, "check_csync_vio_handle_new", check_csync_vio_handle_new);
|
||||||
|
@ -52,16 +52,22 @@ static Suite *csync_vio_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_vio_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_vio_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
#endif
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
|
@ -324,7 +324,7 @@ START_TEST (check_csync_vio_local_utimes)
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
static Suite *csync_vio_local_suite(void) {
|
static Suite *make_csync_vio_suite(void) {
|
||||||
Suite *s = suite_create("csync_vio");
|
Suite *s = suite_create("csync_vio");
|
||||||
|
|
||||||
create_case_fixture(s, "check_csync_vio_local_mkdir", check_csync_vio_local_mkdir, setup, teardown_dir);
|
create_case_fixture(s, "check_csync_vio_local_mkdir", check_csync_vio_local_mkdir, setup, teardown_dir);
|
||||||
|
@ -357,16 +357,22 @@ static Suite *csync_vio_local_suite(void) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(int argc, char **argv) {
|
||||||
|
Suite *s = NULL;
|
||||||
|
SRunner *sr = NULL;
|
||||||
|
struct argument_s arguments;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
Suite *s = csync_vio_local_suite();
|
ZERO_STRUCT(arguments);
|
||||||
|
|
||||||
|
cmdline_parse(argc, argv, &arguments);
|
||||||
|
|
||||||
|
s = make_csync_vio_suite();
|
||||||
|
|
||||||
SRunner *sr;
|
|
||||||
sr = srunner_create(s);
|
sr = srunner_create(s);
|
||||||
#if 0
|
if (arguments.nofork) {
|
||||||
#endif
|
|
||||||
srunner_set_fork_status(sr, CK_NOFORK);
|
srunner_set_fork_status(sr, CK_NOFORK);
|
||||||
|
}
|
||||||
srunner_run_all(sr, CK_VERBOSE);
|
srunner_run_all(sr, CK_VERBOSE);
|
||||||
nf = srunner_ntests_failed(sr);
|
nf = srunner_ntests_failed(sr);
|
||||||
srunner_free(sr);
|
srunner_free(sr);
|
||||||
|
|
Loading…
Reference in a new issue