[med-svn] [Git][med-team/pairtools][master] Autopkgtests
Antoni Villalonga
gitlab at salsa.debian.org
Sat Jun 20 00:53:43 BST 2020
Antoni Villalonga pushed to branch master at Debian Med / pairtools
Commits:
fe90c3d0 by Antoni Villalonga at 2020-06-20T01:51:46+02:00
Autopkgtests
- - - - -
4 changed files:
- debian/patches/series
- + debian/patches/tests-to-python3
- + debian/tests/control
- + debian/tests/upstream-tests
Changes:
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
makefile
fix-spelling
+tests-to-python3
=====================================
debian/patches/tests-to-python3
=====================================
@@ -0,0 +1,186 @@
+Description: Tests to Python3
+Author: Antoni Villalonga i Noceras <antoni at friki.cat>
+Last-Update: Wed, 18 Jun 2020 22:31:00 +0200
+
+--- a/tests/test_dedup.py
++++ b/tests/test_dedup.py
+@@ -22,7 +22,7 @@
+ def setup_func():
+ try:
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'dedup',
+@@ -38,7 +38,7 @@
+ ],
+ )
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'dedup',
+--- a/tests/test_filterbycov.py
++++ b/tests/test_filterbycov.py
+@@ -40,7 +40,7 @@
+ try:
+ for p in params:
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'filterbycov',
+--- a/tests/test_flip.py
++++ b/tests/test_flip.py
+@@ -12,7 +12,7 @@
+ def test_flip():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'flip',
+--- a/tests/test_markasdup.py
++++ b/tests/test_markasdup.py
+@@ -10,7 +10,7 @@
+ mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'markasdup',
+--- a/tests/test_merge.py
++++ b/tests/test_merge.py
+@@ -17,7 +17,7 @@
+ def setup_func():
+ try:
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'sort',
+@@ -28,7 +28,7 @@
+ )
+
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'sort',
+@@ -49,7 +49,7 @@
+ def test_mock_pairsam():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'merge',
+--- a/tests/test_parse.py
++++ b/tests/test_parse.py
+@@ -172,7 +172,7 @@
+ mock_chroms_path = os.path.join(testdir, 'data', 'mock.chrom.sizes')
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'parse',
+--- a/tests/test_select.py
++++ b/tests/test_select.py
+@@ -12,7 +12,7 @@
+ def test_preserve():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+@@ -35,7 +35,7 @@
+ def test_equal():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+@@ -62,7 +62,7 @@
+ def test_csv():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+@@ -89,7 +89,7 @@
+ def test_wildcard():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+@@ -116,7 +116,7 @@
+ def test_regex():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+@@ -142,7 +142,7 @@
+ def test_chrom_subset():
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'select',
+--- a/tests/test_sort.py
++++ b/tests/test_sort.py
+@@ -10,7 +10,7 @@
+ mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'sort',
+--- a/tests/test_split.py
++++ b/tests/test_split.py
+@@ -16,7 +16,7 @@
+ def setup_func():
+ try:
+ subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'split',
+--- a/tests/test_stats.py
++++ b/tests/test_stats.py
+@@ -10,7 +10,7 @@
+ mock_pairsam_path = os.path.join(testdir, 'data', 'mock.pairsam')
+ try:
+ result = subprocess.check_output(
+- ['python',
++ ['python3',
+ '-m',
+ 'pairtools',
+ 'stats',
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: upstream-tests
+Depends: python3-pairtools
+Restrictions: allow-stderr, breaks-testbed
=====================================
debian/tests/upstream-tests
=====================================
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+set -ev
+
+rm -rf pairtools
+
+nosetests3
+
+echo ALL PASS
View it on GitLab: https://salsa.debian.org/med-team/pairtools/-/commit/fe90c3d0c60319c3ce5394ab5a478af6e63fd861
--
View it on GitLab: https://salsa.debian.org/med-team/pairtools/-/commit/fe90c3d0c60319c3ce5394ab5a478af6e63fd861
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200619/5eb1ab6a/attachment-0001.html>
More information about the debian-med-commit
mailing list