summaryrefslogtreecommitdiff
path: root/auto_tests/monolith_test.cpp
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-02-05 16:11:49 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-02-08 14:57:34 +0000
commit8a0e98bab8a4bccd11adc0e2c838910ed1b6d794 (patch)
tree09e6cab043b303a26829521914d8b5d1e15df846 /auto_tests/monolith_test.cpp
parent36ba80aacb2a582854f0e5e3ed0d69ca63db52ea (diff)
Fix LAN discovery on FreeBSD.
Also, add an auto-test for bootstrap and for LAN discovery. Bootstrap is never tested otherwise, and LAN discovery is a prerequisite for everything else. Having these two tests lets us rule out or identify LAN discovery as a possible cause for test failures.
Diffstat (limited to 'auto_tests/monolith_test.cpp')
-rw-r--r--auto_tests/monolith_test.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/auto_tests/monolith_test.cpp b/auto_tests/monolith_test.cpp
index 088b4e01..b1e13448 100644
--- a/auto_tests/monolith_test.cpp
+++ b/auto_tests/monolith_test.cpp
@@ -1,6 +1,13 @@
1/* Auto Tests: One instance. 1/* Nop-test, just to make sure our code compiles as C++.
2 */ 2 */
3 3
4#ifdef __FreeBSD__
5// Include this here, because _XOPEN_SOURCE hides symbols we need.
6//
7// https://lists.freebsd.org/pipermail/freebsd-standards/2004-March/000474.html.
8#include <net/if.h>
9#endif
10
4#define _DARWIN_C_SOURCE 11#define _DARWIN_C_SOURCE
5#define _XOPEN_SOURCE 600 12#define _XOPEN_SOURCE 600
6 13
@@ -21,6 +28,10 @@ namespace TCP_test
21{ 28{
22#include "TCP_test.c" 29#include "TCP_test.c"
23} 30}
31namespace bootstrap_test
32{
33#include "bootstrap_test.c"
34}
24namespace conference_test 35namespace conference_test
25{ 36{
26#include "conference_test.c" 37#include "conference_test.c"
@@ -41,6 +52,10 @@ namespace file_saving_test
41{ 52{
42#include "file_saving_test.c" 53#include "file_saving_test.c"
43} 54}
55namespace lan_discovery_test
56{
57#include "lan_discovery_test.c"
58}
44namespace messenger_test 59namespace messenger_test
45{ 60{
46#include "messenger_test.c" 61#include "messenger_test.c"