]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/test/test-loopback.c
Add SPDX license identifiers to source files under the LGPL
[thirdparty/systemd.git] / src / test / test-loopback.c
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
af5bc85d
LP
2/***
3 This file is part of systemd.
4
5 Copyright 2010 Lennart Poettering
6
7 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
af5bc85d
LP
10 (at your option) any later version.
11
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 15 Lesser General Public License for more details.
af5bc85d 16
5430f7f2 17 You should have received a copy of the GNU Lesser General Public License
af5bc85d
LP
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
19***/
20
af5bc85d 21#include <stdio.h>
cf0fbc49 22#include <string.h>
af5bc85d 23
2da780b9 24#include "log.h"
cf0fbc49 25#include "loopback-setup.h"
af5bc85d
LP
26
27int main(int argc, char* argv[]) {
28 int r;
29
2da780b9 30 log_open();
3becdb8a 31 log_set_max_level(LOG_DEBUG);
2da780b9
TG
32 log_parse_environment();
33
3cc2aff1
LP
34 r = loopback_setup();
35 if (r < 0)
35bca925 36 log_error_errno(r, "loopback: %m");
af5bc85d 37
f26b57d1 38 return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
af5bc85d 39}