Debian Codegraph @

debian/tests/smoke-python3

raw
1 #! /bin/bash
2 #
3 # debian/tests/smoke-python3
4 # Part of Debian ‘towncrier’ package.
5 #
6 # This is free software, and you are welcome to redistribute it under
7 # certain conditions; see the end of this file for copyright
8 # information, grant of license, and disclaimer of warranty.
9
10 # Smoke test for importable Python 3 libraries.
11
12 set -o errexit
13 set -o errtrace
14 set -o nounset
15
16 DISTRIBUTION_NAME=towncrier
17 MODULE_NAMES=(
18 towncrier
19 )
20
21 test_opts="--distribution=$DISTRIBUTION_NAME"
22 for mod in ${MODULE_NAMES[@]} ; do
23 # Accumulate the module names.
24 test_opts="$test_opts --module=$mod"
25 done
26
27 for py in $(py3versions --supported) ; do
28 printf "Python command: %s\n" $py
29 $py -m package_smoke_test $test_opts
30 printf "\n"
31 done
32
33
34 # Copyright © 2016–2026 Ben Finney <[email protected]>
35 #
36 # This is free software: you may copy, modify, and/or distribute this work
37 # under the terms of the GNU General Public License as published by the
38 # Free Software Foundation; version 3 of that license or any later version.
39 # No warranty expressed or implied.
40
41 # Local variables:
42 # coding: utf-8
43 # mode: shell-script
44 # End:
45 # vim: fileencoding=utf-8 filetype=sh :