Skip to content

Commit c0d2532

Browse files
committed
[runtimes] Add tests for installation properties for vanilla configurations
1 parent ae7ab04 commit c0d2532

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++
10+
11+
// This file checks various properties of the installation of libc++ when built under
12+
// a vanilla upstream configuration.
13+
14+
// Make sure we install the libc++ headers in the right location.
15+
//
16+
// RUN: stat "%{include-dir}/__config"
17+
18+
// Make sure we install libc++.1.dylib and libc++experimental.a in the right location.
19+
//
20+
// RUN: stat "%{lib-dir}/libc++.1.dylib"
21+
// RUN: stat "%{lib-dir}/libc++experimental.a"
22+
23+
// Make sure we install a symlink from libc++.dylib to libc++.1.dylib.
24+
//
25+
// RUN: stat "%{lib-dir}/libc++.dylib"
26+
// RUN: readlink "%{lib-dir}/libc++.dylib" | grep "libc++.1.dylib"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
// REQUIRES: stdlib=libc++ && !stdlib=apple-libc++
10+
11+
// This file checks various properties of the installation of libc++abi when built under
12+
// a vanilla upstream configuration.
13+
14+
// Make sure we install the libc++abi headers in the right location.
15+
//
16+
// RUN: stat "%{include}/cxxabi.h"
17+
18+
// Make sure we install libc++abi.1.dylib in the right location.
19+
//
20+
// RUN: stat "%{lib}/libc++abi.1.dylib"
21+
22+
// Make sure we install a symlink from libc++abi.dylib to libc++abi.1.dylib.
23+
//
24+
// RUN: stat "%{lib-dir}/libc++abi.dylib"
25+
// RUN: readlink "%{lib-dir}/libc++abi.dylib" | grep "libc++abi.1.dylib"

0 commit comments

Comments
 (0)