mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
Restructure test suite to follow libc++ standard layout
Summary: Subsumes changes requested in https://reviews.llvm.org/D59110 Reviewers: EricWF, ldionne Subscribers: mgorny, krytarowski, jfb, jdoerfert, libcxx-commits Differential Revision: https://reviews.llvm.org/D59856 llvm-svn: 357124
This commit is contained in:
parent
4bc38cfe29
commit
3b62047b8b
@ -31,11 +31,13 @@ add_library(ParallelSTL INTERFACE)
|
||||
add_library(pstl::ParallelSTL ALIAS ParallelSTL)
|
||||
|
||||
if (PARALLELSTL_USE_PARALLEL_POLICIES)
|
||||
message(STATUS "Using Parallel Policies")
|
||||
if (PARALLELSTL_BACKEND STREQUAL "tbb")
|
||||
find_package(TBB 2018 REQUIRED tbb OPTIONAL_COMPONENTS tbbmalloc)
|
||||
message(STATUS "Parallel STL uses TBB ${TBB_VERSION} (interface version: ${TBB_INTERFACE_VERSION})")
|
||||
target_link_libraries(ParallelSTL INTERFACE TBB::tbb)
|
||||
else()
|
||||
else()
|
||||
message(STATUS "Using Parallel Policies, but not tbb")
|
||||
if (TARGET ${PARALLELSTL_BACKEND})
|
||||
target_link_libraries(ParallelSTL INTERFACE ${PARALLELSTL_BACKEND})
|
||||
else()
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
#include "utils.h"
|
||||
|
||||
namespace __pstl
|
||||
|
@ -18,14 +18,17 @@ add_custom_target(check-pstl
|
||||
DEPENDS pstl-build-tests
|
||||
COMMENT "Build and run all the unit tests.")
|
||||
|
||||
file(GLOB_RECURSE UNIT_TESTS "test_*.cpp")
|
||||
file(GLOB_RECURSE UNIT_TESTS "*.pass.cpp")
|
||||
foreach(_file IN LISTS UNIT_TESTS)
|
||||
file(RELATIVE_PATH _target "${CMAKE_CURRENT_SOURCE_DIR}" "${_file}")
|
||||
string(REPLACE ".cpp" "" _target "${_target}")
|
||||
string(REPLACE "/" "-" _target "${_target}")
|
||||
set(_target "pstl-${_target}")
|
||||
|
||||
add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
|
||||
target_include_directories(${_target} PRIVATE "${CMAKE_CURRENT_LIST_DIR}")
|
||||
target_link_libraries(${_target} PRIVATE pstl::ParallelSTL)
|
||||
target_compile_definitions(${_target} PRIVATE -DPSTL_STANDALONE_TESTS)
|
||||
set_target_properties(${_target} PROPERTIES CXX_EXTENSIONS NO
|
||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
add_test(${_target} "${CMAKE_CURRENT_BINARY_DIR}/${_target}")
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_inplace_merge.cpp --------------------------------------------===//
|
||||
//===-- inplace_merge.pass.cpp --------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <algorithm>
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_merge.cpp ----------------------------------------------------===//
|
||||
//===-- merge.pass.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,14 +7,20 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_copy_if.cpp --------------------------------------------------===//
|
||||
//===-- copy_if.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for copy_if and remove_copy_if
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_is_partitioned.cpp -------------------------------------------===//
|
||||
//===-- is_partitioned.pass.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_partition.cpp ------------------------------------------------===//
|
||||
//===-- partition.pass.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for stable_partition and partition
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
#include <iterator>
|
||||
#include <type_traits>
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_partition_copy.cpp -------------------------------------------===//
|
||||
//===-- partition_copy.pass.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for stable_partition and partition_copy
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_reverse.cpp --------------------------------------------------===//
|
||||
//===-- reverse.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_reverse_copy.cpp ---------------------------------------------===//
|
||||
//===-- reverse_copy.pass.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_copy_move.cpp ------------------------------------------------===//
|
||||
//===-- copy_move.pass.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -9,11 +9,17 @@
|
||||
|
||||
// Tests for copy, move and copy_n
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_fill.cpp -----------------------------------------------------===//
|
||||
//===-- fill.pass.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for fill/fill_n
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_generate.cpp -------------------------------------------------===//
|
||||
//===-- generate.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,12 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for generate
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <atomic>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_remove.cpp ---------------------------------------------------===//
|
||||
//===-- remove.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Test for remove, remove_if
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_remove_copy.cpp ----------------------------------------------===//
|
||||
//===-- remove_copy.pass.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for remove_copy
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_replace.cpp --------------------------------------------------===//
|
||||
//===-- replace.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_replace_copy.cpp ---------------------------------------------===//
|
||||
//===-- replace_copy.pass.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -9,11 +9,17 @@
|
||||
|
||||
// Tests for replace_copy and replace_copy_if
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_rotate.cpp ---------------------------------------------------===//
|
||||
//===-- rotate.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_rotate_copy.cpp ----------------------------------------------===//
|
||||
//===-- rotate_copy.pass.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_swap_ranges.cpp ----------------------------------------------===//
|
||||
//===-- swap_ranges.pass.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_transform_binary.cpp -----------------------------------------===//
|
||||
//===-- transform_binary.pass.cpp -----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,9 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#include "pstl/execution"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_transform_unary.cpp ------------------------------------------===//
|
||||
//===-- transform_unary.pass.cpp ------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,9 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#include "pstl/execution"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_unique.cpp ---------------------------------------------------===//
|
||||
//===-- unique.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Test for unique
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_unique_copy_equal.cpp ----------------------------------------===//
|
||||
//===-- unique_copy_equal.pass.cpp ----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for unique_copy
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_adjacent_find.cpp --------------------------------------------===//
|
||||
//===-- adjacent_find.pass.cpp --------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for adjacent_find
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_all_of.cpp ---------------------------------------------------===//
|
||||
//===-- all_of.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
/*
|
||||
TODO: consider implementing the following tests for a better code coverage
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_any_of.cpp ---------------------------------------------------===//
|
||||
//===-- any_of.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
/*
|
||||
TODO: consider implementing the following tests for a better code coverage
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_count.cpp ----------------------------------------------------===//
|
||||
//===-- count.pass.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for count and count_if
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_equal.cpp ----------------------------------------------------===//
|
||||
//===-- equal.pass.cpp ----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_find.cpp -----------------------------------------------------===//
|
||||
//===-- find.pass.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for find
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_find_end.cpp -------------------------------------------------===//
|
||||
//===-- find_end.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_find_first_of.cpp --------------------------------------------===//
|
||||
//===-- find_first_of.pass.cpp --------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_find_if.cpp --------------------------------------------------===//
|
||||
//===-- find_if.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for find_if and find_if_not
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_for_each.cpp -------------------------------------------------===//
|
||||
//===-- for_each.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,9 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_mismatch.cpp -------------------------------------------------===//
|
||||
//===-- mismatch.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,14 +7,21 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for the rest algorithms; temporary approach to check compiling
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "pstl/numeric"
|
||||
#include "pstl/memory"
|
||||
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_none_of.cpp --------------------------------------------------===//
|
||||
//===-- none_of.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
/*
|
||||
TODO: consider implementing the following tests for a better code coverage
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_nth_element.cpp ----------------------------------------------===//
|
||||
//===-- nth_element.pass.cpp ----------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,14 +7,20 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_search_n.cpp -------------------------------------------------===//
|
||||
//===-- search_n.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_is_heap.cpp --------------------------------------------------===//
|
||||
//===-- is_heap.pass.cpp --------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -8,11 +8,17 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for is_heap, is_heap_until
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace TestUtils;
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_lexicographical_compare.cpp ----------------------------------===//
|
||||
//===-- lexicographical_compare.pass.cpp ----------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include <string>
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iostream>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_minmax_element.cpp -------------------------------------------===//
|
||||
//===-- minmax_element.pass.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for min_element, max_element, minmax_element
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
#include <set>
|
||||
#include <cassert>
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_includes.cpp -------------------------------------------------===//
|
||||
//===-- includes.pass.cpp -------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,20 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for partial_sort
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_set.cpp ------------------------------------------------------===//
|
||||
//===-- set.pass.cpp ------------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,14 +7,21 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for partial_sort
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include <cmath>
|
||||
#include <chrono>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_is_sorted.cpp ------------------------------------------------===//
|
||||
//===-- is_sorted.pass.cpp ------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for is_sorted, is_sorted_until
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_partial_sort.cpp ---------------------------------------------===//
|
||||
//===-- partial_sort.pass.cpp ---------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,13 +7,20 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for partial_sort
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_partial_sort_copy.cpp ----------------------------------------===//
|
||||
//===-- partial_sort_copy.pass.cpp ----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -10,11 +10,17 @@
|
||||
// Tests for partial_sort_copy
|
||||
|
||||
#include <cmath>
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_sort.cpp -----------------------------------------------------===//
|
||||
//===-- sort.pass.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for sort and stable_sort
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_adjacent_difference.cpp --------------------------------------===//
|
||||
//===-- adjacent_difference.pass.cpp --------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,14 +7,20 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include <iterator>
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/algorithm"
|
||||
#include "pstl/numeric"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_reduce.cpp ---------------------------------------------------===//
|
||||
//===-- reduce.pass.cpp ---------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/numeric"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <numeric>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_scan.cpp -----------------------------------------------------===//
|
||||
//===-- scan.pass.cpp -----------------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,10 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/numeric"
|
||||
#include "utils.h"
|
||||
#include "pstl_test_config.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <numeric>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_transform_reduce.cpp -----------------------------------------===//
|
||||
//===-- transform_reduce.pass.cpp -----------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,11 +7,18 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for inner_product
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/numeric"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <numeric>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_transform_scan.cpp -------------------------------------------===//
|
||||
//===-- transform_scan.pass.cpp -------------------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,10 +7,17 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/numeric"
|
||||
#include "utils.h"
|
||||
#include "pstl_test_config.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <numeric>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_uninitialized_construct.cpp ----------------------------------===//
|
||||
//===-- uninitialized_construct.pass.cpp ----------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -10,11 +10,17 @@
|
||||
// Tests for uninitialized_default_construct, uninitialized_default_construct_n,
|
||||
// uninitialized_value_construct, uninitialized_value_construct_n
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/memory"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <memory>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_uninitialized_copy_move.cpp ----------------------------------===//
|
||||
//===-- uninitialized_copy_move.pass.cpp ----------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -9,11 +9,17 @@
|
||||
|
||||
// Tests for uninitialized_copy, uninitialized_copy_n, uninitialized_move, uninitialized_move_n
|
||||
|
||||
#include "pstl_test_config.h"
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
#include "pstl/execution"
|
||||
#include "pstl/memory"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <memory>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
@ -1,5 +1,5 @@
|
||||
// -*- C++ -*-
|
||||
//===-- test_uninitialized_fill_destroy.cpp -------------------------------===//
|
||||
//===-- uninitialized_fill_destroy.pass.cpp -------------------------------===//
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
@ -7,12 +7,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
// Tests for the destroy, destroy_n, uninitialized_fill, uninitialized_fill_n algorithms
|
||||
#include "support/pstl_test_config.h"
|
||||
|
||||
#ifdef PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "pstl/execution"
|
||||
#include "pstl/memory"
|
||||
#include "pstl/algorithm"
|
||||
#include "utils.h"
|
||||
#else
|
||||
#include <execution>
|
||||
#include <algorithm>
|
||||
#endif // PSTL_STANDALONE_TESTS
|
||||
|
||||
#include "support/utils.h"
|
||||
|
||||
using namespace TestUtils;
|
||||
|
Loading…
Reference in New Issue
Block a user