Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

check_route.c

Go to the documentation of this file.
00001 
00002 #include <sys/types.h>
00003 
00004 #include <dnet.h>
00005 
00006 #include <stdio.h>
00007 #include <stdlib.h>
00008 #include <string.h>
00009 
00010 #include <check.h>
00011 
00012 START_TEST(test_route_openclose)
00013 {
00014         route_t *r;
00015 
00016         fail_unless((r = route_open()) != NULL, "open failed");
00017         fail_unless((r = route_close(r)) == NULL, "close failed");
00018 }
00019 END_TEST
00020 
00021 START_TEST(test_route_add)
00022 {
00023 }
00024 END_TEST
00025 
00026 START_TEST(test_route_delete)
00027 {
00028 }
00029 END_TEST
00030 
00031 START_TEST(test_route_get)
00032 {
00033 }
00034 END_TEST
00035 
00036 START_TEST(test_route_loop)
00037 {
00038 }
00039 END_TEST
00040 
00041 Suite *
00042 route_suite(void)
00043 {
00044         Suite *s = suite_create("route");
00045         TCase *tc_core = tcase_create("core");
00046 
00047         suite_add_tcase(s, tc_core);
00048         tcase_add_test(tc_core, test_route_openclose);
00049         tcase_add_test(tc_core, test_route_add);
00050         tcase_add_test(tc_core, test_route_delete);
00051         tcase_add_test(tc_core, test_route_get);
00052         tcase_add_test(tc_core, test_route_loop);
00053         
00054         return (s);
00055 }
00056 
00057 int
00058 main(void)
00059 {
00060         Suite *s = route_suite();
00061         SRunner *sr = srunner_create(s);
00062         int nf;
00063         
00064         srunner_run_all (sr, CK_NORMAL);
00065         nf = srunner_ntests_failed(sr);
00066         srunner_free(sr);
00067         
00068         return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
00069 }

Generated on Sun May 14 14:51:12 2006 by  doxygen 1.4.2