File: fix_cleanup_tests.patch

package info (click to toggle)
python-pysam 0.7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,096 kB
  • ctags: 10,802
  • sloc: ansic: 25,638; python: 3,882; makefile: 157; sh: 12
file content (19 lines) | stat: -rw-r--r-- 625 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
Author: Andreas Tille <tille@debian.org>
Last-Changed: Mon, 10 Feb 2014 11:29:40 +0100
Description: Prevent tests makefile from deleting files which
 are contained inside the upstream source

--- a/tests/Makefile
+++ b/tests/Makefile
@@ -47,6 +47,11 @@
 	samtools view -bS $< > $@
 
 clean:
+	mkdir keep_bam_files
+	mv ex9_fail.bam ex9_nofail.bam example_btag.bam example_empty_header.bam issue100.bam tag_bug.bam test_unaligned.bam keep_bam_files
 	rm -fr *.bam *.bai *.fai *.pileup* \
 		*~ calDepth *.dSYM pysam_*.sam \
 	ex2.sam ex2.sam.gz ex1.sam
+	mv keep_bam_files/* .
+	rmdir keep_bam_files
+	rm -rf pysam_test_work/