]> git.99rst.org Git - openwrt-packages.git/commitdiff
python-pytest-forked: add test script
authorAlexandru Ardelean <redacted>
Sun, 9 Aug 2026 09:40:50 +0000 (12:40 +0300)
committerAlexandru Ardelean <redacted>
Tue, 11 Aug 2026 10:12:39 +0000 (13:12 +0300)
Add a CI test.sh exercising basic package functionality.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-pytest-forked/test.sh [new file with mode: 0755]

diff --git a/lang/python/python-pytest-forked/test.sh b/lang/python/python-pytest-forked/test.sh
new file mode 100755 (executable)
index 0000000..b714a54
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+[ "$1" = python3-pytest-forked ] || exit 0
+
+# The plugin must register its --forked option with the installed pytest,
+# which proves both the plugin and its pytest dependency import cleanly.
+if ! python3 -m pytest --help 2>&1 | grep -- "--forked"; then
+       echo "FAIL: pytest-forked did not register the --forked option"
+       exit 1
+fi
git clone https://git.99rst.org/PROJECT