2011-06-24 10:04:37 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
|
|
|
#include "internal.h"
|
|
|
|
#include "testutils.h"
|
|
|
|
#include "network_conf.h"
|
2012-12-12 16:27:01 +00:00
|
|
|
#include "vircommand.h"
|
2012-12-12 18:06:53 +00:00
|
|
|
#include "viralloc.h"
|
2011-06-24 10:04:37 +00:00
|
|
|
#include "network/bridge_driver.h"
|
2013-04-03 10:36:23 +00:00
|
|
|
#include "virstring.h"
|
2022-01-12 04:42:41 +00:00
|
|
|
#define LIBVIRT_VIRCOMMANDPRIV_H_ALLOW
|
|
|
|
#include "vircommandpriv.h"
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2013-06-07 08:37:25 +00:00
|
|
|
#define VIR_FROM_THIS VIR_FROM_NONE
|
|
|
|
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
static int
|
2020-04-22 20:05:58 +00:00
|
|
|
testCompareXMLToConfFiles(const char *inxml, const char *outconf,
|
2021-03-11 07:16:13 +00:00
|
|
|
char *outhostsfile, dnsmasqCaps *caps)
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
{
|
2020-04-22 20:05:57 +00:00
|
|
|
char *confactual = NULL;
|
2021-09-04 20:35:15 +00:00
|
|
|
g_autofree char *hostsfileactual = NULL;
|
2011-06-24 10:04:37 +00:00
|
|
|
int ret = -1;
|
2021-03-11 07:16:13 +00:00
|
|
|
virNetworkDef *def = NULL;
|
|
|
|
virNetworkObj *obj = NULL;
|
2021-09-04 20:35:15 +00:00
|
|
|
g_autofree char *pidfile = NULL;
|
2021-12-13 18:30:23 +00:00
|
|
|
g_autoptr(dnsmasqContext) dctx = NULL;
|
2021-08-20 13:53:53 +00:00
|
|
|
g_autoptr(virNetworkXMLOption) xmlopt = NULL;
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2019-07-14 22:25:12 +00:00
|
|
|
if (!(xmlopt = networkDnsmasqCreateXMLConf()))
|
|
|
|
goto fail;
|
|
|
|
|
|
|
|
if (!(def = virNetworkDefParseFile(inxml, xmlopt)))
|
2011-06-24 10:04:37 +00:00
|
|
|
goto fail;
|
|
|
|
|
2015-02-25 13:08:19 +00:00
|
|
|
if (!(obj = virNetworkObjNew()))
|
2011-06-24 10:04:37 +00:00
|
|
|
goto fail;
|
|
|
|
|
2017-05-09 22:38:58 +00:00
|
|
|
virNetworkObjSetDef(obj, def);
|
|
|
|
|
|
|
|
dctx = dnsmasqContextNew(def->name, "/var/lib/libvirt/dnsmasq");
|
2011-06-24 10:04:37 +00:00
|
|
|
|
network: Fix dnsmasq hostsfile creation logic and related tests
networkSaveDnsmasqHostsfile was added in 8fa9c2214247 (Apr 2010).
It has a force flag. If the dnsmasq hostsfile already exists force
needs to be true to overwrite it. networkBuildDnsmasqArgv sets force
to false, networkDefine sets it to true. This results in the
hostsfile being written only in networkDefine in the common case.
If no error occurred networkSaveDnsmasqHostsfile returns true and
networkBuildDnsmasqArgv adds the --dhcp-hostsfile to the dnsmasq
command line.
networkSaveDnsmasqHostsfile was changed in 89ae9849f744 (24 Jun 2011)
to return a new dnsmasqContext instead of reusing one. This change broke
the logic of the force flag as now networkSaveDnsmasqHostsfile returns
NULL on error, but the early return -- if force was not set and the
hostsfile exists -- returns 0. This turned the early return in an error
case and networkBuildDnsmasqArgv didn't add the --dhcp-hostsfile option
anymore if the hostsfile already exists. It did because networkDefine
created the hostsfile already.
Then 9d4e2845d498 fixed the return 0 case in networkSaveDnsmasqHostsfile
but didn't apply the force option correctly to the new addnhosts file.
Now force doesn't control an early return anymore, but influences the
handling of the hostsfile context creation and dnsmasqSave is always
called now. This commit also added test cases that reveal several
problems. First, the tests now calls functions that try to write the
dnsmasq config files to disk. If someone runs this tests as root this
might overwrite actively used dnsmasq config files, this is a no-go. Also
the tests depend on configure --localstatedir, this needs to be fixed as
well, because it makes the tests fail when localstatedir is different
from /var.
This patch does several things to fix this:
1) Move dnsmasqContext creation and saving out of networkBuildDnsmasqArgv
to the caller to separate the command line generation from the config
file writing. This makes the command line generation testable without the
risk of interfering with system files, because the tests just don't call
dnsmasqSave.
2) This refactoring of networkSaveDnsmasqHostsfile makes the force flag
useless as the saving happens somewhere else now. This fixes the wrong
usage of the force flag in combination with then newly added addnhosts
file by removing the force flag.
3) Adapt the wrong test cases to the correct behavior, by adding the
missing --dhcp-hostsfile option. Both affected tests contain DHCP host
elements but missed the necessary --dhcp-hostsfile option.
4) Rename networkSaveDnsmasqHostsfile to networkBuildDnsmasqHostsfile,
because it doesn't save the dnsmasqContext anymore.
5) Move all directory creations in dnsmasq context handling code from
the *New functions to dnsmasqSave to avoid directory creations in system
paths in the test cases.
6) Now that networkBuildDnsmasqArgv doesn't create the dnsmasqContext
anymore the test case can create one with the localstatedir that is
expected by the tests instead of the configure --localstatedir given one.
2011-06-28 11:07:59 +00:00
|
|
|
if (dctx == NULL)
|
|
|
|
goto fail;
|
|
|
|
|
2020-04-22 20:05:57 +00:00
|
|
|
if (networkDnsmasqConfContents(obj, pidfile, &confactual,
|
|
|
|
&hostsfileactual, dctx, caps) < 0)
|
2011-06-24 10:04:37 +00:00
|
|
|
goto fail;
|
|
|
|
|
2016-12-25 16:02:50 +00:00
|
|
|
/* Any changes to this function ^^ should be reflected here too. */
|
|
|
|
#ifndef __linux__
|
|
|
|
char * tmp;
|
|
|
|
|
2020-04-22 20:05:57 +00:00
|
|
|
if (!(tmp = virStringReplace(confactual,
|
2016-12-25 16:02:50 +00:00
|
|
|
"except-interface=lo0\n",
|
|
|
|
"except-interface=lo\n")))
|
|
|
|
goto fail;
|
2020-04-22 20:05:57 +00:00
|
|
|
VIR_FREE(confactual);
|
2020-04-23 10:28:43 +00:00
|
|
|
confactual = g_steal_pointer(&tmp);
|
2016-12-25 16:02:50 +00:00
|
|
|
#endif
|
|
|
|
|
2020-04-22 20:05:57 +00:00
|
|
|
if (virTestCompareToFile(confactual, outconf) < 0)
|
2011-06-24 10:04:37 +00:00
|
|
|
goto fail;
|
|
|
|
|
2020-04-22 20:05:58 +00:00
|
|
|
if (virFileExists(outhostsfile)) {
|
|
|
|
if (!hostsfileactual) {
|
|
|
|
VIR_TEST_DEBUG("%s: hostsfile exists but the configuration did "
|
|
|
|
"not specify any host", outhostsfile);
|
|
|
|
goto fail;
|
|
|
|
} else if (virTestCompareToFile(hostsfileactual, outhostsfile) < 0) {
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
} else if (hostsfileactual) {
|
|
|
|
VIR_TEST_DEBUG("%s: file does not exist but actual data was expected",
|
|
|
|
outhostsfile);
|
|
|
|
goto fail;
|
|
|
|
}
|
|
|
|
|
2011-06-24 10:04:37 +00:00
|
|
|
ret = 0;
|
|
|
|
|
|
|
|
fail:
|
2020-04-22 20:05:57 +00:00
|
|
|
VIR_FREE(confactual);
|
2017-05-10 12:40:40 +00:00
|
|
|
virNetworkObjEndAPI(&obj);
|
2011-06-24 10:04:37 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
typedef struct {
|
|
|
|
const char *name;
|
2021-03-11 07:16:13 +00:00
|
|
|
dnsmasqCaps *caps;
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
} testInfo;
|
|
|
|
|
2011-06-24 10:04:37 +00:00
|
|
|
static int
|
2012-12-06 17:20:39 +00:00
|
|
|
testCompareXMLToConfHelper(const void *data)
|
2011-06-24 10:04:37 +00:00
|
|
|
{
|
|
|
|
int result = -1;
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
const testInfo *info = data;
|
2021-09-04 20:35:15 +00:00
|
|
|
g_autofree char *inxml = NULL;
|
|
|
|
g_autofree char *outconf = NULL;
|
|
|
|
g_autofree char *outhostsfile = NULL;
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2019-10-22 13:26:14 +00:00
|
|
|
inxml = g_strdup_printf("%s/networkxml2confdata/%s.xml", abs_srcdir, info->name);
|
|
|
|
outconf = g_strdup_printf("%s/networkxml2confdata/%s.conf", abs_srcdir, info->name);
|
2020-04-22 20:05:58 +00:00
|
|
|
outhostsfile = g_strdup_printf("%s/networkxml2confdata/%s.hostsfile", abs_srcdir, info->name);
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2020-04-22 20:05:58 +00:00
|
|
|
result = testCompareXMLToConfFiles(inxml, outconf, outhostsfile, info->caps);
|
2011-06-24 10:04:37 +00:00
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2022-01-12 04:42:41 +00:00
|
|
|
static void
|
|
|
|
buildCapsCallback(const char *const*args,
|
|
|
|
const char *const*env G_GNUC_UNUSED,
|
|
|
|
const char *input G_GNUC_UNUSED,
|
|
|
|
char **output,
|
|
|
|
char **error G_GNUC_UNUSED,
|
|
|
|
int *status,
|
|
|
|
void *opaque G_GNUC_UNUSED)
|
|
|
|
{
|
|
|
|
if (STREQ(args[0], "/usr/sbin/dnsmasq") && STREQ(args[1], "--version")) {
|
|
|
|
*output = g_strdup("Dnsmasq version 2.67\n");
|
|
|
|
*status = EXIT_SUCCESS;
|
|
|
|
} else {
|
|
|
|
*status = EXIT_FAILURE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static dnsmasqCaps *
|
|
|
|
buildCaps(void)
|
|
|
|
{
|
|
|
|
g_autoptr(dnsmasqCaps) caps = NULL;
|
|
|
|
g_autoptr(virCommandDryRunToken) dryRunToken = virCommandDryRunTokenNew();
|
|
|
|
|
|
|
|
virCommandSetDryRun(dryRunToken, NULL, true, true, buildCapsCallback, NULL);
|
|
|
|
|
|
|
|
caps = dnsmasqCapsNewFromBinary();
|
|
|
|
|
|
|
|
return g_steal_pointer(&caps);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-06-24 10:04:37 +00:00
|
|
|
static int
|
|
|
|
mymain(void)
|
|
|
|
{
|
|
|
|
int ret = 0;
|
2022-01-11 15:51:32 +00:00
|
|
|
g_autoptr(dnsmasqCaps) full = NULL;
|
|
|
|
|
2022-01-17 12:14:45 +00:00
|
|
|
if (!(full = buildCaps())) {
|
|
|
|
fprintf(stderr, "failed to create the fake capabilities: %s",
|
|
|
|
virGetLastErrorMessage());
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
}
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2017-11-03 12:09:47 +00:00
|
|
|
#define DO_TEST(xname, xcaps) \
|
|
|
|
do { \
|
|
|
|
static testInfo info; \
|
|
|
|
\
|
|
|
|
info.name = xname; \
|
|
|
|
info.caps = xcaps; \
|
|
|
|
if (virTestRun("Network XML-2-Conf " xname, \
|
|
|
|
testCompareXMLToConfHelper, &info) < 0) { \
|
|
|
|
ret = -1; \
|
|
|
|
} \
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
} while (0)
|
|
|
|
|
2021-12-14 18:10:29 +00:00
|
|
|
DO_TEST("isolated-network", full);
|
|
|
|
DO_TEST("netboot-network", full);
|
|
|
|
DO_TEST("netboot-proxy-network", full);
|
|
|
|
DO_TEST("nat-network-dns-srv-record-minimal", full);
|
|
|
|
DO_TEST("nat-network-name-with-quotes", full);
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
DO_TEST("routed-network", full);
|
2016-08-11 21:29:43 +00:00
|
|
|
DO_TEST("routed-network-no-dns", full);
|
2016-08-10 23:09:55 +00:00
|
|
|
DO_TEST("open-network", full);
|
2021-12-14 18:10:29 +00:00
|
|
|
DO_TEST("nat-network", full);
|
util: capabilities detection for dnsmasq
In order to optionally take advantage of new features in dnsmasq when
the host's version of dnsmasq supports them, but still be able to run
on hosts that don't support the new features, we need to be able to
detect the version of dnsmasq running on the host, and possibly
determine from the help output what options are in this dnsmasq.
This patch implements a greatly simplified version of the capabilities
code we already have for qemu. A dnsmasqCaps device can be created and
populated either from running a program on disk, reading a file with
the concatenated output of "dnsmasq --version; dnsmasq --help", or
examining a buffer in memory that contains the concatenated output of
those two commands. Simple functions to retrieve capabilities flags,
the version number, and the path of the binary are also included.
bridge_driver.c creates a single dnsmasqCaps object at driver startup,
and disposes of it at driver shutdown. Any time it must be used, the
dnsmasqCapsRefresh method is called - it checks the mtime of the
binary, and re-runs the checks if the binary has changed.
networkxml2argvtest.c creates 2 "artificial" dnsmasqCaps objects at
startup - one "restricted" (doesn't support --bind-dynamic) and one
"full" (does support --bind-dynamic). Some of the test cases use one
and some the other, to make sure both code pathes are tested.
2012-11-20 17:22:15 +00:00
|
|
|
DO_TEST("nat-network-dns-txt-record", full);
|
|
|
|
DO_TEST("nat-network-dns-srv-record", full);
|
|
|
|
DO_TEST("nat-network-dns-hosts", full);
|
2013-08-13 22:56:38 +00:00
|
|
|
DO_TEST("nat-network-dns-forward-plain", full);
|
2013-09-13 16:31:07 +00:00
|
|
|
DO_TEST("nat-network-dns-forwarders", full);
|
2017-03-17 16:25:43 +00:00
|
|
|
DO_TEST("nat-network-dns-forwarder-no-resolv", full);
|
2014-12-04 00:01:33 +00:00
|
|
|
DO_TEST("nat-network-dns-local-domain", full);
|
2021-12-14 18:10:29 +00:00
|
|
|
DO_TEST("nat-network-mtu", full);
|
|
|
|
DO_TEST("dhcp6-network", full);
|
|
|
|
DO_TEST("dhcp6-nat-network", full);
|
|
|
|
DO_TEST("dhcp6host-routed-network", full);
|
|
|
|
DO_TEST("ptr-domains-auto", full);
|
|
|
|
DO_TEST("dnsmasq-options", full);
|
2020-04-22 20:05:58 +00:00
|
|
|
DO_TEST("leasetime-seconds", full);
|
|
|
|
DO_TEST("leasetime-minutes", full);
|
|
|
|
DO_TEST("leasetime-hours", full);
|
|
|
|
DO_TEST("leasetime-infinite", full);
|
2011-06-24 10:04:37 +00:00
|
|
|
|
2014-03-17 09:38:38 +00:00
|
|
|
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
2011-06-24 10:04:37 +00:00
|
|
|
}
|
|
|
|
|
2022-01-10 15:19:31 +00:00
|
|
|
VIR_TEST_MAIN_PRELOAD(mymain,
|
|
|
|
VIR_TEST_MOCK("virdnsmasq"))
|