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

check_arp.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_arp_pack)
00013 {
00014 }
00015 END_TEST
00016 
00017 START_TEST(test_arp_openclose)
00018 {
00019         arp_t   *a;
00020 
00021         fail_unless((a = arp_open()) != NULL, "open failed");
00022         fail_unless((a = arp_close(a)) == NULL, "close failed");
00023 }
00024 END_TEST
00025 
00026 START_TEST(test_arp_add)
00027 {
00028         
00029 }
00030 END_TEST
00031 
00032 START_TEST(test_arp_delete)
00033 {
00034 }
00035 END_TEST
00036 
00037 START_TEST(test_arp_get)
00038 {
00039 }
00040 END_TEST
00041 
00042 START_TEST(test_arp_loop)
00043 {
00044 }
00045 END_TEST
00046 
00047 Suite *
00048 arp_suite(void)
00049 {
00050         Suite *s = suite_create("arp");
00051         TCase *tc_core = tcase_create("core");
00052 
00053         suite_add_tcase(s, tc_core);
00054         tcase_add_test(tc_core, test_arp_pack);
00055         tcase_add_test(tc_core, test_arp_openclose);
00056         tcase_add_test(tc_core, test_arp_add);
00057         tcase_add_test(tc_core, test_arp_delete);
00058         tcase_add_test(tc_core, test_arp_get);
00059         tcase_add_test(tc_core, test_arp_loop);
00060         
00061         return (s);
00062 }
00063 
00064 int
00065 main(void)
00066 {
00067         Suite *s = arp_suite();
00068         SRunner *sr = srunner_create(s);
00069         int nf;
00070         
00071         srunner_run_all (sr, CK_NORMAL);
00072         nf = srunner_ntests_failed(sr);
00073         srunner_free(sr);
00074         
00075         return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
00076 }

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