From 175decad4e9e06c371885fec4b76e21dde4b692e Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 11 May 2026 14:46:31 +0300 Subject: [PATCH] exfatprogs: add test-version.sh Add test-version.sh: fsck.exfat and mkfs.exfat both print the version string via show_version() but exit non-zero when invoked with -V (fsck exits with FSCK_EXIT_SYNTAX_ERROR, mkfs exits with EXIT_FAILURE). The CI generic version checker uses '|| continue' to skip failed commands, so it never sees the printed version and reports "No executables in the package provided version X.Y.Z". test-version.sh captures the output regardless of exit code and greps for the expected version string, fixing the generic test failure. Signed-off-by: Alexandru Ardelean --- utils/exfatprogs/test-version.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 utils/exfatprogs/test-version.sh diff --git a/utils/exfatprogs/test-version.sh b/utils/exfatprogs/test-version.sh new file mode 100755 index 00000000000000..376e7f513f060a --- /dev/null +++ b/utils/exfatprogs/test-version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# fsck.exfat and mkfs.exfat print the version but exit non-zero when called +# with -V (FSCK_EXIT_SYNTAX_ERROR / EXIT_FAILURE), so the generic per-file +# version check skips their output. Check the version here instead. +case "$1" in +exfat-fsck) + fsck.exfat -V 2>&1 | grep -qF "$2" + ;; +exfat-mkfs) + mkfs.exfat -V 2>&1 | grep -qF "$2" + ;; +*) + exit 0 + ;; +esac