<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">An inconsistency I have just noted. The command suggested to re-run failed tests does not work (it provides ‘petsc’ instead of the source tree location ’sees_tutorials’ as per the example below)<div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""># To rerun failed tests: </span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""># make -f gmakefile.test test search='petsc-runex62_fetidp_3d_tet'</span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[szampini@localhost petsc]$ make -f gmakefile.test test search='petsc-runex62_fetidp_3d_tet'</span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""># No tests run</span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div style="margin: 0px; font-size: 14px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">[szampini@localhost petsc]$ make -f gmakefile.test test search='snes_tutorials-runex62_fetidp_3d_tet'</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> TEST snes_tutorials-runex62_fetidp_3d_tet</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></span></div><div><blockquote type="cite" class=""><div class="">On Dec 3, 2017, at 12:44 PM, Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" class="">stefano.zampini@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">The issue may arise with output files from a previous test run.<br class="">Would it be possible to run ‘rm -rf *’ in the example temporary directory before running the test?<br class=""><br class="">Thanks,<br class="">Stefano<br class=""><br class=""><blockquote type="cite" class="">On Nov 29, 2017, at 8:36 PM, Scott Kruger <<a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a>> wrote:<br class=""><br class=""><br class=""><br class="">On 11/29/17 10:25 AM, Matthew Knepley wrote:<br class=""><blockquote type="cite" class="">On Wed, Nov 29, 2017 at 11:23 AM, Scott Kruger <<a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>>> wrote:<br class=""> The generated scripts automatically run in a subdirectory to avoid<br class=""> name conflicts. For example, runex1.sh creates a runex1 directory<br class=""> relative<br class=""> to its location and then runs the actual test in there. These<br class=""> temporary directories are not removed automatically by the test<br class=""> harness as it hasn't been a problem yet.<br class="">Okay, then it would be nice to give a list of files to be removed after the test.<br class=""></blockquote><br class="">Why? It's all in $PETSC_ARCH/tests which is meant to be ephemeral in the same way that $PETSC_ARCH/objs is.<br class=""><br class="">If it turns out that disk space is an issue (like it is for the executables themselves), then we can have the scripts remove that temporary directory after the test is run easily enough, but we still don't need to have all of the coding related to figuring out which files were generated (and tip of the hat to Jed who had the idea of running in the subdirectories to avoid name conflicts to begin with).<br class=""><br class="">Scott<br class=""><br class=""><br class=""><blockquote type="cite" class=""> Thanks,<br class=""> Matt<br class=""> Scott<br class=""> On 11/29/17 9:43 AM, Matthew Knepley wrote:<br class=""> On Wed, Nov 29, 2017 at 10:38 AM, Scott Kruger<br class=""> <<a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>><br class=""> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>>>> wrote:<br class=""> rm $PETSC_ARCH/tests/<path_to_file>/<file><br class=""> I assume you really mean something else, specifically<br class=""> related to the<br class=""> generated test script, but there isn't enough information<br class=""> to answer<br class=""> that.<br class=""> Or more specifically, the test language was not written to<br class=""> generate<br class=""> scripts that have an `rm` command in them, so perhaps<br class=""> explaining why<br class=""> an extension would be a good idea.]<br class=""> I think what Stefano means is the following;<br class=""> I write a test for the HDF5 Viewer. It creates a file called<br class=""> "vector.dat". I want it removed at the end of the test.<br class=""> I think the answer is, the test directory is blown away, so as<br class=""> long as the file is in that temp dir, you are fine.<br class=""> Thanks,<br class=""> Matt<br class=""> Scott<br class=""> On 11/29/17 6:02 AM, Stefano Zampini wrote:<br class=""> How can I remove a file created by the executable I'm<br class=""> testing<br class=""> with the new test har<br class=""> <<a href="https://maps.google.com/?q=with+the+new+test+har&entry=gmail&source=g" class="">https://maps.google.com/?q=with+the+new+test+har&entry=gmail&source=g</a>>ness?<br class=""> -- Stefano<br class=""> -- Tech-X Corporation <a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a><br class=""> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a><br class=""> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>>><br class=""> 5621 Arapahoe Ave, Suite A Phone: (720) 974-1841<br class=""> <<a href="tel:%28720%29%20974-1841" class="">tel:%28720%29%20974-1841</a>><br class=""> <<a href="tel:%28720%29%20974-1841" class="">tel:%28720%29%20974-1841</a>><br class=""> Boulder, CO 80303 Fax: (303) 448-7756<br class=""> <<a href="tel:%28303%29%20448-7756" class="">tel:%28303%29%20448-7756</a>><br class=""> <<a href="tel:%28303%29%20448-7756" class="">tel:%28303%29%20448-7756</a>><br class=""> -- What most experimenters take for granted before they begin their<br class=""> experiments is infinitely more interesting than any results to<br class=""> which their experiments lead.<br class=""> -- Norbert Wiener<br class=""> <a href="https://www.cse.buffalo.edu/~knepley/" class="">https://www.cse.buffalo.edu/~knepley/</a><br class=""> <<a href="https://www.cse.buffalo.edu/~knepley/" class="">https://www.cse.buffalo.edu/~knepley/</a>><br class=""> <<a href="http://www.caam.rice.edu/~mk51/" class="">http://www.caam.rice.edu/~mk51/</a> <<a href="http://www.caam.rice.edu/~mk51/" class="">http://www.caam.rice.edu/~mk51/</a>>><br class=""> -- Tech-X Corporation <a href="mailto:kruger@txcorp.com" class="">kruger@txcorp.com</a> <<a href="mailto:kruger@txcorp.com" class="">mailto:kruger@txcorp.com</a>><br class=""> 5621 Arapahoe Ave, Suite A Phone: (720) 974-1841<br class=""> <<a href="tel:%28720%29%20974-1841" class="">tel:%28720%29%20974-1841</a>><br class=""> Boulder, CO 80303 Fax: (303) 448-7756<br class=""> <<a href="tel:%28303%29%20448-7756" class="">tel:%28303%29%20448-7756</a>><br class="">-- <br class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener<br class=""><a href="https://www.cse.buffalo.edu/~knepley/" class="">https://www.cse.buffalo.edu/~knepley/</a> <<a href="http://www.caam.rice.edu/~mk51/" class="">http://www.caam.rice.edu/~mk51/</a>><br class=""></blockquote><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=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>