test-dns-domain.c revision b914e211f3a40f507b3cdc572838ec7f3fd5e4cf
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "log.h"
#include "resolved-dns-domain.h"
static void test_dns_label_unescape_one(const char *what, const char *expect, size_t buffer_sz, int ret) {
int r;
if (r < 0)
return;
}
static void test_dns_label_unescape(void) {
}
_cleanup_free_ char *t = NULL;
int r;
r = dns_label_escape(what, l, &t);
if (r < 0)
return;
}
static void test_dns_label_escape(void) {
test_dns_label_escape_one("hallo hallo.foobar,waldi", 24, "hallo\\032hallo\\.foobar\\044waldi", 31);
}
_cleanup_free_ char *t = NULL;
int r;
r = dns_name_normalize(what, &t);
if (r < 0)
return;
}
static void test_dns_name_normalize(void) {
}
static void test_dns_name_equal_one(const char *a, const char *b, int ret) {
int r;
r = dns_name_equal(a, b);
r = dns_name_equal(b, a);
}
static void test_dns_name_equal(void) {
}
static void test_dns_name_endswith_one(const char *a, const char *b, int ret) {
}
static void test_dns_name_endswith(void) {
}
static void test_dns_name_root(void) {
}
static void test_dns_name_single_label(void) {
}
_cleanup_free_ char *p = NULL;
union in_addr_union a, b;
}
static void test_dns_name_reverse(void) {
test_dns_name_reverse_one("fe80::47", "7.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.e.f.ip6.arpa");
}
return 0;
}