summaryrefslogtreecommitdiffstats
path: root/debian/tests/smbclient-share-access-uring
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:31 +0000
commit236cb75e4430569627585a5818d9ce9bc85640f8 (patch)
treef84b5c0335eb76eb9df1e6c2c0004d7d9667c6e4 /debian/tests/smbclient-share-access-uring
parentAdding upstream version 2:4.17.12+dfsg. (diff)
downloadsamba-236cb75e4430569627585a5818d9ce9bc85640f8.tar.xz
samba-236cb75e4430569627585a5818d9ce9bc85640f8.zip
Adding debian version 2:4.17.12+dfsg-0+deb12u1.debian/2%4.17.12+dfsg-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/smbclient-share-access-uring')
-rw-r--r--debian/tests/smbclient-share-access-uring25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/tests/smbclient-share-access-uring b/debian/tests/smbclient-share-access-uring
new file mode 100644
index 0000000..4b7a205
--- /dev/null
+++ b/debian/tests/smbclient-share-access-uring
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+set -x
+set -e
+
+. debian/tests/util
+
+ensure_uring_available
+
+username="smbtest$$"
+password="$$"
+add_user "${username}" "${password}"
+
+myshare="myshare$$"
+add_share "${myshare}" io_uring
+
+echo "Creating file with random data and computing its md5"
+populate_share "${myshare}" "${username}"
+
+rm -f downloaded-data
+echo "Downloading file and comparing its md5"
+smbclient //localhost/"${myshare}" -U "${username}"%"${password}" -c "get data downloaded-data"
+
+mv -f downloaded-data data
+md5sum -c data.md5