How do I get the LLVM test-suite to work I have followed the /docs/TestingGuide.html but cannot seem to get it to work. I have tried many variations, but get no joy. The docmunetation does not appear very clear. Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090328/e15c2e57/attachment.html>
On Mar 28, 2009, at 12:56 PM, Aaron Gray wrote:> How do I get the LLVM test-suite to work I have followed the /docs/ > TestingGuide.html but cannot seem to get it to work. I have tried > many variations, but get no joy. The docmunetation does not appear > very clear.Some things that are not so obvious: The testsuite has to be checked out as a subdirectory of llvm/ projects; llvm/projects/llvmtest or some such. After doing that, you need to re-configure from the top level. There must be a working llvm-gcc in your path when you do this. After that, cd to projects/llvmtest; make -k should work from there. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090328/6985d676/attachment.html>
Thanks for the reply. Do I check it out under src or build directory ? I am sure I had all this working fine with no problems 2 years ago. Aaron ----- Original Message ----- From: Dale Johannesen To: LLVM Developers Mailing List Sent: Saturday, March 28, 2009 8:11 PM Subject: Re: [LLVMdev] LLVM test-suite On Mar 28, 2009, at 12:56 PM, Aaron Gray wrote: How do I get the LLVM test-suite to work I have followed the /docs/TestingGuide.html but cannot seem to get it to work. I have tried many variations, but get no joy. The docmunetation does not appear very clear. Some things that are not so obvious: The testsuite has to be checked out as a subdirectory of llvm/projects; llvm/projects/llvmtest or some such. After doing that, you need to re-configure from the top level. There must be a working llvm-gcc in your path when you do this. After that, cd to projects/llvmtest; make -k should work from there. ------------------------------------------------------------------------------ _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090328/d80ef0bd/attachment.html>
Hi Aaron,> How do I get the LLVM test-suite to work I have followed the /docs/TestingGuide.html but cannot seem to get it to work. I have tried many variations, but get no joy. The docmunetation does not appear very clear.(1) check out the testsuite. The default name of the checkout is "test-suite". (2) move it into llvm/projects/, changing the name to llvm-test, so now you have an "llvm/projects/llvm-test" directory. I don't know if the name change really matters. (3) configure/reconfigure llvm (as if about to build llvm). This way the configure machinery will notice that the testsuite is now there. (4) if building in a separate objects directory you should have a "projects/llvm-test/" subdirectory of the objects directory now. Change directory into it. If building in the llvm tree, change directory to llvm/projects/llvm-test/. You should now be inside a directory called "llvm-test". (5) run "make". Ciao, Duncan.
Thanks Duncan, I figured it out after a couple of tries, but the docs are not as clear as your instructions. If there's no specific maintainer of TestingGuide.html, I'd be happy to update the docs to be as clear as your instructions. llvm/projects/Makefile filters out "test-suite" and "llvm-test" when builds are done, so it looks like those two names work. John On Sat, Mar 28, 2009 at 2:35 PM, Duncan Sands <baldrick at free.fr> wrote:> Hi Aaron, > > > How do I get the LLVM test-suite to work I have followed the > /docs/TestingGuide.html but cannot seem to get it to work. I have tried many > variations, but get no joy. The docmunetation does not appear very clear. > > (1) check out the testsuite. The default name of the checkout is > "test-suite". > (2) move it into llvm/projects/, changing the name to llvm-test, so now you > have an "llvm/projects/llvm-test" directory. I don't know if the name > change > really matters. > (3) configure/reconfigure llvm (as if about to build llvm). This way the > configure machinery will notice that the testsuite is now there. > (4) if building in a separate objects directory you should have a > "projects/llvm-test/" subdirectory of the objects directory now. > Change directory into it. If building in the llvm tree, change > directory to llvm/projects/llvm-test/. You should now be inside a > directory called "llvm-test". > (5) run "make". > > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090328/dc448af9/attachment.html>
2009/3/28 Dale Johannesen <dalej at apple.com>:> The testsuite has to be checked out as a subdirectory of llvm/projects; > llvm/projects/llvmtest or some such. > After doing that, you need to re-configure from the top level. There must > be a working llvm-gcc in your path when you do this.I've got a makefile that tries to build llvm and llvm-gcc from source, and then run the test suite. I've found that I have to 1. build llvm 2. build llvm-gcc (which uses libraries built as part of llvm) 3. as you say, *reconfigure* llvm (without using a config.cache!) now that there is a working llvm-gcc for it to find Is this reconfigure step really fundamentally necessary? It's a pain for me because there's no simple way to represent the fact that that step has been done as a dependency in my makefile, and because after the reconfigure "make" thinks that it needs to rebuild llvm. Thanks, Jay.