1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/bin/sh
C=debian/tests/control
# Remove debian/tests/control
rm -f $C
echo "## AUTOGENERATED FILE: SEE debian/tests/control.gen\n\n" > $C
# Create the basic (import) test for Python 3 modules
for binary_package in $(dh_listpackages|grep "python3-pyside6.qt"); do
module_name=$(echo $binary_package|awk -F. '{print $2}')
# find import_name
import_name=$(find sources/pyside6/PySide6/ -maxdepth 1 -type d| xargs -n 1 basename|grep -i ^$module_name$)
echo "Test-Command: debian/tests/test_install_python3.sh $binary_package PySide6.$import_name
Depends:
python3,
$binary_package,
Restrictions: allow-stderr, superficial
Features: test-name=$binary_package" >> $C
architecture=$(sed -n "/^Package: ${binary_package}$/{n; p}" debian/control)
if [ "$architecture" != 'Architecture: any' ]; then
echo "$architecture" >> $C
fi
echo "" >> $C
done
sed -i '$d' $C
|