Package list python-pauvre / ec01bdf
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 2 years ago
4 changed file(s) with 9 addition(s) and 27 deletion(s). Raw diff Collapse all Expand all
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" "$@"
00 2to3.patch
11 typo-redwood.patch
2 test-local-pauvre.patch
+0
-24
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 \
2121
2222 override_dh_auto_test:
2323 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
2628 endif