<div dir="ltr">The attached patch didn't fix it, but when I also changed another == to = a few lines further down it seemed to work.<br><br>Jeremy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 24, 2014 at 10:07 PM, Justin Bogner <span dir="ltr"><<a href="mailto:mail@justinbogner.com" target="_blank">mail@justinbogner.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Jeremy Salwen <<a href="mailto:jeremysalwen@gmail.com">jeremysalwen@gmail.com</a>> writes:<br>


> I followed the LNT quickstart guide<br>
> (<a href="http://llvm.org/docs/lnt/quickstart.html" target="_blank">http://llvm.org/docs/lnt/quickstart.html</a>) on my debian machine, and<br>
> it seems to have a problem running.  When I consult test.log, every<br>
> single test has a section like this<br>
><br>
>     # Pretend that the reference output was produced instantaneously.<br>
>     cp /home/jeremy/hardware/llvm/test-suite/instant.txt Output/<br>
>     sse.expandfft.out-nat.time<br>
>     /home/jeremy/hardware/llvm/test-suite/DiffOutput.sh "/home/jeremy/hardware<br>
>     /llvm/mysandbox/test-2014-06-24_20-20-59/tools/fpcmp  -r 0.016" simple<br>
>     sse.expandfft<br>
>     rm -f Output/sse.expandfft.exe-simple<br>
>     cp Output/sse.expandfft.diff-simple Output/sse.expandfft.exe-simple<br>
>     /bin/sh: 7: test: 0: unexpected operator<br>
>     if test -f Output/sse.expandfft.extra-results.txt; then \<br>
>           /home/jeremy/hardware/llvm/test-suite/ParseMultipleResults /home/<br>
>     jeremy/hardware/llvm/mysandbox/test-2014-06-24_20-20-59/SingleSource/<br>
>     UnitTests/Vector/SSE/sse.expandfft Output/sse.expandfft.extra-results.txt<br>
>     >> Output/sse.expandfft.simple.exec.report.txt; \<br>
>         fi<br>
>     cat Output/sse.expandfft.simple.compile.report.txt Output/<br>
>     sse.expandfft.simple.exec.report.txt >> Output/<br>
>     sse.expandfft.simple.report.txt<br>
><br>
> Notice the line "/bin/sh: 7: test: 0: unexpected operator".<br>
><br>
> Although I don't understand how the LNT infrastructure works exactly, I'm<br>
> pretty sure that this is an error due to the difference between bash and dash,<br>
> the default /bin/sh on debian.  When I tried running one of the make commands<br>
> that LNT runs with the additional option SHELL=/bin/bash I got similar output,<br>
> but without the error.  I'm not sure what bash specific features are being<br>
> used.<br>
<br>
</div></div>Looks like TEST.simple.Makefile is using the == operator, which isn't<br>
POSIX. Does the attached patch to the test-suite help?<br>
<br>
</blockquote></div><br></div>