Home | History | Annotate | Download | only in fipstools

Lines Matching refs:suite

22 	suiteDir   = flag.String("suite-dir", "", "Base directory containing the CAVP test suite")
58 // suite names the test suite to pass as the first command-line argument.
59 suite string
362 suite *testSuite
370 test := ti.suite.tests[ti.testIndex]
372 if err := doTest(ti.suite, test); err != nil {
378 if err := compareFAX(ti.suite, test); err != nil {
429 for _, suite := range testSuites {
430 for i := range suite.tests {
431 work <- testInstance{suite, i}
439 func doTest(suite *testSuite, test test) error {
448 args = append(args, suite.suite)
450 reqPath := filepath.Join(suite.getDirectory(), "req", test.inFile+".req")
463 respDir := filepath.Join(suite.getDirectory(), "resp")
470 return fmt.Errorf("cannot open output file for %q %q: %s", suite.getDirectory(), test.inFile, err)
481 return fmt.Errorf("cannot run command for %q %q (%s): %s", suite.getDirectory(), test.inFile, cmdLine, err)
503 func compareFAX(suite *testSuite, test test) error {
504 nextLineFunc := suite.nextLineFunc
514 respPath := filepath.Join(suite.getDirectory(), "resp", test.inFile+".rsp")
517 return fmt.Errorf("cannot read output of %q %q: %s", suite.getDirectory(), test.inFile, err)
521 faxPath := filepath.Join(suite.getDirectory(), "fax", test.inFile+".fax")
524 return fmt.Errorf("cannot open fax file for %q %q: %s", suite.getDirectory(), test.inFile, err)
569 return fmt.Errorf("resp file is longer than fax for %q %q", suite.getDirectory(), test.inFile)
583 return fmt.Errorf("resp and fax differ at line %d for %q %q: %q vs %q", lineNo, suite.getDirectory(), test.inFile, respLine, faxLine)
587 return fmt.Errorf("fax file is longer than resp for %q %q", suite.getDirectory(), test.inFile)