From 71bae164ea262e09e4ca31909e571b9418664ba3 Mon Sep 17 00:00:00 2001 From: Josef Schlehofer Date: Sun, 27 Sep 2026 22:40:07 +0200 Subject: [PATCH] libtorrent-rasterbar: add test.sh Check that the python bindings can be imported on the target and that they report the package version. Signed-off-by: Josef Schlehofer (cherry picked from commit a05f401f40cc3998f5a01fc1a69e4aacd907abce) --- libs/libtorrent-rasterbar/test.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 libs/libtorrent-rasterbar/test.sh diff --git a/libs/libtorrent-rasterbar/test.sh b/libs/libtorrent-rasterbar/test.sh new file mode 100755 index 0000000000..4fd2580107 --- /dev/null +++ b/libs/libtorrent-rasterbar/test.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +case "$1" in +python3-libtorrent) + python3 -c "import libtorrent; print(libtorrent.__version__)" | grep -F "$2" + ;; +esac