File: smoke-python2

package info (click to toggle)
python-daemon 2.1.2-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 612 kB
  • sloc: python: 4,519; sh: 32; makefile: 21
file content (39 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
29
30
31
32
33
34
35
36
37
38
39
#! /bin/bash
#
# debian/tests/smoke-python2
# Part of Debian ‘python-daemon’ package.
#
# Copyright © 2016 Ben Finney <bignose@debian.org>
# This is free software; you may copy, modify, and/or distribute this work
# under the terms of the Expat license as published by James Clark.
# No warranty expressed or implied.
#
# Smoke test for package in Python 2 environments.

set -o errexit
set -o errtrace
set -o nounset

DISTRIBUTION_NAME=python-daemon
MODULE_NAMES=(
        daemon
        )

test_opts="--distribution=$DISTRIBUTION_NAME"
for mod in ${MODULE_NAMES[@]} ; do
    # Accumulate the module names.
    test_opts="$test_opts --module=$mod"
done

for py in $(pyversions -i) ; do
    printf "Python command: %s\n" $py
    $py debian/tests/smoke_test.py $test_opts
    printf "\n"
done


# Local variables:
# coding: utf-8
# mode: shell-script
# End:
# vim: fileencoding=utf-8 filetype=sh :