2020-11-09 05:23:58 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2010-05-09 18:02:38 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-11-16 22:09:36 +01:00
|
|
|
#include <string.h>
|
2010-05-09 18:02:38 +02:00
|
|
|
|
2014-12-29 01:58:25 +01:00
|
|
|
#include "log.h"
|
2015-11-16 22:09:36 +01:00
|
|
|
#include "loopback-setup.h"
|
2018-09-13 14:31:13 +02:00
|
|
|
#include "tests.h"
|
2010-05-09 18:02:38 +02:00
|
|
|
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
int r;
|
|
|
|
|
2018-09-13 14:31:13 +02:00
|
|
|
test_setup_logging(LOG_DEBUG);
|
2014-12-29 01:58:25 +01:00
|
|
|
|
2015-09-08 19:14:10 +02:00
|
|
|
r = loopback_setup();
|
|
|
|
if (r < 0)
|
2017-05-13 17:24:37 +02:00
|
|
|
log_error_errno(r, "loopback: %m");
|
2010-05-09 18:02:38 +02:00
|
|
|
|
2016-02-26 15:00:33 +01:00
|
|
|
return r >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
2010-05-09 18:02:38 +02:00
|
|
|
}
|