summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-09-05 21:24:23 +0000
committerVedant Kumar <vsk@apple.com>2019-09-05 21:24:23 +0000
commit1261f1b980d49c640f8ba8d75acdb7aacdc72421 (patch)
treee1460aa25f9bf1dbd01b614d6a1ecebe839d1786 /libcxx/test
parent5916799293736e3bb1a6db61405129a7d9536175 (diff)
downloadbcm5719-llvm-1261f1b980d49c640f8ba8d75acdb7aacdc72421.tar.gz
bcm5719-llvm-1261f1b980d49c640f8ba8d75acdb7aacdc72421.zip
[libcxx] Codesign test executables if necessary
If LLVM_CODESIGNING_IDENTITY is set, test executables need to be codesigned. Differential Revision: https://reviews.llvm.org/D66496 llvm-svn: 371126
Diffstat (limited to 'libcxx/test')
-rw-r--r--libcxx/test/libcxx/strings/basic.string/PR42676.sh.cpp2
-rw-r--r--libcxx/test/lit.site.cfg.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/libcxx/test/libcxx/strings/basic.string/PR42676.sh.cpp b/libcxx/test/libcxx/strings/basic.string/PR42676.sh.cpp
index 5aa2402c92c..70374828585 100644
--- a/libcxx/test/libcxx/strings/basic.string/PR42676.sh.cpp
+++ b/libcxx/test/libcxx/strings/basic.string/PR42676.sh.cpp
@@ -9,7 +9,7 @@
// Regression test for PR42676.
// RUN: %cxx %flags %s -o %t.exe %compile_flags %link_flags -D_LIBCPP_HIDE_FROM_ABI_PER_TU
-// RUN: %t.exe
+// RUN: %run
#include <memory>
#include <string>
diff --git a/libcxx/test/lit.site.cfg.in b/libcxx/test/lit.site.cfg.in
index fafc8fe6fec..a4354525b01 100644
--- a/libcxx/test/lit.site.cfg.in
+++ b/libcxx/test/lit.site.cfg.in
@@ -37,6 +37,9 @@ config.pstl_src_root = "@ParallelSTL_SOURCE_DIR@" if @LIBCXX_ENABLE_P
config.pstl_obj_root = "@ParallelSTL_BINARY_DIR@" if @LIBCXX_ENABLE_PARALLEL_ALGORITHMS@ else None
config.libcxx_gdb = "@LIBCXX_GDB@"
+# Code signing
+config.llvm_codesign_identity = "@LLVM_CODESIGNING_IDENTITY@"
+
# Let the main config do the real work.
config.loaded_site_config = True
lit_config.load_config(config, "@LIBCXX_SOURCE_DIR@/test/lit.cfg")
OpenPOWER on IntegriCloud