[lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests
authorXing Xue <xingxue@outlook.com>
Tue, 14 May 2019 13:54:33 +0000 (13:54 +0000)
committerXing Xue <xingxue@outlook.com>
Tue, 14 May 2019 13:54:33 +0000 (13:54 +0000)
commitfe4f6d53c6e8a26d88a1d21a9e7af90963bdeaf0
treea430cb74ce676d13fb0bb985f957ce86583ad358
parent37b7922daa924d7e50aa95ea01fa2d90ef310975
[lit][tests]Add feature libcxx-used and use it in llvm-*-fuzzer tests

When a LLVM binary such as llvm-*-fuzzer is built with libc++, it has dependency on libc++. The path to find shared libraries specified in llvm-*-fuzzer is relative. As a result, these binaries cannot be copied to an arbitrary directory and launched from there. Changes in this patch add a LIT feature to indicate that libc++ is used to build and, based on the feature exclude test cases that test by copying llvm-*-fuzzer binaries to a directory.

Reviewers: hubert.reinterpretcast, dberris, amyk, jasonliu, EricWF

Reviewed By: hubert.reinterpretcast, amyk

Subscribers: javed.absar, jsji, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61265

llvm-svn: 360672
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in
llvm/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
llvm/test/tools/llvm-isel-fuzzer/execname-options.ll
llvm/test/tools/llvm-opt-fuzzer/exec-options.ll