Lines Matching refs:outputTests

15                  outputTests=None, outputDriver=None,  argument
19 self.outputTests = outputTests
21 self.writeBody = outputHeader or outputTests or outputDriver
29 for f in (self.output,self.outputHeader,self.outputTests,self.outputDriver):
35 if self.outputTests:
36 print >>self.outputTests, '#include <stdio.h>'
37 print >>self.outputTests, '#include <string.h>'
38 print >>self.outputTests, '#include <assert.h>\n'
41 for f in (self.output,self.outputTests,self.outputDriver):
77 if self.outputTests:
78 print >>self.outputTests, decl
113 if self.writeBody or self.outputTests:
119 elif self.outputTests:
120 print >>self.outputTests,'%s %s(%s);'%(retvalTypeName, fnName, args)
142 if self.outputTests:
151 print >>self.outputTests, 'void test_%s(void) {'%(fnName,)
154 print >>self.outputTests, ' printf("%s: testing return.\\n");'%(fnName,)
155 print >>self.outputTests, ' for (int i=0; i<%d; ++i) {'%(retvalTests[1],)
157 print >>self.outputTests, ' %s RV;'%(retvalTypeName,)
158 print >>self.outputTests, ' %s = %s[i];'%(retvalName, retvalTests[0])
159 print >>self.outputTests, ' RV = %s(%s);'%(fnName, args)
160 … self.printValueOfType(' %s_RV'%fnName, 'RV', FT.returnType, output=self.outputTests, indent=4)
161 …f.checkTypeValues('RV', '%s[i]' % retvalTests[0], FT.returnType, output=self.outputTests, indent=4)
162 print >>self.outputTests, ' }'
165 print >>self.outputTests, ' printf("%s: testing arguments.\\n");'%(fnName,)
170 print >>self.outputTests, ' %s(%s);'%(fnName, ', '.join(args),)
171 print >>self.outputTests, '}'
181 elif self.outputTests:
182 print >>self.outputTests, 'extern %s %s;'%(typeName,name)
191 print >>self.outputTests, 'static %s %s[] = {'%(typeName,name)
194 print >>self.outputTests, '\t%s,'%(item,)
196 print >>self.outputTests,'};'
616 outputTests = None
617 if opts.outputTests:
618 outputTests = open(opts.outputTests,'w')
619 atexit.register(lambda: outputTests.close())
637 outputTests=outputTests,