Skip to content

Commit fd3b088

Browse files
committed
runTestLibusb.sh: Use examples as extra test-cases.
1 parent 203c47f commit fd3b088

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

runTestLibusb.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,25 @@ while [ $# -ne 0 ]; do
5353
done
5454

5555
result=0
56+
venv_python="${venv_dir}/bin/python"
5657
for lib_dir in "${lib_dir_list[@]}"; do
5758
export LD_LIBRARY_PATH="${lib_dir}"
58-
if "${venv_dir}/bin/python" -m usb1.testUSB1; then
59+
if "$venv_python" -m usb1.testUSB1; then
5960
:
6061
else
61-
echo "failed with ${lib_dir}: status=$?"
62+
echo "usb1.testUSB1 failed with ${lib_dir}: status=$?"
63+
result=1
64+
fi
65+
if "$venv_python" "${python_libusb1}/examples/listdevs.py"; then
66+
:
67+
else
68+
echo "examples/listdevs.py failed with ${lib_dir}: status=$?"
69+
result=1
70+
fi
71+
if timeout --preserve-status --signal INT 1 "$venv_python" "${python_libusb1}/examples/hotplug.py"; then
72+
:
73+
else
74+
echo "examples/hotplug.py failed with ${lib_dir}: status=$?"
6275
result=1
6376
fi
6477
done

0 commit comments

Comments
 (0)