Merge NIAP and FIPS test suites.

When we do future FIPS or NIAP runs, we'll do everything. So no need for
a -niap option any longer.

Change-Id: I2c8b71951acca0734c1a15cfb6f61ec5ecee5884
Reviewed-on: https://boringssl-review.googlesource.com/26124
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
Adam Langley 2018-02-20 11:31:17 -08:00 committed by CQ bot account: commit-bot@chromium.org
parent 085955c567
commit ed626ec99b

View File

@ -21,7 +21,6 @@ var (
oraclePath = flag.String("oracle-bin", "", "Path to the oracle binary")
suiteDir = flag.String("suite-dir", "", "Base directory containing the CAVP test suite")
noFAX = flag.Bool("no-fax", false, "Skip comparing against FAX files")
niap = flag.Bool("niap", false, "Perform NIAP tests rather than FIPS tests")
android = flag.Bool("android", false, "Run tests via ADB")
)
@ -334,7 +333,7 @@ var tlsKDFTests = testSuite{
},
}
var fipsTestSuites = []*testSuite{
var testSuites = []*testSuite{
&aesGCMTests,
&aesTests,
&ctrDRBGTests,
@ -350,9 +349,6 @@ var fipsTestSuites = []*testSuite{
&shaTests,
&shaMonteTests,
&tdesTests,
}
var niapTestSuites = []*testSuite{
&kasTests,
&tlsKDFTests,
}
@ -421,11 +417,6 @@ func main() {
go worker(&wg, work)
}
testSuites := fipsTestSuites
if *niap {
testSuites = niapTestSuites
}
for _, suite := range testSuites {
for i := range suite.tests {
work <- testInstance{suite, i}