From b2243b471ef41fedb027f49071836e56739c0c4f Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <andrew@tridgell.net>
Date: Sat, 6 Jun 2026 14:52:02 +1000
Subject: [PATCH 76/81] build: add check-progs target for fleettest

Build the test-helper programs without running the suite, so an external
harness (fleettest.py) can invoke runtests.py with its own options.

(cherry picked from commit a122e5d6b62d9303c33a0a799683a036f33a0362)
---
 Makefile.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 9b0b9f51..0ea0874c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -334,6 +334,12 @@ test: check
 # catch Bash-isms earlier even if we're running on GNU.  Of course, we
 # might lose in the future where POSIX diverges from old sh.
 
+# Build the test-helper programs (CHECK_PROGS) without running the suite, so
+# an external harness (e.g. fleettest.py) can invoke runtests.py with its own
+# options.
+.PHONY: check-progs
+check-progs: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
+
 .PHONY: check
 check: all $(CHECK_PROGS) $(CHECK_SYMLINKS)
 	rsync_bin=`pwd`/rsync$(EXEEXT) $(srcdir)/runtests.sh
-- 
2.53.0

