[PATCH] test: Make a start on a test suite for libLTO.

Peter Collingbourne peter at pcc.me.uk
Thu Mar 19 16:59:03 PDT 2015


On Thu, Mar 19, 2015 at 04:51:28PM -0700, Duncan P. N. Exon Smith wrote:
> 
> > On 2015-Mar-19, at 16:21, Peter Collingbourne <peter at pcc.me.uk> wrote:
> > 
> > Hi dexonsmith,
> > 
> > This works in a similar way to the gold plugin tests. We search for a compatible
> > linker on $PATH and use it to run tests against our just-built libLTO. To start
> > with, test the just added opt level functionality.
> > 
> > http://reviews.llvm.org/D8472
> > 
> > Files:
> >  cmake/config-ix.cmake
> >  test/CMakeLists.txt
> >  test/Makefile
> >  test/lit.cfg
> >  test/lit.site.cfg.in
> >  test/tools/lto/lit.local.cfg
> >  test/tools/lto/opt-level.ll
> > 
> > EMAIL PREFERENCES
> >  http://reviews.llvm.org/settings/panel/emailpreferences/
> > <D8472.22320.patch>
> 
> This test suite will be pretty limited, since we have no control over
> the version of `ld64`, and the LTO API (and how `ld64` calls it) has
> changed a fair bit over time.  I think most tests should still be against
> `llvm-lto`.

Right, this is just for things that cannot be tested any other way.

> Nevertheless, this makes sense for checking that the clang driver options
> make it through to libLTO.dylib.  LGTM.

r232785.

Thanks,
-- 
Peter



More information about the llvm-commits mailing list