Debian Codegraph @

3rdparty/catch2/tests/meson.build

raw
1 # Copyright Catch2 Authors
2 # Distributed under the Boost Software License, Version 1.0.
3 # (See accompanying file LICENSE.txt or copy at
4 # https://www.boost.org/LICENSE_1_0.txt)
5
6 # SPDX-License-Identifier: BSL-1.0
7
8 # define the sources of the self test
9 # Please keep these ordered alphabetically
10 self_test_sources = files(
11 'SelfTest/helpers/parse_test_spec.cpp',
12 'SelfTest/IntrospectiveTests/Algorithms.tests.cpp',
13 'SelfTest/IntrospectiveTests/Clara.tests.cpp',
14 'SelfTest/IntrospectiveTests/CmdLine.tests.cpp',
15 'SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp',
16 'SelfTest/IntrospectiveTests/ColourImpl.tests.cpp',
17 'SelfTest/IntrospectiveTests/Details.tests.cpp',
18 'SelfTest/IntrospectiveTests/FloatingPoint.tests.cpp',
19 'SelfTest/IntrospectiveTests/GeneratorsImpl.tests.cpp',
20 'SelfTest/IntrospectiveTests/InternalBenchmark.tests.cpp',
21 'SelfTest/IntrospectiveTests/Parse.tests.cpp',
22 'SelfTest/IntrospectiveTests/PartTracker.tests.cpp',
23 'SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp',
24 'SelfTest/IntrospectiveTests/Reporters.tests.cpp',
25 'SelfTest/IntrospectiveTests/Sharding.tests.cpp',
26 'SelfTest/IntrospectiveTests/Stream.tests.cpp',
27 'SelfTest/IntrospectiveTests/String.tests.cpp',
28 'SelfTest/IntrospectiveTests/StringManip.tests.cpp',
29 'SelfTest/IntrospectiveTests/Tag.tests.cpp',
30 'SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp',
31 'SelfTest/IntrospectiveTests/TestSpec.tests.cpp',
32 'SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp',
33 'SelfTest/IntrospectiveTests/TextFlow.tests.cpp',
34 'SelfTest/IntrospectiveTests/ToString.tests.cpp',
35 'SelfTest/IntrospectiveTests/Traits.tests.cpp',
36 'SelfTest/IntrospectiveTests/UniquePtr.tests.cpp',
37 'SelfTest/IntrospectiveTests/Xml.tests.cpp',
38 'SelfTest/TestRegistrations.cpp',
39 'SelfTest/TimingTests/Sleep.tests.cpp',
40 'SelfTest/UsageTests/Approx.tests.cpp',
41 'SelfTest/UsageTests/BDD.tests.cpp',
42 'SelfTest/UsageTests/Benchmark.tests.cpp',
43 'SelfTest/UsageTests/Class.tests.cpp',
44 'SelfTest/UsageTests/Compilation.tests.cpp',
45 'SelfTest/UsageTests/Condition.tests.cpp',
46 'SelfTest/UsageTests/Decomposition.tests.cpp',
47 'SelfTest/UsageTests/EnumToString.tests.cpp',
48 'SelfTest/UsageTests/Exception.tests.cpp',
49 'SelfTest/UsageTests/Generators.tests.cpp',
50 'SelfTest/UsageTests/Matchers.tests.cpp',
51 'SelfTest/UsageTests/MatchersRanges.tests.cpp',
52 'SelfTest/UsageTests/Message.tests.cpp',
53 'SelfTest/UsageTests/Misc.tests.cpp',
54 'SelfTest/UsageTests/ToStringByte.tests.cpp',
55 'SelfTest/UsageTests/ToStringChrono.tests.cpp',
56 'SelfTest/UsageTests/ToStringGeneral.tests.cpp',
57 'SelfTest/UsageTests/ToStringOptional.tests.cpp',
58 'SelfTest/UsageTests/ToStringPair.tests.cpp',
59 'SelfTest/UsageTests/ToStringTuple.tests.cpp',
60 'SelfTest/UsageTests/ToStringVariant.tests.cpp',
61 'SelfTest/UsageTests/ToStringVector.tests.cpp',
62 'SelfTest/UsageTests/ToStringWhich.tests.cpp',
63 'SelfTest/UsageTests/Tricky.tests.cpp',
64 'SelfTest/UsageTests/VariadicMacros.tests.cpp',
65 )
66
67 # This isn't as good as the CMake tests, but it proves that we've
68 # actually put something in the library files.
69 self_test = executable(
70 'SelfTest',
71 self_test_sources,
72 include_directories: ['../src', './SelfTest'],
73 link_with: [catch2_with_main, catch2],
74 )
75
76 test('SelfTest', self_test)