meson.build 3.0 KB

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