From 3fa59db26dda0804cf82b0729b36f8fcef40809a Mon Sep 17 00:00:00 2001 From: alandefreitas Date: Fri, 7 Jun 2024 12:29:09 -0300 Subject: [PATCH] ci: split test targets --- CMakeLists.txt | 20 +++++++++---------- src/test/TestArgs.cpp | 5 +++++ src/test/TestArgs.hpp | 3 ++- src/test/TestRunner.cpp | 8 ++++++++ .../alias-template.cpp | 0 .../alias-template.xml | 0 .../attributes_1.cpp | 0 .../attributes_1.xml | 0 .../{old-tests => golden-tests}/brief-1.cpp | 0 .../{old-tests => golden-tests}/brief-1.xml | 0 .../{old-tests => golden-tests}/brief-2.cpp | 0 .../{old-tests => golden-tests}/brief-2.xml | 0 .../canonical_1.cpp | 0 .../canonical_1.xml | 0 .../class-template-partial-spec.cpp | 0 .../class-template-partial-spec.xml | 0 .../class-template-spec.cpp | 0 .../class-template-spec.xml | 0 .../class-template-specializations-1.cpp | 0 .../class-template-specializations-1.xml | 0 .../class-template-specializations-2.cpp | 0 .../class-template-specializations-2.xml | 0 .../class-template-specializations-3.cpp | 0 .../class-template-specializations-3.xml | 0 .../class-template.cpp | 0 .../class-template.xml | 0 .../{old-tests => golden-tests}/commands.cpp | 0 .../{old-tests => golden-tests}/commands.xml | 0 .../dependency-propagation.cpp | 0 .../dependency-propagation.xml | 0 .../dependency-propagation.yml | 0 .../duplicate-jdoc.cpp | 0 .../duplicate-jdoc.xml | 0 .../{old-tests => golden-tests}/enum.cpp | 0 .../{old-tests => golden-tests}/enum.xml | 0 .../explicit-conv-operator.cpp | 0 .../explicit-conv-operator.xml | 0 .../explicit-ctor.cpp | 0 .../explicit-ctor.xml | 0 .../explicit-deduct-guide.cpp | 0 .../explicit-deduct-guide.xml | 0 .../explicit-object-parameter.cpp | 0 .../explicit-object-parameter.xml | 0 .../filters/blacklist_0.cpp | 0 .../filters/blacklist_0.xml | 0 .../filters/blacklist_0.yml | 0 .../filters/blacklist_test.cpp | 0 .../filters/blacklist_test.xml | 0 .../filters/blacklist_test.yml | 0 .../filters/filters.cpp | 0 .../filters/filters.xml | 0 .../filters/filters.yml | 0 .../filters/whitelist_0.cpp | 0 .../filters/whitelist_0.xml | 0 .../filters/whitelist_0.yml | 0 .../filters/whitelist_test.cpp | 0 .../filters/whitelist_test.xml | 0 .../filters/whitelist_test.yml | 0 .../{old-tests => golden-tests}/friend-1.cpp | 0 .../{old-tests => golden-tests}/friend-1.xml | 0 .../{old-tests => golden-tests}/friend-2.cpp | 0 .../{old-tests => golden-tests}/friend-2.xml | 0 .../{old-tests => golden-tests}/friend-3.cpp | 0 .../{old-tests => golden-tests}/friend-3.xml | 0 .../{old-tests => golden-tests}/friend-4.cpp | 0 .../{old-tests => golden-tests}/friend-4.xml | 0 .../{old-tests => golden-tests}/friend-5.cpp | 0 .../{old-tests => golden-tests}/friend-5.xml | 0 .../{old-tests => golden-tests}/friend-6.cpp | 0 .../{old-tests => golden-tests}/friend-6.xml | 0 .../function-parm-decay.cpp | 0 .../function-parm-decay.xml | 0 .../function-template.cpp | 0 .../function-template.xml | 0 .../function-tparm-decay.cpp | 0 .../function-tparm-decay.xml | 0 .../implicit-instantiation-member-ref.cpp | 0 .../implicit-instantiation-member-ref.xml | 0 .../local-class.cpp | 0 .../local-class.xml | 0 .../{old-tests => golden-tests}/mem-fn.cpp | 0 .../{old-tests => golden-tests}/mem-fn.xml | 0 .../{old-tests => golden-tests}/mrdocs.yml | 0 .../namespace-alias-1.cpp | 0 .../namespace-alias-1.xml | 0 .../namespace-alias-2.cpp | 0 .../namespace-alias-2.xml | 0 .../namespace-alias-3.cpp | 0 .../namespace-alias-3.xml | 0 .../{old-tests => golden-tests}/namespace.cpp | 0 .../{old-tests => golden-tests}/namespace.xml | 0 .../nested-private-template.cpp | 0 .../nested-private-template.xml | 0 .../no_unique_address.cpp | 0 .../no_unique_address.xml | 0 .../{old-tests => golden-tests}/noreturn.cpp | 0 .../{old-tests => golden-tests}/noreturn.xml | 0 .../ns-variables.cpp | 0 .../ns-variables.xml | 0 .../out-of-line-record-def.cpp | 0 .../out-of-line-record-def.xml | 0 .../overloaded-op-1.cpp | 0 .../overloaded-op-1.xml | 0 .../overloaded-op-2.cpp | 0 .../overloaded-op-2.xml | 0 .../{old-tests => golden-tests}/para-1.cpp | 0 .../{old-tests => golden-tests}/para-1.xml | 0 .../{old-tests => golden-tests}/para-2.cpp | 0 .../{old-tests => golden-tests}/para-2.xml | 0 .../param-direction.cpp | 0 .../param-direction.xml | 0 .../{old-tests => golden-tests}/param.cpp | 0 .../{old-tests => golden-tests}/param.xml | 0 .../{old-tests => golden-tests}/pre-post.cpp | 0 .../{old-tests => golden-tests}/pre-post.xml | 0 .../{old-tests => golden-tests}/record-1.cpp | 0 .../{old-tests => golden-tests}/record-1.xml | 0 .../record-access.cpp | 0 .../record-access.xml | 0 .../record-data.cpp | 0 .../record-data.xml | 0 .../record-inheritance.cpp | 0 .../record-inheritance.xml | 0 .../{old-tests => golden-tests}/ref.cpp | 0 .../{old-tests => golden-tests}/ref.xml | 0 .../spec-mem-implicit-instantiation.cpp | 0 .../spec-mem-implicit-instantiation.xml | 0 .../static-data-def-constexpr.cpp | 0 .../static-data-def-constexpr.xml | 0 .../static-data-def.cpp | 0 .../static-data-def.xml | 0 .../static-data-template.cpp | 0 .../static-data-template.xml | 0 .../temp/c_mct_expl_inline.cpp | 0 .../temp/c_mct_expl_inline.xml | 0 .../temp/c_mct_expl_outside.cpp | 0 .../temp/c_mct_expl_outside.xml | 0 .../temp/c_mft_expl_inline.cpp | 0 .../temp/c_mft_expl_inline.xml | 0 .../temp/c_mft_expl_outside.cpp | 0 .../temp/c_mft_expl_outside.xml | 0 .../temp/ct_expl.cpp | 0 .../temp/ct_expl.xml | 0 .../temp/ct_mc.cpp | 0 .../temp/ct_mc.xml | 0 .../temp/ct_mc_expl_outside.cpp | 0 .../temp/ct_mc_expl_outside.xml | 0 .../temp/ct_mct.cpp | 0 .../temp/ct_mct.xml | 0 .../temp/ct_mct_expl_inline.cpp | 0 .../temp/ct_mct_expl_inline.xml | 0 .../temp/ct_mct_expl_outside.cpp | 0 .../temp/ct_mct_expl_outside.xml | 0 .../temp/ct_mf.cpp | 0 .../temp/ct_mf.xml | 0 .../temp/ct_mf_expl_outside.cpp | 0 .../temp/ct_mf_expl_outside.xml | 0 .../temp/ct_mft.cpp | 0 .../temp/ct_mft.xml | 0 .../temp/ct_mft_expl_inline.cpp | 0 .../temp/ct_mft_expl_inline.xml | 0 .../temp/ct_mft_expl_outside.cpp | 0 .../temp/ct_mft_expl_outside.xml | 0 .../temp/ft_expl.cpp | 0 .../temp/ft_expl.xml | 0 .../type-resolution.cpp | 0 .../type-resolution.xml | 0 .../{old-tests => golden-tests}/using-1.cpp | 0 .../{old-tests => golden-tests}/using-1.xml | 0 .../{old-tests => golden-tests}/using-2.cpp | 0 .../{old-tests => golden-tests}/using-2.xml | 0 .../{old-tests => golden-tests}/using-3.cpp | 0 .../{old-tests => golden-tests}/using-3.xml | 0 .../{old-tests => golden-tests}/utf-8.cpp | 0 .../{old-tests => golden-tests}/utf-8.xml | 0 .../var-template.cpp | 0 .../var-template.xml | 0 .../variadic-function.cpp | 0 .../variadic-function.xml | 0 179 files changed, 24 insertions(+), 12 deletions(-) rename test-files/{old-tests => golden-tests}/alias-template.cpp (100%) rename test-files/{old-tests => golden-tests}/alias-template.xml (100%) rename test-files/{old-tests => golden-tests}/attributes_1.cpp (100%) rename test-files/{old-tests => golden-tests}/attributes_1.xml (100%) rename test-files/{old-tests => golden-tests}/brief-1.cpp (100%) rename test-files/{old-tests => golden-tests}/brief-1.xml (100%) rename test-files/{old-tests => golden-tests}/brief-2.cpp (100%) rename test-files/{old-tests => golden-tests}/brief-2.xml (100%) rename test-files/{old-tests => golden-tests}/canonical_1.cpp (100%) rename test-files/{old-tests => golden-tests}/canonical_1.xml (100%) rename test-files/{old-tests => golden-tests}/class-template-partial-spec.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template-partial-spec.xml (100%) rename test-files/{old-tests => golden-tests}/class-template-spec.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template-spec.xml (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-1.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-1.xml (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-2.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-2.xml (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-3.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template-specializations-3.xml (100%) rename test-files/{old-tests => golden-tests}/class-template.cpp (100%) rename test-files/{old-tests => golden-tests}/class-template.xml (100%) rename test-files/{old-tests => golden-tests}/commands.cpp (100%) rename test-files/{old-tests => golden-tests}/commands.xml (100%) rename test-files/{old-tests => golden-tests}/dependency-propagation.cpp (100%) rename test-files/{old-tests => golden-tests}/dependency-propagation.xml (100%) rename test-files/{old-tests => golden-tests}/dependency-propagation.yml (100%) rename test-files/{old-tests => golden-tests}/duplicate-jdoc.cpp (100%) rename test-files/{old-tests => golden-tests}/duplicate-jdoc.xml (100%) rename test-files/{old-tests => golden-tests}/enum.cpp (100%) rename test-files/{old-tests => golden-tests}/enum.xml (100%) rename test-files/{old-tests => golden-tests}/explicit-conv-operator.cpp (100%) rename test-files/{old-tests => golden-tests}/explicit-conv-operator.xml (100%) rename test-files/{old-tests => golden-tests}/explicit-ctor.cpp (100%) rename test-files/{old-tests => golden-tests}/explicit-ctor.xml (100%) rename test-files/{old-tests => golden-tests}/explicit-deduct-guide.cpp (100%) rename test-files/{old-tests => golden-tests}/explicit-deduct-guide.xml (100%) rename test-files/{old-tests => golden-tests}/explicit-object-parameter.cpp (100%) rename test-files/{old-tests => golden-tests}/explicit-object-parameter.xml (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_0.cpp (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_0.xml (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_0.yml (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_test.cpp (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_test.xml (100%) rename test-files/{old-tests => golden-tests}/filters/blacklist_test.yml (100%) rename test-files/{old-tests => golden-tests}/filters/filters.cpp (100%) rename test-files/{old-tests => golden-tests}/filters/filters.xml (100%) rename test-files/{old-tests => golden-tests}/filters/filters.yml (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_0.cpp (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_0.xml (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_0.yml (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_test.cpp (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_test.xml (100%) rename test-files/{old-tests => golden-tests}/filters/whitelist_test.yml (100%) rename test-files/{old-tests => golden-tests}/friend-1.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-1.xml (100%) rename test-files/{old-tests => golden-tests}/friend-2.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-2.xml (100%) rename test-files/{old-tests => golden-tests}/friend-3.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-3.xml (100%) rename test-files/{old-tests => golden-tests}/friend-4.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-4.xml (100%) rename test-files/{old-tests => golden-tests}/friend-5.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-5.xml (100%) rename test-files/{old-tests => golden-tests}/friend-6.cpp (100%) rename test-files/{old-tests => golden-tests}/friend-6.xml (100%) rename test-files/{old-tests => golden-tests}/function-parm-decay.cpp (100%) rename test-files/{old-tests => golden-tests}/function-parm-decay.xml (100%) rename test-files/{old-tests => golden-tests}/function-template.cpp (100%) rename test-files/{old-tests => golden-tests}/function-template.xml (100%) rename test-files/{old-tests => golden-tests}/function-tparm-decay.cpp (100%) rename test-files/{old-tests => golden-tests}/function-tparm-decay.xml (100%) rename test-files/{old-tests => golden-tests}/implicit-instantiation-member-ref.cpp (100%) rename test-files/{old-tests => golden-tests}/implicit-instantiation-member-ref.xml (100%) rename test-files/{old-tests => golden-tests}/local-class.cpp (100%) rename test-files/{old-tests => golden-tests}/local-class.xml (100%) rename test-files/{old-tests => golden-tests}/mem-fn.cpp (100%) rename test-files/{old-tests => golden-tests}/mem-fn.xml (100%) rename test-files/{old-tests => golden-tests}/mrdocs.yml (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-1.cpp (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-1.xml (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-2.cpp (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-2.xml (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-3.cpp (100%) rename test-files/{old-tests => golden-tests}/namespace-alias-3.xml (100%) rename test-files/{old-tests => golden-tests}/namespace.cpp (100%) rename test-files/{old-tests => golden-tests}/namespace.xml (100%) rename test-files/{old-tests => golden-tests}/nested-private-template.cpp (100%) rename test-files/{old-tests => golden-tests}/nested-private-template.xml (100%) rename test-files/{old-tests => golden-tests}/no_unique_address.cpp (100%) rename test-files/{old-tests => golden-tests}/no_unique_address.xml (100%) rename test-files/{old-tests => golden-tests}/noreturn.cpp (100%) rename test-files/{old-tests => golden-tests}/noreturn.xml (100%) rename test-files/{old-tests => golden-tests}/ns-variables.cpp (100%) rename test-files/{old-tests => golden-tests}/ns-variables.xml (100%) rename test-files/{old-tests => golden-tests}/out-of-line-record-def.cpp (100%) rename test-files/{old-tests => golden-tests}/out-of-line-record-def.xml (100%) rename test-files/{old-tests => golden-tests}/overloaded-op-1.cpp (100%) rename test-files/{old-tests => golden-tests}/overloaded-op-1.xml (100%) rename test-files/{old-tests => golden-tests}/overloaded-op-2.cpp (100%) rename test-files/{old-tests => golden-tests}/overloaded-op-2.xml (100%) rename test-files/{old-tests => golden-tests}/para-1.cpp (100%) rename test-files/{old-tests => golden-tests}/para-1.xml (100%) rename test-files/{old-tests => golden-tests}/para-2.cpp (100%) rename test-files/{old-tests => golden-tests}/para-2.xml (100%) rename test-files/{old-tests => golden-tests}/param-direction.cpp (100%) rename test-files/{old-tests => golden-tests}/param-direction.xml (100%) rename test-files/{old-tests => golden-tests}/param.cpp (100%) rename test-files/{old-tests => golden-tests}/param.xml (100%) rename test-files/{old-tests => golden-tests}/pre-post.cpp (100%) rename test-files/{old-tests => golden-tests}/pre-post.xml (100%) rename test-files/{old-tests => golden-tests}/record-1.cpp (100%) rename test-files/{old-tests => golden-tests}/record-1.xml (100%) rename test-files/{old-tests => golden-tests}/record-access.cpp (100%) rename test-files/{old-tests => golden-tests}/record-access.xml (100%) rename test-files/{old-tests => golden-tests}/record-data.cpp (100%) rename test-files/{old-tests => golden-tests}/record-data.xml (100%) rename test-files/{old-tests => golden-tests}/record-inheritance.cpp (100%) rename test-files/{old-tests => golden-tests}/record-inheritance.xml (100%) rename test-files/{old-tests => golden-tests}/ref.cpp (100%) rename test-files/{old-tests => golden-tests}/ref.xml (100%) rename test-files/{old-tests => golden-tests}/spec-mem-implicit-instantiation.cpp (100%) rename test-files/{old-tests => golden-tests}/spec-mem-implicit-instantiation.xml (100%) rename test-files/{old-tests => golden-tests}/static-data-def-constexpr.cpp (100%) rename test-files/{old-tests => golden-tests}/static-data-def-constexpr.xml (100%) rename test-files/{old-tests => golden-tests}/static-data-def.cpp (100%) rename test-files/{old-tests => golden-tests}/static-data-def.xml (100%) rename test-files/{old-tests => golden-tests}/static-data-template.cpp (100%) rename test-files/{old-tests => golden-tests}/static-data-template.xml (100%) rename test-files/{old-tests => golden-tests}/temp/c_mct_expl_inline.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/c_mct_expl_inline.xml (100%) rename test-files/{old-tests => golden-tests}/temp/c_mct_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/c_mct_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/c_mft_expl_inline.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/c_mft_expl_inline.xml (100%) rename test-files/{old-tests => golden-tests}/temp/c_mft_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/c_mft_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_expl.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_expl.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mc.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mc.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mc_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mc_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct_expl_inline.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct_expl_inline.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mct_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mf.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mf.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mf_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mf_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft_expl_inline.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft_expl_inline.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft_expl_outside.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ct_mft_expl_outside.xml (100%) rename test-files/{old-tests => golden-tests}/temp/ft_expl.cpp (100%) rename test-files/{old-tests => golden-tests}/temp/ft_expl.xml (100%) rename test-files/{old-tests => golden-tests}/type-resolution.cpp (100%) rename test-files/{old-tests => golden-tests}/type-resolution.xml (100%) rename test-files/{old-tests => golden-tests}/using-1.cpp (100%) rename test-files/{old-tests => golden-tests}/using-1.xml (100%) rename test-files/{old-tests => golden-tests}/using-2.cpp (100%) rename test-files/{old-tests => golden-tests}/using-2.xml (100%) rename test-files/{old-tests => golden-tests}/using-3.cpp (100%) rename test-files/{old-tests => golden-tests}/using-3.xml (100%) rename test-files/{old-tests => golden-tests}/utf-8.cpp (100%) rename test-files/{old-tests => golden-tests}/utf-8.xml (100%) rename test-files/{old-tests => golden-tests}/var-template.cpp (100%) rename test-files/{old-tests => golden-tests}/var-template.xml (100%) rename test-files/{old-tests => golden-tests}/variadic-function.cpp (100%) rename test-files/{old-tests => golden-tests}/variadic-function.xml (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4c356bac..484234a54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -283,17 +283,15 @@ if (MRDOCS_BUILD_TESTS) target_compile_options(mrdocs-test PRIVATE -Wno-covered-switch-default) endif () target_compile_definitions(mrdocs-test PRIVATE -DMRDOCS_TEST_FILES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/test-files") - add_custom_command( - # if we run tests, we need the addons in the right place. - TARGET mrdocs-test - POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy - ${CMAKE_SOURCE_DIR}/share/mrdocs/addons - ${CMAKE_BINARY_DIR}/addons - BYPRODUCTS ${CMAKE_BINARY_DIR}/addons - DEPENDS ${CMAKE_SOURCE_DIR}/share/mrdocs/addons - ) - add_test(NAME mrdocs-test COMMAND mrdocs-test --action test "${PROJECT_SOURCE_DIR}/test-files/old-tests") + add_test(NAME mrdocs-unit-tests COMMAND mrdocs-test --unit=true) + add_test(NAME mrdocs-golden-tests COMMAND mrdocs-test --unit=false --action=test "${PROJECT_SOURCE_DIR}/test-files/golden-tests" --addons="${CMAKE_SOURCE_DIR}/share/mrdocs/addons") + foreach (action IN ITEMS create update) + add_custom_target( + mrdocs-${action}-test-fixtures + COMMAND mrdocs-test --unit=false --action=${action} "${PROJECT_SOURCE_DIR}/test-files/golden-tests" --addons="${CMAKE_SOURCE_DIR}/share/mrdocs/addons" + DEPENDS mrdocs-test + ) + endforeach () #------------------------------------------------- # XML lint diff --git a/src/test/TestArgs.cpp b/src/test/TestArgs.cpp index a7accf186..7f6c6da4a 100644 --- a/src/test/TestArgs.cpp +++ b/src/test/TestArgs.cpp @@ -75,6 +75,11 @@ R"( llvm::cl::Sink, llvm::cl::desc("A list of directories and/or .cpp files to test."), llvm::cl::cat(commonCat)) + +, addons( + "addons", + llvm::cl::desc("The directory with the addons."), + llvm::cl::cat(commonCat)) { } diff --git a/src/test/TestArgs.hpp b/src/test/TestArgs.hpp index 811edf2af..6a9c20288 100644 --- a/src/test/TestArgs.hpp +++ b/src/test/TestArgs.hpp @@ -46,8 +46,9 @@ class TestArgs llvm::cl::opt badOption; llvm::cl::opt unitOption; llvm::cl::list inputPaths; + llvm::cl::opt addons; - // Hide all options which don't belong to us + // Hide all options that don't belong to us void hideForeignOptions(); }; diff --git a/src/test/TestRunner.cpp b/src/test/TestRunner.cpp index dc4b70bbb..00781f236 100644 --- a/src/test/TestRunner.cpp +++ b/src/test/TestRunner.cpp @@ -357,6 +357,14 @@ checkPath( publicSettings.config = configPath; publicSettings.configDir = files::getParentDir(inputPath); publicSettings.configYaml = files::getFileText(publicSettings.config).value(); + if (testArgs.addons.getValue() != "") + { + publicSettings.addons = files::normalizeDir(testArgs.addons.getValue()); + } + else + { + report::warn("No addons directory specified to mrdocs tests"); + } loadConfig(publicSettings, publicSettings.configYaml).value(); auto configFile = loadConfigFile( publicSettings, diff --git a/test-files/old-tests/alias-template.cpp b/test-files/golden-tests/alias-template.cpp similarity index 100% rename from test-files/old-tests/alias-template.cpp rename to test-files/golden-tests/alias-template.cpp diff --git a/test-files/old-tests/alias-template.xml b/test-files/golden-tests/alias-template.xml similarity index 100% rename from test-files/old-tests/alias-template.xml rename to test-files/golden-tests/alias-template.xml diff --git a/test-files/old-tests/attributes_1.cpp b/test-files/golden-tests/attributes_1.cpp similarity index 100% rename from test-files/old-tests/attributes_1.cpp rename to test-files/golden-tests/attributes_1.cpp diff --git a/test-files/old-tests/attributes_1.xml b/test-files/golden-tests/attributes_1.xml similarity index 100% rename from test-files/old-tests/attributes_1.xml rename to test-files/golden-tests/attributes_1.xml diff --git a/test-files/old-tests/brief-1.cpp b/test-files/golden-tests/brief-1.cpp similarity index 100% rename from test-files/old-tests/brief-1.cpp rename to test-files/golden-tests/brief-1.cpp diff --git a/test-files/old-tests/brief-1.xml b/test-files/golden-tests/brief-1.xml similarity index 100% rename from test-files/old-tests/brief-1.xml rename to test-files/golden-tests/brief-1.xml diff --git a/test-files/old-tests/brief-2.cpp b/test-files/golden-tests/brief-2.cpp similarity index 100% rename from test-files/old-tests/brief-2.cpp rename to test-files/golden-tests/brief-2.cpp diff --git a/test-files/old-tests/brief-2.xml b/test-files/golden-tests/brief-2.xml similarity index 100% rename from test-files/old-tests/brief-2.xml rename to test-files/golden-tests/brief-2.xml diff --git a/test-files/old-tests/canonical_1.cpp b/test-files/golden-tests/canonical_1.cpp similarity index 100% rename from test-files/old-tests/canonical_1.cpp rename to test-files/golden-tests/canonical_1.cpp diff --git a/test-files/old-tests/canonical_1.xml b/test-files/golden-tests/canonical_1.xml similarity index 100% rename from test-files/old-tests/canonical_1.xml rename to test-files/golden-tests/canonical_1.xml diff --git a/test-files/old-tests/class-template-partial-spec.cpp b/test-files/golden-tests/class-template-partial-spec.cpp similarity index 100% rename from test-files/old-tests/class-template-partial-spec.cpp rename to test-files/golden-tests/class-template-partial-spec.cpp diff --git a/test-files/old-tests/class-template-partial-spec.xml b/test-files/golden-tests/class-template-partial-spec.xml similarity index 100% rename from test-files/old-tests/class-template-partial-spec.xml rename to test-files/golden-tests/class-template-partial-spec.xml diff --git a/test-files/old-tests/class-template-spec.cpp b/test-files/golden-tests/class-template-spec.cpp similarity index 100% rename from test-files/old-tests/class-template-spec.cpp rename to test-files/golden-tests/class-template-spec.cpp diff --git a/test-files/old-tests/class-template-spec.xml b/test-files/golden-tests/class-template-spec.xml similarity index 100% rename from test-files/old-tests/class-template-spec.xml rename to test-files/golden-tests/class-template-spec.xml diff --git a/test-files/old-tests/class-template-specializations-1.cpp b/test-files/golden-tests/class-template-specializations-1.cpp similarity index 100% rename from test-files/old-tests/class-template-specializations-1.cpp rename to test-files/golden-tests/class-template-specializations-1.cpp diff --git a/test-files/old-tests/class-template-specializations-1.xml b/test-files/golden-tests/class-template-specializations-1.xml similarity index 100% rename from test-files/old-tests/class-template-specializations-1.xml rename to test-files/golden-tests/class-template-specializations-1.xml diff --git a/test-files/old-tests/class-template-specializations-2.cpp b/test-files/golden-tests/class-template-specializations-2.cpp similarity index 100% rename from test-files/old-tests/class-template-specializations-2.cpp rename to test-files/golden-tests/class-template-specializations-2.cpp diff --git a/test-files/old-tests/class-template-specializations-2.xml b/test-files/golden-tests/class-template-specializations-2.xml similarity index 100% rename from test-files/old-tests/class-template-specializations-2.xml rename to test-files/golden-tests/class-template-specializations-2.xml diff --git a/test-files/old-tests/class-template-specializations-3.cpp b/test-files/golden-tests/class-template-specializations-3.cpp similarity index 100% rename from test-files/old-tests/class-template-specializations-3.cpp rename to test-files/golden-tests/class-template-specializations-3.cpp diff --git a/test-files/old-tests/class-template-specializations-3.xml b/test-files/golden-tests/class-template-specializations-3.xml similarity index 100% rename from test-files/old-tests/class-template-specializations-3.xml rename to test-files/golden-tests/class-template-specializations-3.xml diff --git a/test-files/old-tests/class-template.cpp b/test-files/golden-tests/class-template.cpp similarity index 100% rename from test-files/old-tests/class-template.cpp rename to test-files/golden-tests/class-template.cpp diff --git a/test-files/old-tests/class-template.xml b/test-files/golden-tests/class-template.xml similarity index 100% rename from test-files/old-tests/class-template.xml rename to test-files/golden-tests/class-template.xml diff --git a/test-files/old-tests/commands.cpp b/test-files/golden-tests/commands.cpp similarity index 100% rename from test-files/old-tests/commands.cpp rename to test-files/golden-tests/commands.cpp diff --git a/test-files/old-tests/commands.xml b/test-files/golden-tests/commands.xml similarity index 100% rename from test-files/old-tests/commands.xml rename to test-files/golden-tests/commands.xml diff --git a/test-files/old-tests/dependency-propagation.cpp b/test-files/golden-tests/dependency-propagation.cpp similarity index 100% rename from test-files/old-tests/dependency-propagation.cpp rename to test-files/golden-tests/dependency-propagation.cpp diff --git a/test-files/old-tests/dependency-propagation.xml b/test-files/golden-tests/dependency-propagation.xml similarity index 100% rename from test-files/old-tests/dependency-propagation.xml rename to test-files/golden-tests/dependency-propagation.xml diff --git a/test-files/old-tests/dependency-propagation.yml b/test-files/golden-tests/dependency-propagation.yml similarity index 100% rename from test-files/old-tests/dependency-propagation.yml rename to test-files/golden-tests/dependency-propagation.yml diff --git a/test-files/old-tests/duplicate-jdoc.cpp b/test-files/golden-tests/duplicate-jdoc.cpp similarity index 100% rename from test-files/old-tests/duplicate-jdoc.cpp rename to test-files/golden-tests/duplicate-jdoc.cpp diff --git a/test-files/old-tests/duplicate-jdoc.xml b/test-files/golden-tests/duplicate-jdoc.xml similarity index 100% rename from test-files/old-tests/duplicate-jdoc.xml rename to test-files/golden-tests/duplicate-jdoc.xml diff --git a/test-files/old-tests/enum.cpp b/test-files/golden-tests/enum.cpp similarity index 100% rename from test-files/old-tests/enum.cpp rename to test-files/golden-tests/enum.cpp diff --git a/test-files/old-tests/enum.xml b/test-files/golden-tests/enum.xml similarity index 100% rename from test-files/old-tests/enum.xml rename to test-files/golden-tests/enum.xml diff --git a/test-files/old-tests/explicit-conv-operator.cpp b/test-files/golden-tests/explicit-conv-operator.cpp similarity index 100% rename from test-files/old-tests/explicit-conv-operator.cpp rename to test-files/golden-tests/explicit-conv-operator.cpp diff --git a/test-files/old-tests/explicit-conv-operator.xml b/test-files/golden-tests/explicit-conv-operator.xml similarity index 100% rename from test-files/old-tests/explicit-conv-operator.xml rename to test-files/golden-tests/explicit-conv-operator.xml diff --git a/test-files/old-tests/explicit-ctor.cpp b/test-files/golden-tests/explicit-ctor.cpp similarity index 100% rename from test-files/old-tests/explicit-ctor.cpp rename to test-files/golden-tests/explicit-ctor.cpp diff --git a/test-files/old-tests/explicit-ctor.xml b/test-files/golden-tests/explicit-ctor.xml similarity index 100% rename from test-files/old-tests/explicit-ctor.xml rename to test-files/golden-tests/explicit-ctor.xml diff --git a/test-files/old-tests/explicit-deduct-guide.cpp b/test-files/golden-tests/explicit-deduct-guide.cpp similarity index 100% rename from test-files/old-tests/explicit-deduct-guide.cpp rename to test-files/golden-tests/explicit-deduct-guide.cpp diff --git a/test-files/old-tests/explicit-deduct-guide.xml b/test-files/golden-tests/explicit-deduct-guide.xml similarity index 100% rename from test-files/old-tests/explicit-deduct-guide.xml rename to test-files/golden-tests/explicit-deduct-guide.xml diff --git a/test-files/old-tests/explicit-object-parameter.cpp b/test-files/golden-tests/explicit-object-parameter.cpp similarity index 100% rename from test-files/old-tests/explicit-object-parameter.cpp rename to test-files/golden-tests/explicit-object-parameter.cpp diff --git a/test-files/old-tests/explicit-object-parameter.xml b/test-files/golden-tests/explicit-object-parameter.xml similarity index 100% rename from test-files/old-tests/explicit-object-parameter.xml rename to test-files/golden-tests/explicit-object-parameter.xml diff --git a/test-files/old-tests/filters/blacklist_0.cpp b/test-files/golden-tests/filters/blacklist_0.cpp similarity index 100% rename from test-files/old-tests/filters/blacklist_0.cpp rename to test-files/golden-tests/filters/blacklist_0.cpp diff --git a/test-files/old-tests/filters/blacklist_0.xml b/test-files/golden-tests/filters/blacklist_0.xml similarity index 100% rename from test-files/old-tests/filters/blacklist_0.xml rename to test-files/golden-tests/filters/blacklist_0.xml diff --git a/test-files/old-tests/filters/blacklist_0.yml b/test-files/golden-tests/filters/blacklist_0.yml similarity index 100% rename from test-files/old-tests/filters/blacklist_0.yml rename to test-files/golden-tests/filters/blacklist_0.yml diff --git a/test-files/old-tests/filters/blacklist_test.cpp b/test-files/golden-tests/filters/blacklist_test.cpp similarity index 100% rename from test-files/old-tests/filters/blacklist_test.cpp rename to test-files/golden-tests/filters/blacklist_test.cpp diff --git a/test-files/old-tests/filters/blacklist_test.xml b/test-files/golden-tests/filters/blacklist_test.xml similarity index 100% rename from test-files/old-tests/filters/blacklist_test.xml rename to test-files/golden-tests/filters/blacklist_test.xml diff --git a/test-files/old-tests/filters/blacklist_test.yml b/test-files/golden-tests/filters/blacklist_test.yml similarity index 100% rename from test-files/old-tests/filters/blacklist_test.yml rename to test-files/golden-tests/filters/blacklist_test.yml diff --git a/test-files/old-tests/filters/filters.cpp b/test-files/golden-tests/filters/filters.cpp similarity index 100% rename from test-files/old-tests/filters/filters.cpp rename to test-files/golden-tests/filters/filters.cpp diff --git a/test-files/old-tests/filters/filters.xml b/test-files/golden-tests/filters/filters.xml similarity index 100% rename from test-files/old-tests/filters/filters.xml rename to test-files/golden-tests/filters/filters.xml diff --git a/test-files/old-tests/filters/filters.yml b/test-files/golden-tests/filters/filters.yml similarity index 100% rename from test-files/old-tests/filters/filters.yml rename to test-files/golden-tests/filters/filters.yml diff --git a/test-files/old-tests/filters/whitelist_0.cpp b/test-files/golden-tests/filters/whitelist_0.cpp similarity index 100% rename from test-files/old-tests/filters/whitelist_0.cpp rename to test-files/golden-tests/filters/whitelist_0.cpp diff --git a/test-files/old-tests/filters/whitelist_0.xml b/test-files/golden-tests/filters/whitelist_0.xml similarity index 100% rename from test-files/old-tests/filters/whitelist_0.xml rename to test-files/golden-tests/filters/whitelist_0.xml diff --git a/test-files/old-tests/filters/whitelist_0.yml b/test-files/golden-tests/filters/whitelist_0.yml similarity index 100% rename from test-files/old-tests/filters/whitelist_0.yml rename to test-files/golden-tests/filters/whitelist_0.yml diff --git a/test-files/old-tests/filters/whitelist_test.cpp b/test-files/golden-tests/filters/whitelist_test.cpp similarity index 100% rename from test-files/old-tests/filters/whitelist_test.cpp rename to test-files/golden-tests/filters/whitelist_test.cpp diff --git a/test-files/old-tests/filters/whitelist_test.xml b/test-files/golden-tests/filters/whitelist_test.xml similarity index 100% rename from test-files/old-tests/filters/whitelist_test.xml rename to test-files/golden-tests/filters/whitelist_test.xml diff --git a/test-files/old-tests/filters/whitelist_test.yml b/test-files/golden-tests/filters/whitelist_test.yml similarity index 100% rename from test-files/old-tests/filters/whitelist_test.yml rename to test-files/golden-tests/filters/whitelist_test.yml diff --git a/test-files/old-tests/friend-1.cpp b/test-files/golden-tests/friend-1.cpp similarity index 100% rename from test-files/old-tests/friend-1.cpp rename to test-files/golden-tests/friend-1.cpp diff --git a/test-files/old-tests/friend-1.xml b/test-files/golden-tests/friend-1.xml similarity index 100% rename from test-files/old-tests/friend-1.xml rename to test-files/golden-tests/friend-1.xml diff --git a/test-files/old-tests/friend-2.cpp b/test-files/golden-tests/friend-2.cpp similarity index 100% rename from test-files/old-tests/friend-2.cpp rename to test-files/golden-tests/friend-2.cpp diff --git a/test-files/old-tests/friend-2.xml b/test-files/golden-tests/friend-2.xml similarity index 100% rename from test-files/old-tests/friend-2.xml rename to test-files/golden-tests/friend-2.xml diff --git a/test-files/old-tests/friend-3.cpp b/test-files/golden-tests/friend-3.cpp similarity index 100% rename from test-files/old-tests/friend-3.cpp rename to test-files/golden-tests/friend-3.cpp diff --git a/test-files/old-tests/friend-3.xml b/test-files/golden-tests/friend-3.xml similarity index 100% rename from test-files/old-tests/friend-3.xml rename to test-files/golden-tests/friend-3.xml diff --git a/test-files/old-tests/friend-4.cpp b/test-files/golden-tests/friend-4.cpp similarity index 100% rename from test-files/old-tests/friend-4.cpp rename to test-files/golden-tests/friend-4.cpp diff --git a/test-files/old-tests/friend-4.xml b/test-files/golden-tests/friend-4.xml similarity index 100% rename from test-files/old-tests/friend-4.xml rename to test-files/golden-tests/friend-4.xml diff --git a/test-files/old-tests/friend-5.cpp b/test-files/golden-tests/friend-5.cpp similarity index 100% rename from test-files/old-tests/friend-5.cpp rename to test-files/golden-tests/friend-5.cpp diff --git a/test-files/old-tests/friend-5.xml b/test-files/golden-tests/friend-5.xml similarity index 100% rename from test-files/old-tests/friend-5.xml rename to test-files/golden-tests/friend-5.xml diff --git a/test-files/old-tests/friend-6.cpp b/test-files/golden-tests/friend-6.cpp similarity index 100% rename from test-files/old-tests/friend-6.cpp rename to test-files/golden-tests/friend-6.cpp diff --git a/test-files/old-tests/friend-6.xml b/test-files/golden-tests/friend-6.xml similarity index 100% rename from test-files/old-tests/friend-6.xml rename to test-files/golden-tests/friend-6.xml diff --git a/test-files/old-tests/function-parm-decay.cpp b/test-files/golden-tests/function-parm-decay.cpp similarity index 100% rename from test-files/old-tests/function-parm-decay.cpp rename to test-files/golden-tests/function-parm-decay.cpp diff --git a/test-files/old-tests/function-parm-decay.xml b/test-files/golden-tests/function-parm-decay.xml similarity index 100% rename from test-files/old-tests/function-parm-decay.xml rename to test-files/golden-tests/function-parm-decay.xml diff --git a/test-files/old-tests/function-template.cpp b/test-files/golden-tests/function-template.cpp similarity index 100% rename from test-files/old-tests/function-template.cpp rename to test-files/golden-tests/function-template.cpp diff --git a/test-files/old-tests/function-template.xml b/test-files/golden-tests/function-template.xml similarity index 100% rename from test-files/old-tests/function-template.xml rename to test-files/golden-tests/function-template.xml diff --git a/test-files/old-tests/function-tparm-decay.cpp b/test-files/golden-tests/function-tparm-decay.cpp similarity index 100% rename from test-files/old-tests/function-tparm-decay.cpp rename to test-files/golden-tests/function-tparm-decay.cpp diff --git a/test-files/old-tests/function-tparm-decay.xml b/test-files/golden-tests/function-tparm-decay.xml similarity index 100% rename from test-files/old-tests/function-tparm-decay.xml rename to test-files/golden-tests/function-tparm-decay.xml diff --git a/test-files/old-tests/implicit-instantiation-member-ref.cpp b/test-files/golden-tests/implicit-instantiation-member-ref.cpp similarity index 100% rename from test-files/old-tests/implicit-instantiation-member-ref.cpp rename to test-files/golden-tests/implicit-instantiation-member-ref.cpp diff --git a/test-files/old-tests/implicit-instantiation-member-ref.xml b/test-files/golden-tests/implicit-instantiation-member-ref.xml similarity index 100% rename from test-files/old-tests/implicit-instantiation-member-ref.xml rename to test-files/golden-tests/implicit-instantiation-member-ref.xml diff --git a/test-files/old-tests/local-class.cpp b/test-files/golden-tests/local-class.cpp similarity index 100% rename from test-files/old-tests/local-class.cpp rename to test-files/golden-tests/local-class.cpp diff --git a/test-files/old-tests/local-class.xml b/test-files/golden-tests/local-class.xml similarity index 100% rename from test-files/old-tests/local-class.xml rename to test-files/golden-tests/local-class.xml diff --git a/test-files/old-tests/mem-fn.cpp b/test-files/golden-tests/mem-fn.cpp similarity index 100% rename from test-files/old-tests/mem-fn.cpp rename to test-files/golden-tests/mem-fn.cpp diff --git a/test-files/old-tests/mem-fn.xml b/test-files/golden-tests/mem-fn.xml similarity index 100% rename from test-files/old-tests/mem-fn.xml rename to test-files/golden-tests/mem-fn.xml diff --git a/test-files/old-tests/mrdocs.yml b/test-files/golden-tests/mrdocs.yml similarity index 100% rename from test-files/old-tests/mrdocs.yml rename to test-files/golden-tests/mrdocs.yml diff --git a/test-files/old-tests/namespace-alias-1.cpp b/test-files/golden-tests/namespace-alias-1.cpp similarity index 100% rename from test-files/old-tests/namespace-alias-1.cpp rename to test-files/golden-tests/namespace-alias-1.cpp diff --git a/test-files/old-tests/namespace-alias-1.xml b/test-files/golden-tests/namespace-alias-1.xml similarity index 100% rename from test-files/old-tests/namespace-alias-1.xml rename to test-files/golden-tests/namespace-alias-1.xml diff --git a/test-files/old-tests/namespace-alias-2.cpp b/test-files/golden-tests/namespace-alias-2.cpp similarity index 100% rename from test-files/old-tests/namespace-alias-2.cpp rename to test-files/golden-tests/namespace-alias-2.cpp diff --git a/test-files/old-tests/namespace-alias-2.xml b/test-files/golden-tests/namespace-alias-2.xml similarity index 100% rename from test-files/old-tests/namespace-alias-2.xml rename to test-files/golden-tests/namespace-alias-2.xml diff --git a/test-files/old-tests/namespace-alias-3.cpp b/test-files/golden-tests/namespace-alias-3.cpp similarity index 100% rename from test-files/old-tests/namespace-alias-3.cpp rename to test-files/golden-tests/namespace-alias-3.cpp diff --git a/test-files/old-tests/namespace-alias-3.xml b/test-files/golden-tests/namespace-alias-3.xml similarity index 100% rename from test-files/old-tests/namespace-alias-3.xml rename to test-files/golden-tests/namespace-alias-3.xml diff --git a/test-files/old-tests/namespace.cpp b/test-files/golden-tests/namespace.cpp similarity index 100% rename from test-files/old-tests/namespace.cpp rename to test-files/golden-tests/namespace.cpp diff --git a/test-files/old-tests/namespace.xml b/test-files/golden-tests/namespace.xml similarity index 100% rename from test-files/old-tests/namespace.xml rename to test-files/golden-tests/namespace.xml diff --git a/test-files/old-tests/nested-private-template.cpp b/test-files/golden-tests/nested-private-template.cpp similarity index 100% rename from test-files/old-tests/nested-private-template.cpp rename to test-files/golden-tests/nested-private-template.cpp diff --git a/test-files/old-tests/nested-private-template.xml b/test-files/golden-tests/nested-private-template.xml similarity index 100% rename from test-files/old-tests/nested-private-template.xml rename to test-files/golden-tests/nested-private-template.xml diff --git a/test-files/old-tests/no_unique_address.cpp b/test-files/golden-tests/no_unique_address.cpp similarity index 100% rename from test-files/old-tests/no_unique_address.cpp rename to test-files/golden-tests/no_unique_address.cpp diff --git a/test-files/old-tests/no_unique_address.xml b/test-files/golden-tests/no_unique_address.xml similarity index 100% rename from test-files/old-tests/no_unique_address.xml rename to test-files/golden-tests/no_unique_address.xml diff --git a/test-files/old-tests/noreturn.cpp b/test-files/golden-tests/noreturn.cpp similarity index 100% rename from test-files/old-tests/noreturn.cpp rename to test-files/golden-tests/noreturn.cpp diff --git a/test-files/old-tests/noreturn.xml b/test-files/golden-tests/noreturn.xml similarity index 100% rename from test-files/old-tests/noreturn.xml rename to test-files/golden-tests/noreturn.xml diff --git a/test-files/old-tests/ns-variables.cpp b/test-files/golden-tests/ns-variables.cpp similarity index 100% rename from test-files/old-tests/ns-variables.cpp rename to test-files/golden-tests/ns-variables.cpp diff --git a/test-files/old-tests/ns-variables.xml b/test-files/golden-tests/ns-variables.xml similarity index 100% rename from test-files/old-tests/ns-variables.xml rename to test-files/golden-tests/ns-variables.xml diff --git a/test-files/old-tests/out-of-line-record-def.cpp b/test-files/golden-tests/out-of-line-record-def.cpp similarity index 100% rename from test-files/old-tests/out-of-line-record-def.cpp rename to test-files/golden-tests/out-of-line-record-def.cpp diff --git a/test-files/old-tests/out-of-line-record-def.xml b/test-files/golden-tests/out-of-line-record-def.xml similarity index 100% rename from test-files/old-tests/out-of-line-record-def.xml rename to test-files/golden-tests/out-of-line-record-def.xml diff --git a/test-files/old-tests/overloaded-op-1.cpp b/test-files/golden-tests/overloaded-op-1.cpp similarity index 100% rename from test-files/old-tests/overloaded-op-1.cpp rename to test-files/golden-tests/overloaded-op-1.cpp diff --git a/test-files/old-tests/overloaded-op-1.xml b/test-files/golden-tests/overloaded-op-1.xml similarity index 100% rename from test-files/old-tests/overloaded-op-1.xml rename to test-files/golden-tests/overloaded-op-1.xml diff --git a/test-files/old-tests/overloaded-op-2.cpp b/test-files/golden-tests/overloaded-op-2.cpp similarity index 100% rename from test-files/old-tests/overloaded-op-2.cpp rename to test-files/golden-tests/overloaded-op-2.cpp diff --git a/test-files/old-tests/overloaded-op-2.xml b/test-files/golden-tests/overloaded-op-2.xml similarity index 100% rename from test-files/old-tests/overloaded-op-2.xml rename to test-files/golden-tests/overloaded-op-2.xml diff --git a/test-files/old-tests/para-1.cpp b/test-files/golden-tests/para-1.cpp similarity index 100% rename from test-files/old-tests/para-1.cpp rename to test-files/golden-tests/para-1.cpp diff --git a/test-files/old-tests/para-1.xml b/test-files/golden-tests/para-1.xml similarity index 100% rename from test-files/old-tests/para-1.xml rename to test-files/golden-tests/para-1.xml diff --git a/test-files/old-tests/para-2.cpp b/test-files/golden-tests/para-2.cpp similarity index 100% rename from test-files/old-tests/para-2.cpp rename to test-files/golden-tests/para-2.cpp diff --git a/test-files/old-tests/para-2.xml b/test-files/golden-tests/para-2.xml similarity index 100% rename from test-files/old-tests/para-2.xml rename to test-files/golden-tests/para-2.xml diff --git a/test-files/old-tests/param-direction.cpp b/test-files/golden-tests/param-direction.cpp similarity index 100% rename from test-files/old-tests/param-direction.cpp rename to test-files/golden-tests/param-direction.cpp diff --git a/test-files/old-tests/param-direction.xml b/test-files/golden-tests/param-direction.xml similarity index 100% rename from test-files/old-tests/param-direction.xml rename to test-files/golden-tests/param-direction.xml diff --git a/test-files/old-tests/param.cpp b/test-files/golden-tests/param.cpp similarity index 100% rename from test-files/old-tests/param.cpp rename to test-files/golden-tests/param.cpp diff --git a/test-files/old-tests/param.xml b/test-files/golden-tests/param.xml similarity index 100% rename from test-files/old-tests/param.xml rename to test-files/golden-tests/param.xml diff --git a/test-files/old-tests/pre-post.cpp b/test-files/golden-tests/pre-post.cpp similarity index 100% rename from test-files/old-tests/pre-post.cpp rename to test-files/golden-tests/pre-post.cpp diff --git a/test-files/old-tests/pre-post.xml b/test-files/golden-tests/pre-post.xml similarity index 100% rename from test-files/old-tests/pre-post.xml rename to test-files/golden-tests/pre-post.xml diff --git a/test-files/old-tests/record-1.cpp b/test-files/golden-tests/record-1.cpp similarity index 100% rename from test-files/old-tests/record-1.cpp rename to test-files/golden-tests/record-1.cpp diff --git a/test-files/old-tests/record-1.xml b/test-files/golden-tests/record-1.xml similarity index 100% rename from test-files/old-tests/record-1.xml rename to test-files/golden-tests/record-1.xml diff --git a/test-files/old-tests/record-access.cpp b/test-files/golden-tests/record-access.cpp similarity index 100% rename from test-files/old-tests/record-access.cpp rename to test-files/golden-tests/record-access.cpp diff --git a/test-files/old-tests/record-access.xml b/test-files/golden-tests/record-access.xml similarity index 100% rename from test-files/old-tests/record-access.xml rename to test-files/golden-tests/record-access.xml diff --git a/test-files/old-tests/record-data.cpp b/test-files/golden-tests/record-data.cpp similarity index 100% rename from test-files/old-tests/record-data.cpp rename to test-files/golden-tests/record-data.cpp diff --git a/test-files/old-tests/record-data.xml b/test-files/golden-tests/record-data.xml similarity index 100% rename from test-files/old-tests/record-data.xml rename to test-files/golden-tests/record-data.xml diff --git a/test-files/old-tests/record-inheritance.cpp b/test-files/golden-tests/record-inheritance.cpp similarity index 100% rename from test-files/old-tests/record-inheritance.cpp rename to test-files/golden-tests/record-inheritance.cpp diff --git a/test-files/old-tests/record-inheritance.xml b/test-files/golden-tests/record-inheritance.xml similarity index 100% rename from test-files/old-tests/record-inheritance.xml rename to test-files/golden-tests/record-inheritance.xml diff --git a/test-files/old-tests/ref.cpp b/test-files/golden-tests/ref.cpp similarity index 100% rename from test-files/old-tests/ref.cpp rename to test-files/golden-tests/ref.cpp diff --git a/test-files/old-tests/ref.xml b/test-files/golden-tests/ref.xml similarity index 100% rename from test-files/old-tests/ref.xml rename to test-files/golden-tests/ref.xml diff --git a/test-files/old-tests/spec-mem-implicit-instantiation.cpp b/test-files/golden-tests/spec-mem-implicit-instantiation.cpp similarity index 100% rename from test-files/old-tests/spec-mem-implicit-instantiation.cpp rename to test-files/golden-tests/spec-mem-implicit-instantiation.cpp diff --git a/test-files/old-tests/spec-mem-implicit-instantiation.xml b/test-files/golden-tests/spec-mem-implicit-instantiation.xml similarity index 100% rename from test-files/old-tests/spec-mem-implicit-instantiation.xml rename to test-files/golden-tests/spec-mem-implicit-instantiation.xml diff --git a/test-files/old-tests/static-data-def-constexpr.cpp b/test-files/golden-tests/static-data-def-constexpr.cpp similarity index 100% rename from test-files/old-tests/static-data-def-constexpr.cpp rename to test-files/golden-tests/static-data-def-constexpr.cpp diff --git a/test-files/old-tests/static-data-def-constexpr.xml b/test-files/golden-tests/static-data-def-constexpr.xml similarity index 100% rename from test-files/old-tests/static-data-def-constexpr.xml rename to test-files/golden-tests/static-data-def-constexpr.xml diff --git a/test-files/old-tests/static-data-def.cpp b/test-files/golden-tests/static-data-def.cpp similarity index 100% rename from test-files/old-tests/static-data-def.cpp rename to test-files/golden-tests/static-data-def.cpp diff --git a/test-files/old-tests/static-data-def.xml b/test-files/golden-tests/static-data-def.xml similarity index 100% rename from test-files/old-tests/static-data-def.xml rename to test-files/golden-tests/static-data-def.xml diff --git a/test-files/old-tests/static-data-template.cpp b/test-files/golden-tests/static-data-template.cpp similarity index 100% rename from test-files/old-tests/static-data-template.cpp rename to test-files/golden-tests/static-data-template.cpp diff --git a/test-files/old-tests/static-data-template.xml b/test-files/golden-tests/static-data-template.xml similarity index 100% rename from test-files/old-tests/static-data-template.xml rename to test-files/golden-tests/static-data-template.xml diff --git a/test-files/old-tests/temp/c_mct_expl_inline.cpp b/test-files/golden-tests/temp/c_mct_expl_inline.cpp similarity index 100% rename from test-files/old-tests/temp/c_mct_expl_inline.cpp rename to test-files/golden-tests/temp/c_mct_expl_inline.cpp diff --git a/test-files/old-tests/temp/c_mct_expl_inline.xml b/test-files/golden-tests/temp/c_mct_expl_inline.xml similarity index 100% rename from test-files/old-tests/temp/c_mct_expl_inline.xml rename to test-files/golden-tests/temp/c_mct_expl_inline.xml diff --git a/test-files/old-tests/temp/c_mct_expl_outside.cpp b/test-files/golden-tests/temp/c_mct_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/c_mct_expl_outside.cpp rename to test-files/golden-tests/temp/c_mct_expl_outside.cpp diff --git a/test-files/old-tests/temp/c_mct_expl_outside.xml b/test-files/golden-tests/temp/c_mct_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/c_mct_expl_outside.xml rename to test-files/golden-tests/temp/c_mct_expl_outside.xml diff --git a/test-files/old-tests/temp/c_mft_expl_inline.cpp b/test-files/golden-tests/temp/c_mft_expl_inline.cpp similarity index 100% rename from test-files/old-tests/temp/c_mft_expl_inline.cpp rename to test-files/golden-tests/temp/c_mft_expl_inline.cpp diff --git a/test-files/old-tests/temp/c_mft_expl_inline.xml b/test-files/golden-tests/temp/c_mft_expl_inline.xml similarity index 100% rename from test-files/old-tests/temp/c_mft_expl_inline.xml rename to test-files/golden-tests/temp/c_mft_expl_inline.xml diff --git a/test-files/old-tests/temp/c_mft_expl_outside.cpp b/test-files/golden-tests/temp/c_mft_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/c_mft_expl_outside.cpp rename to test-files/golden-tests/temp/c_mft_expl_outside.cpp diff --git a/test-files/old-tests/temp/c_mft_expl_outside.xml b/test-files/golden-tests/temp/c_mft_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/c_mft_expl_outside.xml rename to test-files/golden-tests/temp/c_mft_expl_outside.xml diff --git a/test-files/old-tests/temp/ct_expl.cpp b/test-files/golden-tests/temp/ct_expl.cpp similarity index 100% rename from test-files/old-tests/temp/ct_expl.cpp rename to test-files/golden-tests/temp/ct_expl.cpp diff --git a/test-files/old-tests/temp/ct_expl.xml b/test-files/golden-tests/temp/ct_expl.xml similarity index 100% rename from test-files/old-tests/temp/ct_expl.xml rename to test-files/golden-tests/temp/ct_expl.xml diff --git a/test-files/old-tests/temp/ct_mc.cpp b/test-files/golden-tests/temp/ct_mc.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mc.cpp rename to test-files/golden-tests/temp/ct_mc.cpp diff --git a/test-files/old-tests/temp/ct_mc.xml b/test-files/golden-tests/temp/ct_mc.xml similarity index 100% rename from test-files/old-tests/temp/ct_mc.xml rename to test-files/golden-tests/temp/ct_mc.xml diff --git a/test-files/old-tests/temp/ct_mc_expl_outside.cpp b/test-files/golden-tests/temp/ct_mc_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mc_expl_outside.cpp rename to test-files/golden-tests/temp/ct_mc_expl_outside.cpp diff --git a/test-files/old-tests/temp/ct_mc_expl_outside.xml b/test-files/golden-tests/temp/ct_mc_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/ct_mc_expl_outside.xml rename to test-files/golden-tests/temp/ct_mc_expl_outside.xml diff --git a/test-files/old-tests/temp/ct_mct.cpp b/test-files/golden-tests/temp/ct_mct.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mct.cpp rename to test-files/golden-tests/temp/ct_mct.cpp diff --git a/test-files/old-tests/temp/ct_mct.xml b/test-files/golden-tests/temp/ct_mct.xml similarity index 100% rename from test-files/old-tests/temp/ct_mct.xml rename to test-files/golden-tests/temp/ct_mct.xml diff --git a/test-files/old-tests/temp/ct_mct_expl_inline.cpp b/test-files/golden-tests/temp/ct_mct_expl_inline.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mct_expl_inline.cpp rename to test-files/golden-tests/temp/ct_mct_expl_inline.cpp diff --git a/test-files/old-tests/temp/ct_mct_expl_inline.xml b/test-files/golden-tests/temp/ct_mct_expl_inline.xml similarity index 100% rename from test-files/old-tests/temp/ct_mct_expl_inline.xml rename to test-files/golden-tests/temp/ct_mct_expl_inline.xml diff --git a/test-files/old-tests/temp/ct_mct_expl_outside.cpp b/test-files/golden-tests/temp/ct_mct_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mct_expl_outside.cpp rename to test-files/golden-tests/temp/ct_mct_expl_outside.cpp diff --git a/test-files/old-tests/temp/ct_mct_expl_outside.xml b/test-files/golden-tests/temp/ct_mct_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/ct_mct_expl_outside.xml rename to test-files/golden-tests/temp/ct_mct_expl_outside.xml diff --git a/test-files/old-tests/temp/ct_mf.cpp b/test-files/golden-tests/temp/ct_mf.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mf.cpp rename to test-files/golden-tests/temp/ct_mf.cpp diff --git a/test-files/old-tests/temp/ct_mf.xml b/test-files/golden-tests/temp/ct_mf.xml similarity index 100% rename from test-files/old-tests/temp/ct_mf.xml rename to test-files/golden-tests/temp/ct_mf.xml diff --git a/test-files/old-tests/temp/ct_mf_expl_outside.cpp b/test-files/golden-tests/temp/ct_mf_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mf_expl_outside.cpp rename to test-files/golden-tests/temp/ct_mf_expl_outside.cpp diff --git a/test-files/old-tests/temp/ct_mf_expl_outside.xml b/test-files/golden-tests/temp/ct_mf_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/ct_mf_expl_outside.xml rename to test-files/golden-tests/temp/ct_mf_expl_outside.xml diff --git a/test-files/old-tests/temp/ct_mft.cpp b/test-files/golden-tests/temp/ct_mft.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mft.cpp rename to test-files/golden-tests/temp/ct_mft.cpp diff --git a/test-files/old-tests/temp/ct_mft.xml b/test-files/golden-tests/temp/ct_mft.xml similarity index 100% rename from test-files/old-tests/temp/ct_mft.xml rename to test-files/golden-tests/temp/ct_mft.xml diff --git a/test-files/old-tests/temp/ct_mft_expl_inline.cpp b/test-files/golden-tests/temp/ct_mft_expl_inline.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mft_expl_inline.cpp rename to test-files/golden-tests/temp/ct_mft_expl_inline.cpp diff --git a/test-files/old-tests/temp/ct_mft_expl_inline.xml b/test-files/golden-tests/temp/ct_mft_expl_inline.xml similarity index 100% rename from test-files/old-tests/temp/ct_mft_expl_inline.xml rename to test-files/golden-tests/temp/ct_mft_expl_inline.xml diff --git a/test-files/old-tests/temp/ct_mft_expl_outside.cpp b/test-files/golden-tests/temp/ct_mft_expl_outside.cpp similarity index 100% rename from test-files/old-tests/temp/ct_mft_expl_outside.cpp rename to test-files/golden-tests/temp/ct_mft_expl_outside.cpp diff --git a/test-files/old-tests/temp/ct_mft_expl_outside.xml b/test-files/golden-tests/temp/ct_mft_expl_outside.xml similarity index 100% rename from test-files/old-tests/temp/ct_mft_expl_outside.xml rename to test-files/golden-tests/temp/ct_mft_expl_outside.xml diff --git a/test-files/old-tests/temp/ft_expl.cpp b/test-files/golden-tests/temp/ft_expl.cpp similarity index 100% rename from test-files/old-tests/temp/ft_expl.cpp rename to test-files/golden-tests/temp/ft_expl.cpp diff --git a/test-files/old-tests/temp/ft_expl.xml b/test-files/golden-tests/temp/ft_expl.xml similarity index 100% rename from test-files/old-tests/temp/ft_expl.xml rename to test-files/golden-tests/temp/ft_expl.xml diff --git a/test-files/old-tests/type-resolution.cpp b/test-files/golden-tests/type-resolution.cpp similarity index 100% rename from test-files/old-tests/type-resolution.cpp rename to test-files/golden-tests/type-resolution.cpp diff --git a/test-files/old-tests/type-resolution.xml b/test-files/golden-tests/type-resolution.xml similarity index 100% rename from test-files/old-tests/type-resolution.xml rename to test-files/golden-tests/type-resolution.xml diff --git a/test-files/old-tests/using-1.cpp b/test-files/golden-tests/using-1.cpp similarity index 100% rename from test-files/old-tests/using-1.cpp rename to test-files/golden-tests/using-1.cpp diff --git a/test-files/old-tests/using-1.xml b/test-files/golden-tests/using-1.xml similarity index 100% rename from test-files/old-tests/using-1.xml rename to test-files/golden-tests/using-1.xml diff --git a/test-files/old-tests/using-2.cpp b/test-files/golden-tests/using-2.cpp similarity index 100% rename from test-files/old-tests/using-2.cpp rename to test-files/golden-tests/using-2.cpp diff --git a/test-files/old-tests/using-2.xml b/test-files/golden-tests/using-2.xml similarity index 100% rename from test-files/old-tests/using-2.xml rename to test-files/golden-tests/using-2.xml diff --git a/test-files/old-tests/using-3.cpp b/test-files/golden-tests/using-3.cpp similarity index 100% rename from test-files/old-tests/using-3.cpp rename to test-files/golden-tests/using-3.cpp diff --git a/test-files/old-tests/using-3.xml b/test-files/golden-tests/using-3.xml similarity index 100% rename from test-files/old-tests/using-3.xml rename to test-files/golden-tests/using-3.xml diff --git a/test-files/old-tests/utf-8.cpp b/test-files/golden-tests/utf-8.cpp similarity index 100% rename from test-files/old-tests/utf-8.cpp rename to test-files/golden-tests/utf-8.cpp diff --git a/test-files/old-tests/utf-8.xml b/test-files/golden-tests/utf-8.xml similarity index 100% rename from test-files/old-tests/utf-8.xml rename to test-files/golden-tests/utf-8.xml diff --git a/test-files/old-tests/var-template.cpp b/test-files/golden-tests/var-template.cpp similarity index 100% rename from test-files/old-tests/var-template.cpp rename to test-files/golden-tests/var-template.cpp diff --git a/test-files/old-tests/var-template.xml b/test-files/golden-tests/var-template.xml similarity index 100% rename from test-files/old-tests/var-template.xml rename to test-files/golden-tests/var-template.xml diff --git a/test-files/old-tests/variadic-function.cpp b/test-files/golden-tests/variadic-function.cpp similarity index 100% rename from test-files/old-tests/variadic-function.cpp rename to test-files/golden-tests/variadic-function.cpp diff --git a/test-files/old-tests/variadic-function.xml b/test-files/golden-tests/variadic-function.xml similarity index 100% rename from test-files/old-tests/variadic-function.xml rename to test-files/golden-tests/variadic-function.xml