From 236cb75e4430569627585a5818d9ce9bc85640f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:47:31 +0200 Subject: Adding debian version 2:4.17.12+dfsg-0+deb12u1. Signed-off-by: Daniel Baumann --- debian/tests/smbclient-share-access | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 debian/tests/smbclient-share-access (limited to 'debian/tests/smbclient-share-access') diff --git a/debian/tests/smbclient-share-access b/debian/tests/smbclient-share-access new file mode 100644 index 0000000..b124c0c --- /dev/null +++ b/debian/tests/smbclient-share-access @@ -0,0 +1,23 @@ +#!/bin/sh + +set -x +set -e + +. debian/tests/util + +username="smbtest$$" +password="$$" +add_user "${username}" "${password}" + +myshare="myshare$$" +add_share "${myshare}" + +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 -- cgit v1.2.3