Skip to content

Commit e3c2861

Browse files
committed
[libc++] Add CI without experimental features and don't exclude span from the tests
There is no reason for the parts of std::span that don't depend on ranges to be disabled when ranges aren't provided. Also, to make sure the "no-experimental-stuff" configuration is tested, add a CI job for it. Differential Revision: https://reviews.llvm.org/D118740 (cherry picked from commit 99ae458)
1 parent 8891aab commit e3c2861

32 files changed

+22
-29
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
set(LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY OFF CACHE BOOL "")
2+
set(LIBCXX_ENABLE_INCOMPLETE_FEATURES OFF CACHE BOOL "")

libcxx/test/std/containers/views/span.cons/assign.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/copy.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/deduct.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
99
// UNSUPPORTED: libcpp-no-concepts
10-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
1110

1211
// <span>
1312

libcxx/test/std/containers/views/span.cons/initializer_list.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/iterator_len.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===---------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/iterator_len.verify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===---------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/iterator_sentinel.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===---------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.cons/iterator_sentinel.verify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===---------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.elem/back.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.elem/data.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.elem/front.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.elem/op_idx.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.iterators/begin.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.iterators/end.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.iterators/rbegin.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.iterators/rend.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.objectrep/as_bytes.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.objectrep/as_writable_bytes.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.objectrep/as_writable_bytes.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.obs/empty.nodiscard.verify.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// <span>
1211

libcxx/test/std/containers/views/span.obs/empty.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.obs/size.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.obs/size_bytes.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/first.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/first.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/last.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/last.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/subspan.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/test/std/containers/views/span.sub/subspan.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88
// UNSUPPORTED: c++03, c++11, c++14, c++17
9-
// UNSUPPORTED: libcpp-has-no-incomplete-ranges
109

1110
// AppleClang 12.0.0 doesn't fully support ranges/concepts
1211
// XFAIL: apple-clang-12.0.0

libcxx/utils/ci/buildkite-pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,19 @@ steps:
465465
limit: 2
466466
timeout_in_minutes: 120
467467

468+
- label: "No experimental features"
469+
command: "libcxx/utils/ci/run-buildbot generic-no-experimental"
470+
artifact_paths:
471+
- "**/test-results.xml"
472+
agents:
473+
queue: "libcxx-builders"
474+
os: "linux"
475+
retry:
476+
automatic:
477+
- exit_status: -1 # Agent was lost
478+
limit: 2
479+
timeout_in_minutes: 120
480+
468481
# Other non-testing CI jobs
469482
- label: "Benchmarks"
470483
command: "libcxx/utils/ci/run-buildbot benchmarks"

libcxx/utils/ci/run-buildbot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,13 @@ generic-no-wide-characters)
390390
-DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in"
391391
check-runtimes
392392
;;
393+
generic-no-experimental)
394+
clean
395+
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-no-experimental.cmake" \
396+
-DLIBCXX_TEST_CONFIG="llvm-libc++-shared.cfg.in" \
397+
-DLIBUNWIND_TEST_CONFIG="llvm-libunwind-shared.cfg.in"
398+
check-runtimes
399+
;;
393400
apple-system)
394401
clean
395402

0 commit comments

Comments
 (0)