2022-10-01 23:28:30 +02:00
|
|
|
# Copyright Catch2 Authors
|
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
# https://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
# SPDX-License-Identifier: BSL-1.0
|
|
|
|
|
|
|
|
# define the sources of the self test
|
|
|
|
# Please keep these ordered alphabetically
|
2022-10-03 17:23:38 +02:00
|
|
|
self_test_sources = files(
|
2022-10-01 23:28:30 +02:00
|
|
|
'SelfTest/IntrospectiveTests/Clara.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/CmdLine.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/ColourImpl.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/Details.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/PartTracker.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/Reporters.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/Sharding.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/Stream.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/String.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/StringManip.tests.cpp',
|
2022-10-03 17:23:38 +02:00
|
|
|
'SelfTest/IntrospectiveTests/Tag.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/TextFlow.tests.cpp',
|
2022-10-01 23:28:30 +02:00
|
|
|
'SelfTest/IntrospectiveTests/ToString.tests.cpp',
|
|
|
|
'SelfTest/IntrospectiveTests/UniquePtr.tests.cpp',
|
2022-10-03 17:23:38 +02:00
|
|
|
'SelfTest/IntrospectiveTests/Xml.tests.cpp',
|
|
|
|
'SelfTest/TestRegistrations.cpp',
|
2022-10-01 23:28:30 +02:00
|
|
|
'SelfTest/TimingTests/Sleep.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Approx.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/BDD.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Benchmark.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Class.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Compilation.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Condition.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Decomposition.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/EnumToString.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Exception.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Generators.tests.cpp',
|
2022-10-03 17:23:38 +02:00
|
|
|
'SelfTest/UsageTests/Matchers.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/MatchersRanges.tests.cpp',
|
2022-10-01 23:28:30 +02:00
|
|
|
'SelfTest/UsageTests/Message.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Misc.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringByte.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringChrono.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringGeneral.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringOptional.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringPair.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringTuple.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringVariant.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringVector.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/ToStringWhich.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/Tricky.tests.cpp',
|
|
|
|
'SelfTest/UsageTests/VariadicMacros.tests.cpp',
|
2022-10-03 17:23:38 +02:00
|
|
|
)
|
2022-10-01 23:28:30 +02:00
|
|
|
|
|
|
|
# This isn't as good as the CMake tests, but it proves that we've
|
|
|
|
# actually put something in the library files.
|
|
|
|
self_test = executable(
|
|
|
|
'SelfTest',
|
|
|
|
self_test_sources,
|
2022-10-03 17:23:38 +02:00
|
|
|
include_directories: '../src',
|
|
|
|
link_with: [catch2_with_main, catch2],
|
2022-10-01 23:28:30 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
test('SelfTest', self_test)
|