[libc++] [test] Add a debug-mode CI.

To run llvm-lit manually from the command line:

    ./bin/llvm-lit -sv --param std=c++2b --param cxx_under_test=`pwd`/bin/clang \
        --param debug_level=1 ../libcxx/test/

Tests that currently fail with `debug_level=1` are marked `LIBCXX-DEBUG-FIXME`,
but my intent is to deal with all of them and leave no such annotations in
the codebase within the next couple weeks. (I have patches for all of them
in my local checkout.)

Differential Revision: https://reviews.llvm.org/D100866
This commit is contained in:
Arthur O'Dwyer
2021-04-20 11:27:03 -04:00
parent 680c5d5de2
commit 86d1f590c2
24 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
set(LIBCXX_TEST_PARAMS "debug_level=1" "additional_features=LIBCXX-DEBUG-FIXME" CACHE STRING "")
set(LIBCXXABI_TEST_PARAMS "${LIBCXX_TEST_PARAMS}" CACHE STRING "")

View File

@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03
// UNSUPPORTED: debug_level=0, debug_level=1
// <vector>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// XFAIL: LIBCXX-DEBUG-FIXME
// <algorithm>
// template<BidirectionalIterator Iter, StrictWeakOrder<auto, Iter::value_type> Compare>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <unordered_set>
// template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,

View File

@@ -7,6 +7,7 @@
//
//===---------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -6,6 +6,7 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -7,6 +7,7 @@
//
//===---------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -7,6 +7,7 @@
//
//===---------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -7,6 +7,7 @@
//
//===---------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// XFAIL: LIBCXX-DEBUG-FIXME
// <span>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// XFAIL: LIBCXX-DEBUG-FIXME
// UNSUPPORTED: c++03
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// XFAIL: LIBCXX-DEBUG-FIXME
// UNSUPPORTED: c++03
// <filesystem>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// XFAIL: LIBCXX-DEBUG-FIXME
// <iterator>
#include <iterator>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// XFAIL: LIBCXX-DEBUG-FIXME
// <string>
// template<class InputIterator>

View File

@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string>
// template<> struct char_traits<char16_t>

View File

@@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string>
// template<> struct char_traits<char32_t>

View File

@@ -8,6 +8,7 @@
// UNSUPPORTED: c++03, c++11, c++14, c++17
// UNSUPPORTED: clang-8
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string>

View File

@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
// UNSUPPORTED: clang-8
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string>

View File

@@ -8,6 +8,7 @@
// XFAIL: gcc-10
// GCC's __builtin_strlen isn't constexpr yet
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
// <string_view>

View File

@@ -125,6 +125,18 @@ steps:
- exit_status: -1 # Agent was lost
limit: 2
- label: "Debug iterators"
command: "libcxx/utils/ci/run-buildbot generic-debug-iterators"
artifact_paths:
- "**/test-results.xml"
- "**/*.abilist"
agents:
queue: "libcxx-builders"
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2
- label: "GCC/C++20"
command: "libcxx/utils/ci/run-buildbot generic-gcc"
artifact_paths:

View File

@@ -202,6 +202,14 @@ generic-cxx2b)
check-cxx-cxxabi
check-abi-list
;;
generic-debug-iterators)
export CC=clang-tot
export CXX=clang++-tot
clean
generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-debug-iterators.cmake"
check-cxx-cxxabi
check-abi-list
;;
generic-noexceptions)
export CC=clang
export CXX=clang++