You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine
Avery Pennarun 08acb502e5 Add tstest.PanicOnLog(), and fix various problems detected by this.
If a test calls log.Printf, 'go test' horrifyingly rearranges the
output to no longer be in chronological order, which makes debugging
virtually impossible. Let's stop that from happening by making
log.Printf panic if called from any module, no matter how deep, during
tests.

This required us to change the default error handler in at least one
http.Server, as well as plumbing a bunch of logf functions around,
especially in magicsock and wgengine, but also in logtail and backoff.

To add insult to injury, 'go test' also rearranges the output when a
parent test has multiple sub-tests (all the sub-test's t.Logf is always
printed after all the parent tests t.Logf), so we need to screw around
with a special Logf that can point at the "current" t (current_t.Logf)
in some places. Probably our entire way of using subtests is wrong,
since 'go test' would probably like to run them all in parallel if you
called t.Parallel(), but it definitely can't because the're all
manipulating the shared state created by the parent test. They should
probably all be separate toplevel tests instead, with common
setup/teardown logic. But that's a job for another time.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
6 years ago
..
filter Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago
magicsock Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago
monitor wgengine/monitor: disable monitor on Android 6 years ago
packet wgengine/filter: support subnet mask rules, not just /32 IPs. 6 years ago
router wgengine/router: rename config.Settings to config.Config, make pointer. 6 years ago
tstun wgengine: wrap tun.Device to support filtering and packet injection (#358) 6 years ago
winnet Move Linux client & common packages into a public repo. 6 years ago
rusage.go Move "logger" package to under types, now that we have it. 6 years ago
rusage_nowindows.go wgengine: flesh out some docs 6 years ago
rusage_windows.go Move Linux client & common packages into a public repo. 6 years ago
userspace.go Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago
watchdog.go wgengine/router: rename config.Settings to config.Config, make pointer. 6 years ago
watchdog_test.go wgengine: wrap tun.Device to support filtering and packet injection (#358) 6 years ago
wgengine.go wgengine/router: rename config.Settings to config.Config, make pointer. 6 years ago