<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 20 Sep 2019, at 19:59, Scott Kruger <<a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class=""><br class="">
On 9/20/19 10:44 AM, Hapla Vaclav via petsc-dev wrote:<br class="">
<blockquote type="cite" class="">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).<br class="">
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.<br class="">
</blockquote>
<br class="">
I only modified the V=0 option to suppress the TAP 'ok' output.<br class="">
<br class="">
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.<br class="">
<br class="">
<blockquote type="cite" class="">Note that is sometimes tedious to deduce the whole command line from the test declarations, for example because of multiple args: lines.<br class="">
</blockquote>
<br class="">
Personally, I recommend just cd'ing into the test directory and running the scripts by hand.<br class="">
<br class="">
For example:<br class="">
cd $PETSC_ARCH/tests/ksp/ksp/examples/tests/runex22<br class="">
cat ksp_ksp_tests-ex22_1.sh<br class="">
mpiexec  -n 1 ../ex22   > ex22_1.tmp 2> runex22.err<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
OK, this takes a bit more time but does to job.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
or<br class="">
<br class="">
cd $PETSC_ARCH/tests/ksp/ksp/examples/tests<br class="">
./runex22.sh<br class="">
ok ksp_ksp_tests-ex22_1<br class="">
ok diff-ksp_ksp_tests-ex22_1<br class="">
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">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.</span></div>
<div><font color="#000000" face="Menlo-Regular" class=""><span style="caret-color: rgb(0, 0, 0);" class="">  make -f gmakefile.test test search='dm_impls_plex_tests-ex18_7_hdf5_repart_nsize-5interpolate-serial'</span></font></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">does not run anything and one needs to enter e.g.</span></div>
<div><font color="#000000" face="Menlo-Regular" class=""><span style="caret-color: rgb(0, 0, 0);" class="">  </span></font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">make -f gmakefile.test test search='</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">dm_impls_plex_tests-ex18_7_hdf5_repart%</span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">'</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">which can run tons of tests and one has to wait and then CTRL+C.</span></div>
<div><br class="">
</div>
<font color="#000000" face="Menlo-Regular" class="">BTW I think there should an underscore after nsize:</font></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">dm_impls_plex_tests-ex18_7_hdf5_repart_nsize-5_interpolate-serial</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class=""><br class="">
</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class=""><br class="">
</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">Thanks,</span></div>
<div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Menlo-Regular;" class="">Vaclav</span></div>
<div><font color="#000000" face="Menlo-Regular" class=""><span style="caret-color: rgb(0, 0, 0);" class=""><br class="">
</span></font>
<blockquote type="cite" class="">
<div class="">
<div class=""><br class="">
<br class="">
<br class="">
Scott<br class="">
<br class="">
<br class="">
<br class="">
-- <br class="">
Tech-X Corporation               <a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a><br class="">
5621 Arapahoe Ave, Suite A       Phone: (720) 974-1841<br class="">
Boulder, CO 80303                Fax:   (303) 448-7756<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>