From: John Mulligan Date: Wed, 19 Nov 2025 16:19:24 +0000 (-0500) Subject: qa/workunits/smb: add a stub workunit script for smb testing X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3e4c8a6d6684adac96111a9d14cd88afed323a73;p=ceph.git qa/workunits/smb: add a stub workunit script for smb testing Signed-off-by: John Mulligan --- diff --git a/qa/workunits/smb/smb_tests.sh b/qa/workunits/smb/smb_tests.sh new file mode 100755 index 000000000000..cc0334d1470c --- /dev/null +++ b/qa/workunits/smb/smb_tests.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +set -ex + +HERE=$(dirname $0) +PY=${PYTHON:-python3} +VENV=${HERE}/"_smb_tests_$$" + +cleanup() { + rm -rf "${VENV}" +} + +$PY -m venv "${VENV}" +trap cleanup EXIT + +cd "${HERE}" +"${VENV}/bin/${PY}" -m pip install pytest smbprotocol +"${VENV}/bin/${PY}" -m pytest -v "$@"