[petsc-dev] test harness: output of actually executed command for V=1 gone?

Hapla Vaclav vaclav.hapla at erdw.ethz.ch
Fri Sep 20 15:39:16 CDT 2019


On 20 Sep 2019, at 19:59, Scott Kruger <kruger at txcorp.com<mailto:kruger at txcorp.com>> wrote:


On 9/20/19 10:44 AM, Hapla Vaclav via petsc-dev wrote:
I was used to copy the command actually run by test harness, change to example's directory and paste the command (just changing one .. to ., e.g. ../ex1 to ./ex1).
Is this output gone? Bad news. I think there should definitely be an option to quickly reproduce the test run to work on failing tests.

I only modified the V=0 option to suppress the TAP 'ok' output.

I think you are referring to the 'not ok' now giving the error code instead of the cmd which is now true regardless of V.  This was suggested by others.  I defer to the larger group on what's desired here.

Note that is sometimes tedious to deduce the whole command line from the test declarations, for example because of multiple args: lines.

Personally, I recommend just cd'ing into the test directory and running the scripts by hand.

For example:
cd $PETSC_ARCH/tests/ksp/ksp/examples/tests/runex22
cat ksp_ksp_tests-ex22_1.sh
mpiexec  -n 1 ../ex22   > ex22_1.tmp 2> runex22.err

OK, this takes a bit more time but does to job.


or

cd $PETSC_ARCH/tests/ksp/ksp/examples/tests
./runex22.sh
ok ksp_ksp_tests-ex22_1
ok diff-ksp_ksp_tests-ex22_1

A problem with this is that if the test includes many {{ }}, it runs all combinations and one can't focus on just one failing. E.g.
  make -f gmakefile.test test search='dm_impls_plex_tests-ex18_7_hdf5_repart_nsize-5interpolate-serial'
does not run anything and one needs to enter e.g.
  make -f gmakefile.test test search='dm_impls_plex_tests-ex18_7_hdf5_repart%'
which can run tons of tests and one has to wait and then CTRL+C.

BTW I think there should an underscore after nsize:
dm_impls_plex_tests-ex18_7_hdf5_repart_nsize-5_interpolate-serial


Thanks,
Vaclav




Scott



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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20190920/a06def3b/attachment.html>


More information about the petsc-dev mailing list