[LLVMdev] Cross Compiling LLVM's test-suite
Daniel Sanders
Daniel.Sanders at imgtec.com
Thu Apr 2 09:44:45 PDT 2015
In lnt (http://llvm.org/docs/lnt/) you can run the test-suite with 'lnt runtest nt' and appropriate options. The --qemu-user-mode=qemu-command option will use the makefiles in the right way for qemu's linux user mode. --qemu-flag can be used to pass additional options. It should be fairly easy to adapt lnt's qemu support to other simulators if you need to.
I should mention that I typically point --qemu-user-mode at a wrapper script that sets some environment variables (QEMU_LD_PREFIX and LD_LIBRARY_PATH) before calling qemu itself. Otherwise my simulated program can't find the target libraries.
> -----Original Message-----
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Renato Golin
> Sent: 02 April 2015 17:12
> To: Romaric Jodin
> Cc: Nicolas Brunie; LLVM Dev
> Subject: Re: [LLVMdev] Cross Compiling LLVM's test-suite
>
> On 2 April 2015 at 15:51, Romaric Jodin <rjodin at kalray.eu> wrote:
> > - Is it possible to compile the tools of the test-suite and all the tests with a
> different compiler?
>
> It is. Check CC / ORIGINAL_CC / TARGET_CC in the Makefiles.
>
> > - Is it possible not to run the tests directly on the machine but on a
> simulator?
>
> Yes, see RunSafely.sh. It has options for remote testing, or QEMU user
> emulation.
>
> I have not tried that myself, but I know it has been done in the past
> and it should still be possible.
>
> cheers,
> --renato
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list