[llvm-dev] Help required on running the regression tests
Joan Lluch via llvm-dev
llvm-dev at lists.llvm.org
Sun Jun 16 04:21:01 PDT 2019
Anyway, I seem to have managed to make it work. The ‘make' commands do not work properly after you create a Xcode project with CMake, but the ‘check’ Targets are still there to be run from the Xcode IDE (only as a whole though).
However, the 'llvm-lit' tool still works just fine, so I can just use that to run sets of tests from the command line.
Thanks for your help!
> On 14 Jun 2019, at 13:16, Joan Lluch <joan.lluch at icloud.com> wrote:
> Hi Tim,
> Thanks again for that.
> I meant to say that did NOT use any terminal command to create the project, I just ran the CMake app. I mean I didn’t even use the ‘terminal' app for that.
> So, I tried now what you suggested, and in my case, after running xcodebuild -list, a long list of targets appear, but none with the text “check” in it. I’m utterly confused on what to try next.
>> On 14 Jun 2019, at 12:55, Tim Northover <t.p.northover at gmail.com> wrote:
>> Hi Joan,
>> On Fri, 14 Jun 2019 at 11:45, Joan Lluch <joan.lluch at icloud.com> wrote:
>>> When I started with this, I just downloaded the sources for the LLVM site, I did not even created a git for it. Then ran the CMAKE app (not from the command line) with the default settings other than also adding the ‘experimental’ targets, and boom a fully functional XCode project was created, so I gave no further thought on that.
>> Oh, Xcode. Now that's a large wrinkle in matters. I take it that means
>> you used "cmake -G Xcode"? I think most people who work on LLVM use
>> either the "Unix Makefiles" or he "Ninja" backends for CMake, which do
>> generate the check destinations needed. The xcode backend would
>> completely replace any make/ninja files CMake would generate so that
>> would explain what you're seeing.
>> Some more people (I think) have a separate xcode build directory
>> purely for indexing/IDE but do their main builds in a make/ninja
>> Anyway, I've just generated an Xcode project myself and (by running
>> "xcodebuild -list") there does appear to be an "xcodebuild -target
>> check" (etc). I've not actually run them because at the moment I only
>> have access to a laptop that would take quite a while to finish, but I
>> think that's probably your best bet.
More information about the llvm-dev