]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
[WIP] device: run testns.sh from a Go test harness dc/nstest
authorDavid Crawshaw <crawshaw@tailscale.com>
Mon, 4 May 2020 03:07:19 +0000 (23:07 -0400)
committerDavid Crawshaw <crawshaw@tailscale.com>
Mon, 4 May 2020 03:08:38 +0000 (23:08 -0400)
commitc9159a5b864bf4e4f743a55d2d444668603baeb8
tree55ad90dcb78694230d329b5ea7d195d4a056466f
parentda9d300cf8b50d1cf629b7fa4423d122a74a6871
[WIP] device: run testns.sh from a Go test harness

objectives:
- to make it easy to run these tests during go development
  (TODO: running sudo go test is weird, is there some
  alternative? does docker provide a namespace hole for
  normal users if it's installed?)
- to make it easy to run some part of the script, e.g.
  just run the sticky sockets test without waiting on
  the prior iperf tests

not clear yet if the shell-inside-go is worth it

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
device/ns_test.go [new file with mode: 0644]