Add a -no-fax option to run_cavp.
At some point we'll need to run this against an actual run, where FAX files are unavailable. Change-Id: I244bdb6608faf78f321d7016416bbad0486fd0b6 Reviewed-on: https://boringssl-review.googlesource.com/16424 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
467d3220f8
commit
b3aaffae15
@ -18,6 +18,7 @@ import (
|
||||
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")
|
||||
)
|
||||
|
||||
// test describes a single request file.
|
||||
@ -307,7 +308,7 @@ func worker(wg *sync.WaitGroup, work <-chan testInstance) {
|
||||
os.Exit(2)
|
||||
}
|
||||
|
||||
if !test.noFAX {
|
||||
if !*noFAX && !test.noFAX {
|
||||
if err := compareFAX(ti.suite, test); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%s\n", err)
|
||||
os.Exit(3)
|
||||
|
Loading…
Reference in New Issue
Block a user