<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">J. Gareth Moreton <<a href="mailto:gareth@moreton-family.com">gareth@moreton-family.com</a>> schrieb am Mi., 12. Feb. 2020, 23:48:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everyone,<br>
<br>
This might be a bit of a silly question, but is there a way to run <br>
individual tests from the test suite using the "make" command? I ask <br>
because Florian has pointed out some failures on one of my patches and I <br>
rather run those tests individually than wait 4 hours running the lot <br>
and comparing the log to the trunk.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">As the tests are just simple programs (or units or libraries) I usually just compile and run those tests manually (check for any compile time options that are set inside the test with %OPT at the top). Some tests might need that you add additional unit paths. </div><div dir="auto"><br></div><div dir="auto">Some examples (working directory is the source top level directory, "testoutput" is just my "catch all" output directory):</div><div dir="auto"><br></div><div dir="auto">.\compiler\x86_64\pp.exe -n -Furtl\units\x86_64-win64 -viwn - FEtestoutput .\tests\test\tthlp1.pp</div><div dir="auto"><br></div><div dir="auto">Or if some further units are required:</div><div dir="auto"><br></div><div dir="auto">.\compiler\x86_64\pp.exe -n -Furtl\units\x86_64-win64 -viwn - FEtestoutput -Fupackages\rtl-objpas\units\x86_64-win64 .\tests\test\tthlp1.pp</div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif">Then run the test as .\testoutput\tthlp1.exe and maybe check the exit code. </span><br></div><div dir="auto"><br></div><div dir="auto">Of course you can use the compile commands directly as start parameters inside Lazarus as well (without the compiler binary). </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>