<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<font size="+1">`config/gmakegentest.py` if your
PETSC_DIR/PETSC_ARCH environment variables are set, otherwise <br>
use the --petsc-dir and --petsc-arch arguments.<br>
<br>
This is likely TMI, but this script generates the
$PETSC_ARCH/tests/testfiles files that is used by<br>
gmakefile to understand the dependencies. When you have a new
file, you need to let the make<br>
system know about that new dependency.<br>
<br>
Scott<br>
<br>
</font><br>
<div class="moz-cite-prefix">On 1/29/21 10:46 AM, Fande Kong wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAN5Wd-+TZPhUWJz-vCMwheUAroo+nfqt1Sn2-EAzRBX+94PKqw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div dir="ltr">Thanks so much!
<div><br>
</div>
<div>It worked well with existing examples. If I add a new
example, this does not work anymore. What extra step I need to
take?</div>
<div><br>
</div>
<div>Fande</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jan 27, 2021 at 4:50
PM Scott Kruger <<a href="mailto:kruger@txcorp.com"
moz-do-not-send="true">kruger@txcorp.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"> <br>
<br>
<font size="+1">You can change the 'test' target to
'print-test' to see the actual targets you'll be testing.<br>
<br>
You can also just change your search string to
src/snes/tutorials/ex1.c to grab all tests associated with
ex1.c.<br>
<br>
Scott<br>
<br>
</font>
<div>On 1/27/21 4:45 PM, Zhang, Hong via petsc-dev wrote:<br>
</div>
<blockquote type="cite">
<pre>make PETSC_DIR=/Users/kongf/projects/moose4/petsc PETSC_ARCH=arch-darwin-c-debug -f gmakefile test search='snes_tutorials-ex1_*'
or
make PETSC_DIR=/Users/kongf/projects/moose4/petsc PETSC_ARCH=arch-darwin-c-debug -f gmakefile test globsearch='snes_tutorials-ex1_*’
Hong (Mr.)
</pre>
<blockquote type="cite">
<pre>On Jan 27, 2021, at 5:21 PM, Fande Kong <a href="mailto:fdkong.jd@gmail.com" target="_blank" moz-do-not-send="true"><fdkong.jd@gmail.com></a> wrote:
Hi All,
I want to run one particular SNES test using the following command-line:
"make PETSC_DIR=/Users/kongf/projects/moose4/petsc PETSC_ARCH=arch-darwin-c-debug -f gmakefile test search='snes_tutorials-ex1'"
I got the following output:
"Using MAKEFLAGS: search=snes_tutorials-ex1% PETSC_ARCH=arch-darwin-c-debug PETSC_DIR=/Users/kongf/projects/moose4/petsc"
But I did not see any useful test information.
Could you kindly let me know what I did wrong?
Thanks,
Fande
</pre>
</blockquote>
</blockquote>
<br>
<pre cols="72">--
Tech-X Corporation <a href="mailto:kruger@txcorp.com" target="_blank" moz-do-not-send="true">kruger@txcorp.com</a>
5621 Arapahoe Ave, Suite A Phone: (720) 466-3196
Boulder, CO 80303 Fax: (303) 448-7756</pre>
</div>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Tech-X Corporation <a class="moz-txt-link-abbreviated" href="mailto:kruger@txcorp.com">kruger@txcorp.com</a>
5621 Arapahoe Ave, Suite A Phone: (720) 466-3196
Boulder, CO 80303 Fax: (303) 448-7756</pre>
</body>
</html>