From: Andreas Schneider Date: Wed, 6 Dec 2023 14:58:08 +0000 (+0100) Subject: s3:tests: Add interactive smbget test for password entry X-Git-Tag: talloc-2.4.2~354 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b38f3be8cb986aa2db3aab5c3c3d2e8739893ce;p=thirdparty%2Fsamba.git s3:tests: Add interactive smbget test for password entry BUG: https://bugzilla.samba.org/show_bug.cgi?id=15532 Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlett --- diff --git a/source3/script/tests/test_smbget.sh b/source3/script/tests/test_smbget.sh index 0af28c6ff89..74050f6951a 100755 --- a/source3/script/tests/test_smbget.sh +++ b/source3/script/tests/test_smbget.sh @@ -29,6 +29,7 @@ incdir=$(dirname $0)/../../../testprogs/blackbox . "${incdir}/common_test_fns.inc" samba_kinit=$(system_or_builddir_binary kinit "${BINDIR}" samba4kinit) +samba_texpect="${BINDIR}/texpect" create_test_data() { @@ -163,6 +164,33 @@ test_singlefile_smburl2() return 0 } +test_singlefile_smburl_interactive() +{ + clear_download_area + + tmpfile="$(mktemp --tmpdir="${TMPDIR}" expect_XXXXXXXXXX)" + + cat >"${tmpfile}" <