Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRosen Penev2022-10-03 08:23:38 -0700
committerGitHub2022-10-03 17:23:38 +0200
commit6a9bf2e0afe7eeece351777ae2f9b8e714ecd274 (patch)
tree98f9d337f1c1544112e95ab228ea0831cf398c2e /tests
parent980c20694ecb60e3671ee3c08a53b4b720f5d4ae (diff)
downloadcatch3-6a9bf2e0afe7eeece351777ae2f9b8e714ecd274.tar.gz
meson cleanups with muon (#2539)
* meson: run through muon's fmt to fix formatting * meson: switch arrays to files Allows muon to alphabetically sort files. switch headers back to arrays as split() can only be used on strings. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/meson.build b/tests/meson.build
index a7670a99..9da8eb52 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -7,8 +7,7 @@
# define the sources of the self test
# Please keep these ordered alphabetically
-self_test_sources = [
- 'SelfTest/TestRegistrations.cpp',
+self_test_sources = files(
'SelfTest/IntrospectiveTests/Clara.tests.cpp',
'SelfTest/IntrospectiveTests/CmdLine.tests.cpp',
'SelfTest/IntrospectiveTests/CmdLineHelpers.tests.cpp',
@@ -20,17 +19,18 @@ self_test_sources = [
'SelfTest/IntrospectiveTests/PartTracker.tests.cpp',
'SelfTest/IntrospectiveTests/RandomNumberGeneration.tests.cpp',
'SelfTest/IntrospectiveTests/Reporters.tests.cpp',
- 'SelfTest/IntrospectiveTests/Tag.tests.cpp',
- 'SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp',
- 'SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp',
- 'SelfTest/IntrospectiveTests/TextFlow.tests.cpp',
'SelfTest/IntrospectiveTests/Sharding.tests.cpp',
'SelfTest/IntrospectiveTests/Stream.tests.cpp',
'SelfTest/IntrospectiveTests/String.tests.cpp',
'SelfTest/IntrospectiveTests/StringManip.tests.cpp',
- 'SelfTest/IntrospectiveTests/Xml.tests.cpp',
+ 'SelfTest/IntrospectiveTests/Tag.tests.cpp',
+ 'SelfTest/IntrospectiveTests/TestCaseInfoHasher.tests.cpp',
+ 'SelfTest/IntrospectiveTests/TestSpecParser.tests.cpp',
+ 'SelfTest/IntrospectiveTests/TextFlow.tests.cpp',
'SelfTest/IntrospectiveTests/ToString.tests.cpp',
'SelfTest/IntrospectiveTests/UniquePtr.tests.cpp',
+ 'SelfTest/IntrospectiveTests/Xml.tests.cpp',
+ 'SelfTest/TestRegistrations.cpp',
'SelfTest/TimingTests/Sleep.tests.cpp',
'SelfTest/UsageTests/Approx.tests.cpp',
'SelfTest/UsageTests/BDD.tests.cpp',
@@ -42,6 +42,8 @@ self_test_sources = [
'SelfTest/UsageTests/EnumToString.tests.cpp',
'SelfTest/UsageTests/Exception.tests.cpp',
'SelfTest/UsageTests/Generators.tests.cpp',
+ 'SelfTest/UsageTests/Matchers.tests.cpp',
+ 'SelfTest/UsageTests/MatchersRanges.tests.cpp',
'SelfTest/UsageTests/Message.tests.cpp',
'SelfTest/UsageTests/Misc.tests.cpp',
'SelfTest/UsageTests/ToStringByte.tests.cpp',
@@ -55,17 +57,15 @@ self_test_sources = [
'SelfTest/UsageTests/ToStringWhich.tests.cpp',
'SelfTest/UsageTests/Tricky.tests.cpp',
'SelfTest/UsageTests/VariadicMacros.tests.cpp',
- 'SelfTest/UsageTests/MatchersRanges.tests.cpp',
- 'SelfTest/UsageTests/Matchers.tests.cpp'
-]
+)
# 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,
- include_directories : '../src',
- link_with : [ catch2_with_main, catch2 ]
+ include_directories: '../src',
+ link_with: [catch2_with_main, catch2],
)
test('SelfTest', self_test)