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

check_fw.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_fw_pack)
00013 {
00014 }
00015 END_TEST
00016 
00017 START_TEST(test_fw_openclose)
00018 {
00019         fw_t *fw;
00020 
00021         fail_unless((fw = fw_open()) != NULL, "open failed");
00022         fail_unless((fw = fw_close(fw)) == NULL, "closed failed");
00023 }
00024 END_TEST
00025 
00026 START_TEST(test_fw_add)
00027 {
00028 }
00029 END_TEST
00030 
00031 START_TEST(test_fw_delete)
00032 {
00033 }
00034 END_TEST
00035 
00036 START_TEST(test_fw_loop)
00037 {
00038 }
00039 END_TEST
00040 
00041 START_TEST(test_fw_close)
00042 {
00043 }
00044 END_TEST
00045 
00046 Suite *
00047 fw_suite(void)
00048 {
00049         Suite *s = suite_create("fw");
00050         TCase *tc_core = tcase_create("core");
00051 
00052         suite_add_tcase(s, tc_core);
00053         tcase_add_test(tc_core, test_fw_pack);
00054         tcase_add_test(tc_core, test_fw_openclose);
00055         tcase_add_test(tc_core, test_fw_add);
00056         tcase_add_test(tc_core, test_fw_delete);
00057         tcase_add_test(tc_core, test_fw_loop);
00058         
00059         return (s);
00060 }
00061 
00062 int
00063 main(void)
00064 {
00065         Suite *s = fw_suite();
00066         SRunner *sr = srunner_create(s);
00067         int nf;
00068         
00069         srunner_run_all (sr, CK_NORMAL);
00070         nf = srunner_ntests_failed(sr);
00071         srunner_free(sr);
00072         
00073         return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
00074 }

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