Skip to content

Commit

Permalink
Added test for subsample output
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Dec 31, 2017
1 parent d212efa commit 872702f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sambamba/bio2/pileup.d
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ struct RingBuffer(T) {
}

ulong length() @property const {
writeln(_tail.get(),":",_head.get(),"= len ",_tail.get()-_head.get());
// writeln(_tail.get(),":",_head.get(),"= len ",_tail.get()-_head.get());
return _tail.get() - _head.get();
}

Expand Down
5 changes: 5 additions & 0 deletions test_suite.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

testSubSample() {
./bin/sambamba subsample ex1_header.sorted.bam -otest3.bam &> test.out
assertEquals "5c2823e29b24a425bee5dba62107a2ce" $(md5sum test3.bam |cut -c 1-32)
}

testSortByName() {
# use very tiny buffer of 200K so that multithreading is used
# ./bin/sambamba sort -t2 -n BioD/test/data/ex1_header.bam -o ex1_header.nsorted.bam -m 200K
Expand Down

0 comments on commit 872702f

Please sign in to comment.