From f23f96883a59979e693852ffa9f180eccdd09862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 15 Nov 2019 11:54:38 +0100 Subject: [PATCH] Ensure the full benchmarking support is present in the single header Fixes #1800 --- include/catch.hpp | 2 +- .../benchmark/catch_benchmarking_all.hpp | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 include/internal/benchmark/catch_benchmarking_all.hpp diff --git a/include/catch.hpp b/include/catch.hpp index 805939ae..b6824aa0 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -80,7 +80,7 @@ #endif #if defined(CATCH_CONFIG_ENABLE_BENCHMARKING) -#include "internal/benchmark/catch_benchmark.hpp" +#include "internal/benchmark/catch_benchmarking_all.hpp" #endif #endif // ! CATCH_CONFIG_IMPL_ONLY diff --git a/include/internal/benchmark/catch_benchmarking_all.hpp b/include/internal/benchmark/catch_benchmarking_all.hpp new file mode 100644 index 00000000..7717f899 --- /dev/null +++ b/include/internal/benchmark/catch_benchmarking_all.hpp @@ -0,0 +1,29 @@ +/* + * Distributed under the Boost Software License, Version 1.0. (See accompanying + * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + */ + + +// A proxy header that includes all of the benchmarking headers to allow +// concise include of the benchmarking features. You should prefer the +// individual includes in standard use. + +#include "catch_benchmark.hpp" +#include "catch_chronometer.hpp" +#include "catch_clock.hpp" +#include "catch_constructor.hpp" +#include "catch_environment.hpp" +#include "catch_estimate.hpp" +#include "catch_execution_plan.hpp" +#include "catch_optimizer.hpp" +#include "catch_outlier_classification.hpp" +#include "catch_sample_analysis.hpp" +#include "detail/catch_analyse.hpp" +#include "detail/catch_benchmark_function.hpp" +#include "detail/catch_complete_invoke.hpp" +#include "detail/catch_estimate_clock.hpp" +#include "detail/catch_measure.hpp" +#include "detail/catch_repeat.hpp" +#include "detail/catch_run_for_at_least.hpp" +#include "detail/catch_stats.hpp" +#include "detail/catch_timing.hpp"