diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-12 14:05:02 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-12 14:53:22 +0200 |
| commit | 06ece2ca663d0565d9e4cd932c4c2d86767a5396 (patch) | |
| tree | 0ba1566273ece79a1570afc79a030cd78df8e3ef /pkg/host/host_test.go | |
| parent | 62d1af2467768d46623d446efaaf2f2cb6e8350e (diff) | |
pkg/host: rework host feature detection/setup
Currently host feature detection/setup code is spread
across platform-independent fuzzer code, pkg/host, pkg/ipc
and executor.
Move this all into pkg/host and show readable info
about features on manager start.
Fixes #46
Diffstat (limited to 'pkg/host/host_test.go')
| -rw-r--r-- | pkg/host/host_test.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkg/host/host_test.go b/pkg/host/host_test.go index aa7020942..8a16d5e5d 100644 --- a/pkg/host/host_test.go +++ b/pkg/host/host_test.go @@ -11,7 +11,7 @@ import ( _ "github.com/google/syzkaller/sys" ) -func TestLog(t *testing.T) { +func TestDetectSupportedSyscalls(t *testing.T) { t.Parallel() target, err := prog.GetTarget(runtime.GOOS, runtime.GOARCH) if err != nil { @@ -37,3 +37,14 @@ func TestLog(t *testing.T) { t.Logf("%v: %v", c.Name, reason) } } + +func TestCheck(t *testing.T) { + t.Parallel() + features, err := Check() + if err != nil { + t.Fatal(err) + } + for _, feat := range features { + t.Logf("%-24v: %v", feat.Name, feat.Reason) + } +} |
