aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-05-23 12:09:56 +0200
committerSimon Rozman <simon@rozman.si>2019-05-23 12:11:32 +0200
commitf22177cb5b9bb80f6dfd77cd3afab7789d4bd024 (patch)
tree1ed33502f21d7e642ac7fc7f0af0a7a472f7d6ff
parentinstaller: do not wait for service to start (diff)
downloadwireguard-windows-f22177cb5b9bb80f6dfd77cd3afab7789d4bd024.tar.xz
wireguard-windows-f22177cb5b9bb80f6dfd77cd3afab7789d4bd024.zip
winipcfg: add note describing how to setup winipcfg testing environment
...to save us head-scratching time when trying to run the tests again few months later. Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--tunnel/winipcfg/winipcfg_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/tunnel/winipcfg/winipcfg_test.go b/tunnel/winipcfg/winipcfg_test.go
index 9da9f4c0..c69c1847 100644
--- a/tunnel/winipcfg/winipcfg_test.go
+++ b/tunnel/winipcfg/winipcfg_test.go
@@ -3,6 +3,22 @@
* Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
*/
+/*
+
+Some tests in this file require:
+
+- A dedicated network adapter
+ Any network adapter will do. It may be virtual (Wintun etc.). The adapter name
+ must contain string "winipcfg_test".
+ Tests will add, remove, flush DNS servers, change adapter IP address, manipulate
+ routes etc.
+ The adapter will not be returned to previous state, so use an expendable one.
+
+- Elevation
+ Run go test as Administrator
+
+*/
+
package winipcfg
import (