<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Peter,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The command that you're looking for to just run the flang unit tests is "ninja check-flang"; this should just run the flang tests and hopefully these will all pass!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When you run one of these targets it should tell you the lit command it's running; if you add -v to this command then it should give you detailed output for failures.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Let me know if any of this doesn't work!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
David</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> flang-dev <flang-dev-bounces@lists.llvm.org> on behalf of Peter Steinfeld via flang-dev <flang-dev@lists.llvm.org><br>
<b>Sent:</b> 16 April 2020 22:18<br>
<b>To:</b> flang-dev@lists.llvm.org <flang-dev@lists.llvm.org><br>
<b>Subject:</b> [flang-dev] Running the flang tests on an in-tree build</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">I did an in-tree build of mlir and flang.  Specifically, I first created a “build” directory and then went into that directory and ran this command:</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">cmake -G Ninja ../llvm -DCMAKE_BUILD_TYPE=Release \</p>
<p class="x_MsoNormal">    -DLLVM_ENABLE_PROJECTS="mlir;flang" -DCMAKE_CXX_STANDARD=17 \</p>
<p class="x_MsoNormal">    -DLLVM_INSTALL_UTILS=On \</p>
<p class="x_MsoNormal">    -DCMAKE_INSTALL_PREFIX=../install</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">This seemed to go well.  I then ran “ninja install” which also went well.  Then I ran “ninja check-all”.  This command produced some error messages, but it seemed to run all of the flang tests and put the results in the directory “build/tools/flang/test”. 
 Unfortunately, though, the output did not include any summary information for the results of the flang tests.  Also unfortunately, this command said that it ran 37,839 tests, and there are only about 350 flang tests.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I have two questions –</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">First, what command can I execute that will only run the flang tests?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Second, how do I get a summary of which tests pass and fail?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Pete</p>
<p class="x_MsoNormal"> </p>
</div>
<div>
<hr>
</div>
<div>This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by
 reply email and destroy all copies of the original message. </div>
<div>
<hr>
</div>
</div>
</body>
</html>