<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 18, 2017 at 2:05 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
This does not work<br>
<br>
knepley/fix-configure-pragmati<wbr>c *+$:/PETSc3/petsc/petsc-dev$ make -f<br>
gmakefile test search=plex%ex1_2<br>
make -f gmakefile test search=plex%ex1_2<br>
# No tests run<br>
</blockquote>
<br>
<br></span>
If you replace test with "echo_test" as a target it will echo all of the targets.  This is useful for debugging.<br>
<br>
make -f gmakefile echo_test search=plex%<br>
<br>
and then make sure you see it.<br>
<br>
Then do an echo_test to see the match.<br>
<br>
Here is an example with the current version:<br>
------------------------------<wbr>--------------------<br>
> make -f gmakefile echo_test search=sys%<br>
sys_tests-runex19 sys_tests-runex10 sys_tests-runex11 sys_tests-runex12 sys_tests-runex14 sys_tests-runex31 sys_tests-runex31_2 sys_tests-runex20_2 sys_tests-runex20_3 sys_tutorials-runex9_2 ...<br>
<br>
> make -f gmakefile echo_test search=sys%ex9_2<br>
sys_tutorials-runex9_2<br></blockquote><div><br></div><div>Okay, the problem seems to be that you can only use one % in the pattern</div><div><br></div><div><div>knepley/fix-configure-pragmatic *+$:/PETSc3/petsc/petsc-dev$ make -f gmakefile echo_test search=dm%</div><div>make -f gmakefile echo_test search=dm%</div><div>dm_impls_plex_tests-runex1_2 dm_impls_plex_tests-runex1_3 dm_impls_plex_tests-runex1_0 dm_impls_plex_tests-runex1_1 dm_impls_plex_tests-runex1_6 dm_impls_plex_tests-runex1_7 dm_impls_plex_tests-runex1_4 dm_impls_plex_tests-runex1_5 dm_impls_plex_tests-runex1_8 dm_impls_plex_tests-runex1_9 dm_impls_plex_tests-runex1_cgns_1 dm_impls_plex_tests-runex1_cgns_0 dm_impls_plex_tests-runex1_refine_overlap_1 dm_impls_plex_tests-runex1_refine_overlap_0 dm_impls_plex_tests-runex1_med_1 dm_impls_plex_tests-runex1_med_0 dm_impls_plex_tests-runex1_med_3 dm_impls_plex_tests-runex1_med_2 dm_impls_plex_tests-runex1_gmsh_3 dm_impls_plex_tests-runex1_gmsh_2 dm_impls_plex_tests-runex1_gmsh_1 dm_impls_plex_tests-runex1_gmsh_0 dm_impls_plex_tests-runex1_gmsh_6 dm_impls_plex_tests-runex1_gmsh_5 dm_impls_plex_tests-runex1_gmsh_4 dm_impls_plex_tests-runex1_fluent_2 dm_impls_plex_tests-runex1_fluent_3 dm_impls_plex_tests-runex1_fluent_0 dm_impls_plex_tests-runex1_fluent_1 dm_impls_plex_tests-runex1_part_simple_1 dm_impls_plex_tests-runex1_part_simple_0</div><div><br></div><div>knepley/fix-configure-pragmatic *+$:/PETSc3/petsc/petsc-dev$ make -f gmakefile echo_test search=dm%plex%</div><div>make -f gmakefile echo_test search=dm%plex%</div><div><br></div></div><div>I do not think this is going to be flexible enough.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
------------------------------<wbr>--------------------<span class="gmail-"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
    >   3) How do I give extra arguments with the make interface, rather than<br>
    > test_harness?<br>
<br>
    That is, run some modification of the test and still do the diff, but<br>
    don't change the reference output?  I have used PETSC_OPTIONS for that.<br>
<br>
      make .... PETSC_OPTIONS=-more_magic<br>
</blockquote>
<br></span>
I'm not sure I 100% understand what is being asked (perhaps it's my cold medicine), but I think TESTFLAGS does what you want; e.g.,<br>
<br>
------------------------------<wbr>--------------------<br>
> make -f gmakefile test search=sys%ex9_2 TESTFLAGS="-h"<br>
        TEST sys_tutorials-runex9_2<br>
Usage: arch-osx-xsdk-opt/tests/src/sy<wbr>s/examples/tutorials/runex9_2.<wbr>sh [options]<br>
<br>
OPTIONS<br>
  -a <args> ......... Override default arguments<br>
  -c <cleanup> ...... Cleanup (remove generated files)<br>
  -e <args> ......... Add extra arguments to default<br>
  -h ................ help: print this message<br>
  -n <integer> ...... Override the number of processors to use<br>
  -o <output file> .. Override default output file to diff with<br>
  -t <testname> ..... Override test name<br>
  -v ................ Verbose: Print commands<br>
# No tests run<br>
------------------------------<wbr>--------------------<span class="gmail-im gmail-HOEnZb"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
    > Once I have all the functionality of my Python stuff,  I will<br>
    throw it away.<br>
<br>
<br>
<br>
<br>
--<br>
What most experimenters take for granted before they begin their<br>
experiments is infinitely more interesting than any results to which<br>
their experiments lead.<br>
-- Norbert Wiener<br>
</blockquote>
<br></span><div class="gmail-HOEnZb"><div class="gmail-h5">
-- <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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>