<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 29, 2017 at 11:23 AM, Scott Kruger <span dir="ltr"><<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
The generated scripts automatically run in a subdirectory to avoid name conflicts.  For example, runex1.sh creates a runex1 directory relative<br>
to its location and then runs the actual test in there.  These temporary directories are not removed automatically by the test harness as it hasn't been a problem yet.<br></blockquote><div><br></div><div>Okay, then it would be nice to give a list of files to be removed after the test.</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Scott<br>
<br>
<br>
On 11/29/17 9:43 AM, Matthew Knepley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Nov 29, 2017 at 10:38 AM, Scott Kruger <<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a> <mailto:<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a>>> wrote:<br>
<br>
    rm $PETSC_ARCH/tests/<path_to_fil<wbr>e>/<file><br>
<br>
<br>
    I assume you really mean something else, specifically related to the<br>
    generated test script, but there isn't enough information to answer<br>
    that.<br>
<br>
    Or more specifically, the test language was not written to generate<br>
    scripts that have an `rm` command in them, so perhaps explaining why<br>
    an extension would be a good idea.]<br>
<br>
<br>
I think what Stefano means is the following;<br>
<br>
   I write a test for the HDF5 Viewer. It creates a file called "vector.dat". I want it removed at the end of the test.<br>
<br>
I think the answer is, the test directory is blown away, so as long as the file is in that temp dir, you are fine.<br>
<br>
   Thanks,<br>
<br>
      Matt<br>
<br>
    Scott<br>
<br>
<br>
    On 11/29/17 6:02 AM, Stefano Zampini wrote:<br>
<br>
        How can I remove a file created by the executable I'm testing<br>
        <a href="https://maps.google.com/?q=with+the+new+test+har&entry=gmail&source=g">with the new test har</a>ness?<br>
<br>
        --         Stefano<br>
<br>
<br>
    --     Tech-X Corporation <a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a> <mailto:<a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a>><br>
    5621 Arapahoe Ave, Suite A       Phone: <a href="tel:%28720%29%20974-1841" value="+17209741841" target="_blank">(720) 974-1841</a><br>
    <tel:%28720%29%20974-1841><br>
    Boulder, CO 80303                Fax: <a href="tel:%28303%29%20448-7756" value="+13034487756" target="_blank">(303) 448-7756</a><br>
    <tel:%28303%29%20448-7756><br>
<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>
<br>
<a href="https://www.cse.buffalo.edu/~knepley/" rel="noreferrer" target="_blank">https://www.cse.buffalo.edu/~k<wbr>nepley/</a> <<a href="http://www.caam.rice.edu/~mk51/" rel="noreferrer" target="_blank">http://www.caam.rice.edu/~mk5<wbr>1/</a>><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Tech-X Corporation               <a href="mailto:kruger@txcorp.com" target="_blank">kruger@txcorp.com</a><br>
5621 Arapahoe Ave, Suite A       Phone: <a href="tel:%28720%29%20974-1841" value="+17209741841" target="_blank">(720) 974-1841</a><br>
Boulder, CO 80303                Fax:   <a href="tel:%28303%29%20448-7756" value="+13034487756" target="_blank">(303) 448-7756</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>