test_dyndns.c revision a95c006f748fa9df0dd81509b51974133d2786af
5N/A Jakub Hrozek <jhrozek@redhat.com> 5N/A Copyright (C) 2013 Red Hat 5N/A SSSD tests: Dynamic DNS tests 5N/A This program is free software; you can redistribute it and/or modify 5N/A it under the terms of the GNU General Public License as published by 15N/A the Free Software Foundation; either version 3 of the License, or 5N/A (at your option) any later version. 5N/A This program is distributed in the hope that it will be useful, 5N/A but WITHOUT ANY WARRANTY; without even the implied warranty of 5N/A MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5N/A GNU General Public License for more details. 5N/A You should have received a copy of the GNU General Public License /* In order to access opaque types */ /* Do not alocate directly on ifap->ifa_addr to * avoid alignment warnings */ /* convert straddr into ifa_addr */ /* There must be only one address with the correct value */ /* Wait until the test finishes with EOK */ /* Wait until the test finishes with EIO (child error) */ /* Wait until the test finishes with EIO (child error) */ /* The event queue may not be empty. We need to make sure that all events * are processed. Unfortunately, tevent_loop_wait() contains a bug that * prevents exiting the loop even if there are no remaining events, thus * we have to use tevent_loop_once(). * FIXME: use tevent_loop_wait() when the bug is fixed /* Wait until the timer hits */ /* Testsuite setup and teardown */ {
"dyndns_update",
"true" },
{
"dyndns_refresh_interval",
"2" },
_(
"Do not delete the test database after a test run"),
NULL },
/* Utility functions unit test */ /* Dynamic DNS update unit tests*/ /* Set debug level to invalid value so we can deside if -d 0 was used. */ /* Even though normally the tests should clean up after themselves * they might not after a failed run. Remove the old db to be sure */