<div dir="ltr">So just to be clear, assuming I made this change, I'm not saying that dotest would require you to pass in --arch, I'm just saying it would pick a more straightforward default. In particular, the default of your host system. You can see the original logic for choosing the default in the OP, but it was something along the lines of:<div>
<br></div><div>x64 Mac -> x86 + x64 tests</div><div>x86 Mac -> x86 tests</div><div>x64 Linux Clang -> x86 + x64 tests</div><div>x64 Linux Non-Clang (GCC?) x64 tests</div><div>x86 Linux Clang -> x86 tests</div>
<div>x86 Linux Non-Clang -> x86 tests</div><div><br></div><div>So you'd have the following net changes:</div><div><br></div><div>x64 Mac -> Don't run x86 tests anymore</div><div>x64 Linux Clang -> Don't run x86 tests anymore</div>
<div><br></div><div>Nothing else would change. And again, these would just be for the cases where you ran dotest.py without a --arch arg. You could still override it.</div><div><br></div><div>If it's truly useful then I don't mind leaving it, but I'd at least like to understand why it's so asymmetric. Like what's the issue with Linux GCC x64? Why can't it run x86 tests?<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 30, 2014 at 10:09 PM, Matthew Gardiner <span dir="ltr"><<a href="mailto:mg11@csr.com" target="_blank">mg11@csr.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just recently I figured out how to successfully run dotest.py on a 64-bit linux. I ran it from the command line as follows:<br>
<br>
$ my-lldb-source-directory/test ><br>
LD_LIBRARY_PATH=/my-build-<u></u>directory/lib/<br>
PYTHONPATH=/my-build-<u></u>directory/lib/python2.7/site-<u></u>packages/<br>
python dotest.py --executable=/my-build-<u></u>directorybin/lldb -v --compiler=gcc -q .<br>
<br>
The above incarnation took some time to figure out!<br>
<br>
I guess what I'm saying is if dotest.py is changed in such a way that it needs to be run using another tool, and/or if the -arch setting must be passed in, then this should be documented *within* dotest.py itself.<br>
<br>
<br>
Zachary Turner wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Well I guess it would be helpful to know how you run the tests. Do you run dotest.py from the command line? Or do you have a tool that drives the script? Because if it's the latter, then the tool can just pass in whatever architectures it wants. I have a patch to the CMake build right now that makes the CMake build always pass in the target architectures. So that will remove the need for this logic for anyone running tests via CMake. But I'm not sure what you do on Mac.<br>
<br>
I guess what I'm saying is that complicated logic is fine if it's useful. I just don't know if it's useful (maybe it is, but I don't know what the workflow is like on Mac). If you guys are already running all the tests via a tool that passes in --arch on the command line, or if you're willing to change whatever tool you do use (the Xcode project?) to pass in --arch, then the logic here probably isn't that useful.<br>
<br>
<br></div><div class="">
On Wed, Jul 30, 2014 at 6:58 PM, Greg Clayton <<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a> <mailto:<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>>> wrote:<br>
<br>
If the logic is broken, please fix, but don't remove or simplify<br>
it just because it is complex. Make sure that if a platform (like<br>
darwin) supports both x86_64 and i386 binaries, that the tests run<br>
for both so we cover all bases and know if something fails for 32<br>
or 64 bit. Sounds like on Windows you only want to run x86_64 for<br>
64 bit machines or i386 for 32 bit machine right?<br>
<br>
Just make sure Darwin runs both with what ever fix you make.<br>
<br>
> On Jul 29, 2014, at 4:22 PM, Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>>> wrote:<br>
><br>
> Currently dotest.py contains the following logic to determine<br>
what architectures to compile the test executables as:<br>
><br>
> if args.archs:<br>
> # architectures were specified on the command line, just<br>
use them<br>
> else:<br>
> if (platform_system == 'Darwin' or (platform_system ==<br>
'Linux' and compilers == ['clang'])) and platform_machine == 'x86_64':<br>
> archs = ['x86_64', 'i386']<br>
> else:<br>
> archs = [platform_machine]<br>
><br>
> Does anyone actually need this kind of complicated logic? It's<br>
kind of magical and hand-wavy. There's no indication of why it<br>
makes sense that Darwin+x64 system would default to running both<br>
x64 and x86 tests, or why linux gcc x64 would run only x64 tests<br>
but not x86 tests, even though linux clang x64 would run both sets<br>
of tests.<br>
><br>
> I'd like to simplify it if possible (partly because this logic<br>
is actually broken on Windows, so I need to revisit it anyway).<br>
Is there any reason we can't just keep it as simple as "If it's<br>
on the command line, use it, otherwise default to running only the<br>
tests corresponding to the system platform?"<br>
> ______________________________<u></u>_________________<br>
> lldb-dev mailing list<br></div></div>
> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a> <mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a>><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
<br>
<br>
<br>
<br>
To report this email as spam click here <<a href="https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==" target="_blank">https://www.mailcontrol.com/<u></u>sr/MZbqvYs5QwJvpeaetUwhCQ==</a>>.<div class=""><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-dev</a><br>
</div></blockquote>
<br>
<br>
<br>
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<br>
More information can be found at <a href="http://www.csr.com" target="_blank">www.csr.com</a>. Keep up to date with CSR on our technical blog, <a href="http://www.csr.com/blog" target="_blank">www.csr.com/blog</a>, CSR people blog, <a href="http://www.csr.com/people" target="_blank">www.csr.com/people</a>, YouTube, <a href="http://www.youtube.com/user/CSRplc" target="_blank">www.youtube.com/user/CSRplc</a>, Facebook, <a href="http://www.facebook.com/pages/CSR/191038434253534" target="_blank">www.facebook.com/pages/CSR/<u></u>191038434253534</a>, or follow us on Twitter at <a href="http://www.twitter.com/CSR_plc" target="_blank">www.twitter.com/CSR_plc</a>.<br>
New for 2014, you can now access the wide range of products powered by aptX at <a href="http://www.aptx.com" target="_blank">www.aptx.com</a>.<br>
</blockquote></div><br></div>