int main(void) { test_reg(); test_rm(); test_mm(); test_big(0xffffffff); test_big(0x1fff); test_big(0xff); return 0; }
int init_module(void) { START_TESTS("IPv4 Pool DB"); /* * TODO (test) This is missing a multiple-tables test. * (it always does mark = 1.) */ INIT_CALL_END(init(), test_foreach_sample(), destroy(), "Sample for"); INIT_CALL_END(init(), test_add(), destroy(), "Add"); INIT_CALL_END(init(), test_rm(), destroy(), "Rm"); INIT_CALL_END(init(), test_flush(), destroy(), "Flush"); END_TESTS; }