[petsc-dev] test harness with tests that depend on multiple source files

Scott Kruger kruger at txcorp.com
Tue Nov 21 10:33:09 CST 2017



On 11/20/17 8:59 PM, Smith, Barry F. wrote:
> 
> 
>> On Nov 20, 2017, at 9:37 PM, Jed Brown <jed at jedbrown.org> wrote:
>>
>> Scott Kruger <kruger at txcorp.com> writes:
>>
>>> depends keyword:
>>>
>>> From:
>>>    dm/examples/tutorials/ex13f90.F90
>>>
>>> !/*TEST
>>> !
>>> !   build:
>>> !      requires: !complex
>>> !      depends:  ex13f90aux.F90
>>> !
>>> !TEST*/
>>
>> How would anyone know that "requires" refers to PETSc configuration
>> while "depends" refers to files?  Why not something like
>> "requires_file"?
> 
>    And hence requires_config ?


My own view is that `requires` was is meant
for a *user* interested in that particular test,

whereas

`depends` is something a *developer*, who
presumably understands the concepts of build
dependencies trees, would specify as he is
developing the test

so trying to correlate these two keywords is
not required.

But happy to change these if that is what the
consensus is.

Scott

P.S.  I'll note that the literal answer to Jed's
original question of RTFM does work and has been
there for over a year:

gabrielle 44: git blame developers.tex | grep depends:
29921a8f05c src/docs/tex/manual/developers.tex (Scott Kruger 
2016-09-28 09:56:26 -0500 1662) \item[{depends:



-- 
Tech-X Corporation               kruger at txcorp.com
5621 Arapahoe Ave, Suite A       Phone: (720) 974-1841
Boulder, CO 80303                Fax:   (303) 448-7756


More information about the petsc-dev mailing list