File: control.gen

package info (click to toggle)
pyside6 6.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,904 kB
  • sloc: python: 202,640; cpp: 91,160; xml: 18,402; javascript: 1,182; ansic: 178; sh: 163; makefile: 87
file content (28 lines) | stat: -rwxr-xr-x 902 bytes parent folder | download | duplicates (2)
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