<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 29, 2022 at 10:56 AM <a href="mailto:stes@PANDORA.BE">stes@PANDORA.BE</a> <<a href="mailto:stes@telenet.be">stes@telenet.be</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"><br>
I'm trying to add some modifications to my oi-userland component Makefile (for Squeak/Smalltalk) to run the SUnit tests.<br>
<br>
What I did was add some interface so that :<br>
<br>
gmake build<br>
gmake install<br>
gmake test<br>
<br>
in the component directory of OpenSmalltalk stack-spur runs the SUnit tests and saves the output in results-64.vm<br>
which can be compared to results-64.master<br>
<br>
However it is to me unclear when reading the oi-userland/make-rules/<a href="http://common.mk" rel="noreferrer" target="_blank">common.mk</a> whether there exits a target<br>
<br>
gmake test-and-diff<br>
<br>
or whether gmake test is supposed to run the COMPONENT_TEST_DIFF_CMD itself.<br>
<br>
Also the <a href="http://configure.mk" rel="noreferrer" target="_blank">configure.mk</a> rules seem to automatically trigger a "gmake install" when running "gmake test" which would be useful.<br>
<br>
Finally if/when adding tests for the components, are those tests automatically ran on the build server itself please ?<br></blockquote><div><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I think the target that does the diff is test-compare, but the test target will call it and do the comparison if a result file is present.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div><span style="font-family:arial,helvetica,sans-serif">Tests are not automatically run on the build server.</span></div><div> </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">
<br>
Thanks<br>
David Stes<br>
<br>
_______________________________________________<br>
oi-dev mailing list<br>
<a href="mailto:oi-dev@openindiana.org" target="_blank">oi-dev@openindiana.org</a><br>
<a href="https://openindiana.org/mailman/listinfo/oi-dev" rel="noreferrer" target="_blank">https://openindiana.org/mailman/listinfo/oi-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font style="font-family:"courier new",monospace" size="1">---<br>Praise the Caffeine embeddings<br></font></div></div></div></div></div>