Debian Codegraph @

internal/test/test_windows.go

raw
1 package test
2
3 import (
4 "flag"
5 "io"
6
7 "github.com/google/go-tpm/legacy/tpm2"
8 )
9
10 var useTBS = flag.Bool("use-tbs", false, "Run the tests against the Windows TBS. Value of false (default) will run tests against the simulator.")
11
12 func useRealTPM() bool {
13 return *useTBS
14 }
15
16 func getRealTPM() (io.ReadWriteCloser, error) {
17 return tpm2.OpenTPM()
18 }