]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Add debug output to test_net_tdb.sh
authorAndreas Schneider <asn@samba.org>
Thu, 13 Nov 2025 13:33:00 +0000 (14:33 +0100)
committerMartin Schwenke <martins@samba.org>
Thu, 15 Jan 2026 06:58:35 +0000 (06:58 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/script/tests/test_net_tdb.sh

index 92847ad522acc77550c0f1a79f821279dde4d29a..dc1db226571778fbb6179c81de63d94f8aa15115 100755 (executable)
@@ -54,6 +54,10 @@ testit "Looking for record key of open file" \
 # The assumption here is that only one file is open, so only one
 # record can exist in the database.
 
+echo "=== Debug Output for 'tdbtool locking.tdb hexkeys' =="
+$samba_tdbtool "$LOCKDIR/locking.tdb" hexkeys
+echo "=== End Debug Output ==="
+
 # Output of 'tdbtool hexkeys' is in this format:
 #[000] 01 FD 00 00 00 00 00 00  56 02 5C 00 00 00 00 00  ....... V.\....
 #[010] 00 00 00 00 00 00 00 00                           .......
@@ -61,6 +65,10 @@ testit "Looking for record key of open file" \
 key=0x$("$samba_tdbtool" "$LOCKDIR/locking.tdb" hexkeys |
        grep '\[' | cut -c 7-56 | sed -e 's/ //g' | tr -d '\n')
 
+echo "=== Debug Output for key =="
+echo "${key}"
+echo "=== End Debug Output ==="
+
 testit "Looking for open file in locking.tdb" \
        "$BINDIR/net" "$CONFIGURATION" tdb locking "$key" ||
        failed=$((failed + 1))