]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/beast/subtree/unit_test/include/boost/beast/unit_test/global_suites.hpp
Add patch for failing prerm scripts
[ceph.git] / ceph / src / boost / libs / beast / subtree / unit_test / include / boost / beast / unit_test / global_suites.hpp
CommitLineData
7c673cae 1//
b32b8144 2// Copyright (c) 2016-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
7c673cae
FG
3//
4// Distributed under the Boost Software License, Version 1.0. (See accompanying
5// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6//
b32b8144
FG
7// Official repository: https://github.com/boostorg/beast
8//
7c673cae 9
b32b8144
FG
10#ifndef BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
11#define BOOST_BEAST_UNIT_TEST_GLOBAL_SUITES_HPP
7c673cae 12
b32b8144 13#include <boost/beast/unit_test/suite_list.hpp>
7c673cae 14
b32b8144 15namespace boost {
7c673cae
FG
16namespace beast {
17namespace unit_test {
18
19namespace detail {
20
21/// Holds test suites registered during static initialization.
22inline
23suite_list&
24global_suites()
25{
26 static suite_list s;
27 return s;
28}
29
30template<class Suite>
31struct insert_suite
32{
33 insert_suite(char const* name, char const* module,
34 char const* library, bool manual)
35 {
36 global_suites().insert<Suite>(
37 name, module, library, manual);
38 }
39};
40
41} // detail
42
43/// Holds test suites registered during static initialization.
44inline
45suite_list const&
46global_suites()
47{
48 return detail::global_suites();
49}
50
51} // unit_test
52} // beast
b32b8144 53} // boost
7c673cae
FG
54
55#endif