Files
packages/libs/lmdb/test-version.sh
Josef Schlehofer 308a5db965 tree-wide: remove quiet mode from grep in test version checks
Remove the quiet mode flag (-q) from grep in version check commands
to ensure that their stdout output is visible.

While at it, switch the remaining regex matches (perl, sscep, awscli) to
fixed-string matching where appropriate, so that special characters in the
version string are matched literally.

For libzip, the zipcmp and zipmerge branches ran grep and then
unconditionally exited 0, so a version mismatch was never reported and
the version check override always passed.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2026-08-10 10:01:46 +02:00

22 lines
234 B
Bash
Executable File

#!/bin/sh
pkg=$1
ver=$2
case "$pkg" in
lmdb)
exit 0
;;
lmdb-test)
exit 0
;;
lmdb-utils)
mdb_dump -V 2>&1 | grep -F "LMDB $ver" || exit 1
exit 0
;;
*)
echo "test-version.sh: unhandled sub-package '$pkg'" >&2
exit 1
;;
esac