From 9a0010eef21e0417d09f5838677e1033f1b6087c Mon Sep 17 00:00:00 2001 From: Zack Galbreath Date: Fri, 29 May 2026 09:10:23 -0400 Subject: [PATCH] ctest: add --source-dir argument to enable initial configure Add the --source-dir argument to ctest to allow it to perform an initial configuration step for an empty binary directory when operating in dashboard client mode. --- Help/manual/ctest.1.rst | 51 ++++++++++++++-- Source/cmCTest.cxx | 31 +++++++++- Source/ctest.cxx | 10 +++- .../CTestCommandLine/RunCMakeTest.cmake | 58 +++++++++++++++++++ .../build-dir-invalid-arg-result.txt | 1 + .../build-dir-invalid-arg-stderr.txt | 1 + .../configure-empty-bindir-check.cmake | 5 ++ .../configure-empty-bindir-stderr.txt | 1 + .../configure-no-cmakelists-result.txt | 1 + .../configure-no-cmakelists-stderr.txt | 1 + .../source-dir-invalid-arg-result.txt | 1 + .../source-dir-invalid-arg-stderr.txt | 1 + 12 files changed, 155 insertions(+), 7 deletions(-) create mode 100644 Tests/RunCMake/CTestCommandLine/build-dir-invalid-arg-result.txt create mode 100644 Tests/RunCMake/CTestCommandLine/build-dir-invalid-arg-stderr.txt create mode 100644 Tests/RunCMake/CTestCommandLine/configure-empty-bindir-check.cmake create mode 100644 Tests/RunCMake/CTestCommandLine/configure-empty-bindir-stderr.txt create mode 100644 Tests/RunCMake/CTestCommandLine/configure-no-cmakelists-result.txt create mode 100644 Tests/RunCMake/CTestCommandLine/configure-no-cmakelists-stderr.txt create mode 100644 Tests/RunCMake/CTestCommandLine/source-dir-invalid-arg-result.txt create mode 100644 Tests/RunCMake/CTestCommandLine/source-dir-invalid-arg-stderr.txt diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst index d39847e38f..9f462b1be6 100644 --- a/Help/manual/ctest.1.rst +++ b/Help/manual/ctest.1.rst @@ -20,10 +20,13 @@ Synopsis [--test-command [...]] `Dashboard Client`_ - ctest -D [-- ...] - ctest -M -T [-- ...] - ctest -S