/
main.go
44 lines (39 loc) · 872 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package main
import (
"github.com/9elements/converged-security-suite/v2/pkg/log"
"github.com/alecthomas/kong"
"github.com/linuxboot/fiano/pkg/intel/metadata/cbnt"
fianoLog "github.com/linuxboot/fiano/pkg/log"
)
const (
programName = "txt-suite"
programDesc = "Intel TXT Test Suite"
)
var (
testnos []int
testerg bool
logfile = "test_log.json"
gitcommit string
gittag string
)
type temptest struct {
Testnumber int
Testname string
Result string
Error string
Status string
}
func main() {
ctx := kong.Parse(&cli,
kong.Name(programName),
kong.Description(programDesc),
kong.UsageOnError(),
kong.ConfigureHelp(kong.HelpOptions{
Compact: true,
Summary: true,
}))
cbnt.StrictOrderCheck = cli.ManifestStrictOrderCheck
fianoLog.DefaultLogger = log.DummyLogger{}
err := ctx.Run(&context{})
ctx.FatalIfErrorf(err)
}