Debian Codegraph @

debian/tests/smoketest-3

raw
1 #!/bin/bash
2
3 # Change to the directory with the setup.py.
4 cd debian/tests/dummy
5
6 # Create the .whl file. Both build it and write it to a temporary directory.
7 python3 setup.py bdist_wheel -b $AUTOPKGTEST_TMP/build -d $AUTOPKGTEST_TMP/wheels
8
9 # Guarantee that the source of the dummy package won't be on sys.path.
10 cd $AUTOPKGTEST_TMP
11
12 # See if the .whl has the contents we expect.
13 export PYTHONPATH=wheels/dummy-0.0-py3-none-any.whl
14 yes=`python3 -c "import dummy.yes; dummy.yes()"`
15 no=`python3 -c "import dummy.no; dummy.no()"`
16
17 echo "yes = $yes"
18 echo "no = $no"
19 test $yes = 'yes' -a $no = 'no'