mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 06:19:46 +08:00
[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:
2
libcxx/cmake/caches/Generic-debug-iterators.cmake
Normal file
2
libcxx/cmake/caches/Generic-debug-iterators.cmake
Normal 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 "")
|
||||
@@ -7,6 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: c++03
|
||||
// UNSUPPORTED: debug_level=0, debug_level=1
|
||||
|
||||
// <vector>
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <algorithm>
|
||||
|
||||
// template<BidirectionalIterator Iter, StrictWeakOrder<auto, Iter::value_type> Compare>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <unordered_set>
|
||||
|
||||
// template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
//===---------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
//===---------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
//===---------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//
|
||||
//===---------------------------------------------------------------------===//
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <span>
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// UNSUPPORTED: c++03
|
||||
// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DISABLE_DEPRECATION_WARNINGS
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// UNSUPPORTED: c++03
|
||||
|
||||
// <filesystem>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <iterator>
|
||||
|
||||
#include <iterator>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// XFAIL: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
// template<class InputIterator>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: clang-8
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
// template<> struct char_traits<char16_t>
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
// template<> struct char_traits<char32_t>
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// UNSUPPORTED: c++03, c++11, c++14, c++17
|
||||
// UNSUPPORTED: clang-8
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// UNSUPPORTED: clang-8
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// XFAIL: gcc-10
|
||||
// GCC's __builtin_strlen isn't constexpr yet
|
||||
// UNSUPPORTED: LIBCXX-DEBUG-FIXME
|
||||
|
||||
// <string_view>
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user