From af4984f1b1652e599734f7361b9fdd3c27bed74b Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Sat, 30 Mar 2019 21:32:03 +0100 Subject: [PATCH] tests: add wg-quick stub; fix wg with no args --- tests/wg | 3 +++ tests/wg-quick | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 tests/wg-quick diff --git a/tests/wg b/tests/wg index 6d08a67..fe94290 100755 --- a/tests/wg +++ b/tests/wg @@ -1,6 +1,9 @@ #!/bin/sh case $1 in + '') + echo "nothing to see here" + ;; genkey) echo "ILICZ3yBMCGAWNIq5Pn0bewBVimW3Q2yRVJ/Be+b1Uc=" ;; diff --git a/tests/wg-quick b/tests/wg-quick new file mode 100755 index 0000000..67663cc --- /dev/null +++ b/tests/wg-quick @@ -0,0 +1,14 @@ +#!/bin/sh + +case $1 in + up) + echo "up $2" + ;; + pubkey) + echo "down $2" + ;; + *) + echo "what?" + exit 1 + ;; +esac \ No newline at end of file