nginx-util: add tests, clean up and fix issues
authorPeter Stadler <redacted>
Tue, 4 Feb 2020 12:10:00 +0000 (13:10 +0100)
committerPeter Stadler <redacted>
Sun, 9 Feb 2020 12:02:54 +0000 (13:02 +0100)
commite247efa254599f0a2cf9178b2ef16b5ac6cc8fb8
tree6df72a3c49077843ae491d2619df390c8fd9ea59
parentfed1b3b11bf9361dbbd158a1018c701d8180e49b
nginx-util: add tests, clean up and fix issues

Add tests for nginx-ssl-util and nginx-ssl-util-nopcre using (fake)chroot.
Clean the code up making nginx-ssl-util a header file.
Both changes are for better (future) code quality only.

There are minor functional improvements:
* fix compiler error of gcc7 by using std=c++17
* fix error if there is no lan/loopback interface
* notice instead of error message if there is no default server
* add ipv6-prefix-assignment.*.local-address.address for LAN
* add CONFLICTS in Makefile for choosing the right version
* add cast to release of unique_ptr to avoid warning
* add version message to help message

Signed-off-by: Peter Stadler <redacted>
net/nginx-util/Makefile
net/nginx-util/src/CMakeLists.txt
net/nginx-util/src/nginx-ssl-util.hpp [moved from net/nginx-util/src/nginx-ssl-util.cpp with 98% similarity]
net/nginx-util/src/nginx-util.cpp
net/nginx-util/src/test-nginx-util-root.sh [new file with mode: 0644]
net/nginx-util/src/test-nginx-util.sh [new file with mode: 0755]
net/nginx-util/src/test-px5g.sh
net/nginx-util/src/ubus-cxx.hpp
git clone https://git.99rst.org/PROJECT