]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/smb: add a stub workunit script for smb testing
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 19 Nov 2025 16:19:24 +0000 (11:19 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 9 Dec 2025 21:27:01 +0000 (16:27 -0500)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
qa/workunits/smb/smb_tests.sh [new file with mode: 0755]

diff --git a/qa/workunits/smb/smb_tests.sh b/qa/workunits/smb/smb_tests.sh
new file mode 100755 (executable)
index 0000000..cc0334d
--- /dev/null
@@ -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 "$@"