moved away from patch to use a placeholder pauvre
the way the patch ended up didn't make it really suitable for
upstream upload, as not standalone without the appropriate changes
in debian/.
Etienne Mollier
3 years ago
|
0 |
#! /bin/bash
|
|
1 |
# pauvre reimplementation in shell: the test suite expects its availability in
|
|
2 |
# the PATH. Appropriate python environment is expected to be set in d/rules.
|
|
3 |
set -ex
|
|
4 |
exec python3 "$CURDIR/pauvre/pauvre_main.py" "$@"
|
0 | 0 |
2to3.patch
|
1 | 1 |
typo-redwood.patch
|
2 | |
test-local-pauvre.patch
|
debian/patches/test-local-pauvre.patch
less
more
0 | |
Description: Use local "pauvre" for build testing
|
1 | |
The current testing in place embeds a shell script which makes the assumption
|
2 | |
that the command "pauvre" is available in the path of the tester. It would
|
3 | |
seem better to either carry out this test later in the package construction
|
4 | |
steps, or make sure that this is the working copy of pauvre_main.py which is
|
5 | |
being tested. This patch applies the second approach, to allow going a step
|
6 | |
further with build testing.
|
7 | |
Author: Étienne Mollier <etienne.mollier@mailoo.org>
|
8 | |
Forwarded: no
|
9 | |
Last-Update: 2020-04-25
|
10 | |
---
|
11 | |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
12 | |
--- python-pauvre.orig/pauvre/tests/test_synplot.py
|
13 | |
+++ python-pauvre/pauvre/tests/test_synplot.py
|
14 | |
@@ -51,7 +51,8 @@
|
15 | |
"""This verifies that the LibSeq class is constructed with all of the
|
16 | |
parameters that are present in the meraculous config files"""
|
17 | |
os.chdir(self.thisoutdir)
|
18 | |
- thiscommand = """pauvre synplot --aln_dir {0} \
|
19 | |
+ thiscommand = """python3 ../../../pauvre_main.py synplot \
|
20 | |
+ --aln_dir {0} \
|
21 | |
--fileform pdf \
|
22 | |
--gff_paths {1} {2} {3} \
|
23 | |
--center_on COX1 \
|
21 | 21 |
|
22 | 22 |
override_dh_auto_test:
|
23 | 23 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
24 | |
export PYTHONPATH="$(CURDIR)" \
|
25 | |
&& dh_auto_test
|
|
24 |
CURDIR="$(CURDIR)" \
|
|
25 |
PATH="$(CURDIR)/debian/bin:$$PATH" \
|
|
26 |
PYTHONPATH="$(CURDIR)" \
|
|
27 |
dh_auto_test
|
26 | 28 |
endif
|