diff options
author | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-25 19:05:30 -0500 |
---|---|---|
committer | flu0r1ne <flu0r1ne@flu0r1ne.net> | 2023-08-25 19:05:30 -0500 |
commit | 84ba3607bf4b87e2f872e960c957d7d860acd83d (patch) | |
tree | a4d5e92b2b88edd9c325ada62bf6d60948459529 /test | |
parent | 2f0a9c87bd5acd8fc0852f599599d031cde44bbe (diff) | |
download | wg2nd-84ba3607bf4b87e2f872e960c957d7d860acd83d.tar.xz wg2nd-84ba3607bf4b87e2f872e960c957d7d860acd83d.zip |
Rename project wg2sd -> wg2nd, new CLI + generate
1. Renamed the project from wg2sd to wg2nd
2. Modified the _gen_netdev_cfg() function to handle the MTUBytes field.
3. Add new CLI with `generate` and `install` commands
4. Modified the gen_systemd_config() function to accept keyfile_or_output_path and filename parameters.
- user can choose the name of the keyfile on the CLI
- user can choose alternative output filename (instead of just using
the interface name)
Diffstat (limited to 'test')
-rw-r--r-- | test/wg2nd_test.cpp (renamed from test/wg2sd_test.cpp) | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/wg2sd_test.cpp b/test/wg2nd_test.cpp index 5d57ac9..39b0766 100644 --- a/test/wg2sd_test.cpp +++ b/test/wg2nd_test.cpp @@ -1,17 +1,17 @@ #include "utest.h" -#include "wg2sd.hpp" +#include "wg2nd.hpp" #include <sstream> #include <array> -namespace wg2sd { +namespace wg2nd { extern bool _is_default_route(std::string const & cidr); extern bool _is_ipv4_route(std::string const & cidr); }; -using namespace wg2sd; +using namespace wg2nd; -UTEST(wg2sd, ip_helpers) { +UTEST(wg2nd, ip_helpers) { std::array<std::string, 8> default_routes = { "0/0", @@ -121,7 +121,7 @@ const char * INVALID_CONFIG = ( ); -UTEST(wg2sd, parses_config) { +UTEST(wg2nd, parses_config) { // CONFIG1 std::istringstream ss { CONFIG1 }; |