diff --git a/libcxx/test/libcxx/vendor/llvm/system-install-properties-darwin.sh.cpp b/libcxx/test/libcxx/vendor/llvm/system-install-properties-darwin.sh.cpp new file mode 100644 index 0000000000000..757bf89c17e9a --- /dev/null +++ b/libcxx/test/libcxx/vendor/llvm/system-install-properties-darwin.sh.cpp @@ -0,0 +1,27 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// REQUIRES: darwin +// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++ + +// This file checks various properties of the installation of libc++ when built under +// a vanilla upstream configuration on Darwin platforms. + +// Make sure we install the libc++ headers in the right location. +// +// RUN: stat "%{include-dir}/__config" + +// Make sure we install libc++.1.dylib and libc++experimental.a in the right location. +// +// RUN: stat "%{lib-dir}/libc++.1.dylib" +// RUN: stat "%{lib-dir}/libc++experimental.a" + +// Make sure we install a symlink from libc++.dylib to libc++.1.dylib. +// +// RUN: stat "%{lib-dir}/libc++.dylib" +// RUN: readlink "%{lib-dir}/libc++.dylib" | grep "libc++.1.dylib" diff --git a/libcxx/test/libcxx/vendor/llvm/system-install-properties-linux.sh.cpp b/libcxx/test/libcxx/vendor/llvm/system-install-properties-linux.sh.cpp new file mode 100644 index 0000000000000..05ccae9881a85 --- /dev/null +++ b/libcxx/test/libcxx/vendor/llvm/system-install-properties-linux.sh.cpp @@ -0,0 +1,32 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// REQUIRES: linux +// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++ + +// This file checks various properties of the installation of libc++ when built under +// a vanilla upstream configuration on Linux platforms. + +// Make sure we install the libc++ headers in the right location. +// +// RUN: stat "%{include-dir}/__config" + +// Make sure we install libc++.so.1.0 and libc++experimental.a in the right location. +// +// RUN: stat "%{lib-dir}/libc++.so.1.0" +// RUN: stat "%{lib-dir}/libc++experimental.a" + +// Make sure we install a symlink from libc++.so.1 to libc++.so.1.0. +// +// RUN: stat "%{lib-dir}/libc++.so.1" +// RUN: readlink "%{lib-dir}/libc++.so.1" | grep "libc++.so.1.0" + +// Make sure we install libc++.so in the right location. That may be a symlink or +// a linker script, so we don't check anything specific about that file. +// +// RUN: stat "%{lib-dir}/libc++.so" diff --git a/libcxxabi/test/vendor/llvm/system-install-properties-darwin.sh.cpp b/libcxxabi/test/vendor/llvm/system-install-properties-darwin.sh.cpp new file mode 100644 index 0000000000000..9c85aa907e594 --- /dev/null +++ b/libcxxabi/test/vendor/llvm/system-install-properties-darwin.sh.cpp @@ -0,0 +1,26 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// REQUIRES: darwin +// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++ + +// This file checks various properties of the installation of libc++abi when built under +// a vanilla upstream configuration on Darwin platforms. + +// Make sure we install the libc++abi headers in the right location. +// +// RUN: stat "%{include}/cxxabi.h" + +// Make sure we install libc++abi.1.dylib in the right location. +// +// RUN: stat "%{lib}/libc++abi.1.dylib" + +// Make sure we install a symlink from libc++abi.dylib to libc++abi.1.dylib. +// +// RUN: stat "%{lib-dir}/libc++abi.dylib" +// RUN: readlink "%{lib-dir}/libc++abi.dylib" | grep "libc++abi.1.dylib" diff --git a/libcxxabi/test/vendor/llvm/system-install-properties-linux.sh.cpp b/libcxxabi/test/vendor/llvm/system-install-properties-linux.sh.cpp new file mode 100644 index 0000000000000..f144b21462303 --- /dev/null +++ b/libcxxabi/test/vendor/llvm/system-install-properties-linux.sh.cpp @@ -0,0 +1,31 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// REQUIRES: linux +// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++ + +// This file checks various properties of the installation of libc++abi when built under +// a vanilla upstream configuration on Linux platforms. + +// Make sure we install the libc++abi headers in the right location. +// +// RUN: stat "%{include}/cxxabi.h" + +// Make sure we install libc++abi.so.1.0 in the right location. +// +// RUN: stat "%{lib}/libc++abi.so.1.0" + +// Make sure we install a symlink from libc++abi.so.1 to libc++abi.so.1.0. +// +// RUN: stat "%{lib}/libc++abi.so.1" +// RUN: readlink "%{lib}/libc++abi.so.1" | grep "libc++abi.so.1.0" + +// Make sure we install a symlink from libc++abi.so to libc++abi.so.1. +// +// RUN: stat "%{lib}/libc++abi.so" +// RUN: readlink "%{lib}/libc++abi.so" | grep "libc++abi.so.1"