From 23a37100f121edd0c1291c4a78901662eae5d58b Mon Sep 17 00:00:00 2001 From: flu0r1ne Date: Wed, 5 Jun 2024 13:35:20 -0700 Subject: Integration tests and "\r\n" DOS-style line feeds - Parse \r\n line feeds - Add simple integration tests to ensure regressions do not occur - Add test "wg1" for \r\n parsing --- test/example_config/wg1/wg1.network | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 test/example_config/wg1/wg1.network (limited to 'test/example_config/wg1/wg1.network') diff --git a/test/example_config/wg1/wg1.network b/test/example_config/wg1/wg1.network new file mode 100644 index 0000000..3a50f29 --- /dev/null +++ b/test/example_config/wg1/wg1.network @@ -0,0 +1,33 @@ +# Autogenerated by wg2nd +[Match] +Name = wg1 + +[Link] +ActivationPolicy = manual + +[Network] +Address = 10.55.127.342/32 +Address = ab00:aaaa:aaa:aa02::5:abcd/128 +DNS = 10.64.0.1 +Domains = ~. + +[Route] +Destination = 0.0.0.0/0 +Table = 635110983 + +[Route] +Destination = ::0/0 +Table = 635110983 + +[RoutingPolicyRule] +SuppressPrefixLength = 0 +Family = both +Priority = 32764 + +[RoutingPolicyRule] +FirewallMark = 0x25db0647 +InvertRule = true +Table = 635110983 +Family = both +Priority = 32765 + -- cgit v1.2.3