[petsc-dev] Introducing new "test harness" to PETSc
Matthew Knepley
knepley at gmail.com
Tue Jan 17 16:53:11 CST 2017
On Tue, Jan 17, 2017 at 4:31 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> On Tue, 17 Jan 2017, Matthew Knepley wrote:
>
> > Also, how do I put comments inside these blocks to tell me what the test
> is
> > about?
>
> Looks like everything other than the define format is ignored..
It does not look that way to me:
/usr/bin/python ./config/gmakegentest.py --petsc-arch=arch-c-exodus-master
Traceback (most recent call last):
File "./config/gmakegentest.py", line 733, in <module>
main(petsc_arch=opts.petsc_arch, output=opts.output,
verbose=opts.verbose, single_ex=opts.single_executable)
File "./config/gmakegentest.py", line 718, in main
dataDict=pEx.walktree(os.path.join(pEx.petsc_dir,'src'),action="genPetscTests")
File "./config/gmakegentest.py", line 613, in walktree
eval("self."+action+"(root,dirs,files,dataDict)")
File "<string>", line 1, in <module>
File "./config/gmakegentest.py", line 593, in genPetscTests
dataDict[root].update(testparse.parseTestFile(fullex))
File "/PETSc3/petsc/petsc-dev/config/testparse.py", line 175, in
parseTestFile
testDict[basename]=parseTests(testString,srcfile)
File "/PETSc3/petsc/petsc-dev/config/testparse.py", line 140, in
parseTests
testname,subdict=parseTest(test,srcfile)
File "/PETSc3/petsc/petsc-dev/config/testparse.py", line 102, in parseTest
val=line.split(":")[1].strip()
IndexError: list index out of range
Matt
>
> Satish
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170117/1b54244a/attachment.html>
More information about the petsc-dev
mailing list