Skip to content

Commit 8f74394

Browse files
committed
Add DEP-8 tests
1 parent c6f0d79 commit 8f74394

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Build-Depends: bash-completion,
99
python3-setuptools
1010
Build-Depends-Indep: txt2man
1111
Standards-Version: 3.9.7
12+
Testsuite: autopkgtest
1213
X-Python-Version: >= 3.3
1314
Homepage: https://github.com/Russell91/pythonpy
1415
Vcs-Git: https://github.com/myhro/deb-pythonpy.git

debian/rules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ override_dh_auto_install:
1515
dh_auto_install -- --install-args "--install-lib=/usr/share/pythonpy --install-scripts=/usr/share/pythonpy"
1616

1717

18+
override_dh_auto_test:
19+
# The test suite is composed of functional tests which are specified in "debian/tests/control" (DEP-8).
20+
21+
1822
override_dh_fixperms:
1923
dh_fixperms
2024
chmod 755 debian/pythonpy/usr/share/pythonpy/pythonpy/__main__.py

debian/tests/control

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Test-Command: python3 -m unittest discover -v
2+
Depends: @, python3
3+
Restrictions: allow-stderr

0 commit comments

Comments
 (0)