<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="generator" content="Windows Mail 17.5.9600.20911">
<style type="text/css"><!--html { font-family: "Color Emoji", "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style>
</head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:12pt;">
<div>How does tab completion work?  I've tried `make -f gmakefile sys<Tab>` in zsh and bash but got nothing.</div>
<div><br>
</div>
<div>Thanks to everyone who worked on this, I just have two other questions/requests:</div>
<div style="margin-right: 0px;" dir="ltr"><br>
</div>
<div style="margin-right: 0px;" dir="ltr">  - What’s the best way to update the test definitions after fiddling with /*TEST*/ blocks?  It would be nice if gmakegentests.py would run automatically when sources are newer than their tests.</div>
<div style="margin-right: 0px;" dir="ltr"><br>
</div>
<div style="margin-right: 0px;" dir="ltr">  - Is there a technical reason suffixes can only be specified at the top level?  It would help with concision if subtest suffixes could append to their parent suffixes.</div>
<div style="margin-right: 0px;" dir="ltr"><br>
</div>
<div style="margin-right: 0px;" dir="ltr">Cheers,</div>
<div style="margin-right: 0px;" dir="ltr">  Toby<br>
</div>
<div data-signatureblock="true"><br>
</div>
<div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;">
<div><font face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style="line-height: 15pt; letter-spacing: 0.02em; font-family: "Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;"><b>From:</b> <a href="mailto:jed@jedbrown.org" target="_parent">Jed
 Brown</a><br>
<b>Sent:</b> ýTuesdayý, ý17ý ýJanuaryý, ý2017 ý20ý:ý55<br>
<b>To:</b> <a href="mailto:knepley@gmail.com" target="_parent">Matthew Knepley</a>,
<a href="mailto:bsmith@mcs.anl.gov" target="_parent">Barry Smith</a><br>
<b>Cc:</b> <a href="mailto:petsc-dev@mcs.anl.gov" target="_parent">petsc-dev</a></font></div>
</div>
<div><br>
</div>
<div dir="">
<div id="readingPaneBodyContent">Matthew Knepley <knepley@gmail.com> writes:<br>
> Gripes:<br>
><br>
>   1) How do I run an individual test run?<br>
<br>
  make -f gmakefile sys_tutorials-runex5<br>
<br>
(tab completion works) or use a search that matches only that run.<br>
<br>
> I use<br>
><br>
>   make -f gmakefile test searchin=plex<br>
><br>
> to run plex tests, and I think<br>
><br>
>   make -f gmakefile test searchin=plex*ex1<br>
<br>
Due to make syntax, % is the internal string matcher.<br>
<br>
> will work. However, how do I select ex1_2?<br>
<br>
  make -f gmakefile test search=plex%ex1_2<br>
<br>
>   2) How do I replace the output which exists with the output of the<br>
> current test run?<br>
><br>
> This is amazingly useful after changes.<br>
<br>
I have this script ~/bin/diffupdate:<br>
#!/bin/sh<br>
<br>
args=<br>
if [ "$1" = "-u" ]; then<br>
    args="-u"<br>
    shift<br>
fi<br>
new="$2"<br>
ref="$1"<br>
<br>
diff $args "$ref" "$new"<br>
ret=$?<br>
echo "Updating $new --> $ref"<br>
mv "$new" "$ref"<br>
exit $ret<br>
<br>
<br>
Then I run<br>
<br>
  make -f gmakefile test search=plex% DIFF=diffupdate<br>
<br>
It prints the diff and replaces the reference file (first argument) with<br>
the second.<br>
<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>
<br>
> Once I have all the functionality of my Python stuff,  I will throw it away.<br>
<br>
</div>
</div>
</div>
</body>
</html>