Skip to content

Commit

Permalink
added a test; closes #225
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Tarasov committed Jun 19, 2016
1 parent fafb684 commit d9c3479
Show file tree
Hide file tree
Showing 4 changed files with 18,495 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,23 @@ testIssue206() {
assertEquals 0 $?
}

testIssue225() {
./build/sambamba depth base -c 1 test/issue225.bam 2>/dev/null > depth_base_225_1.txt
diff -q depth_base_225_1.txt test/issue225.out
assertEquals 0 $?

./build/sambamba depth base -c 0 test/issue225.bam 2>/dev/null > depth_base_225_0.txt
diff -q depth_base_225_0.txt test/issue225.z.out
assertEquals 0 $?

# exercise BED codepath as well
./build/sambamba depth base -c 1 -L chrM test/issue225.bam 2>/dev/null > depth_base_225_1.txt
diff -q depth_base_225_1.txt test/issue225.out
assertEquals 0 $?

./build/sambamba depth base -c 0 -L chrM test/issue225.bam 2>/dev/null > depth_base_225_0.txt
diff -q depth_base_225_0.txt test/issue225.z.out
assertEquals 0 $?
}

. shunit2-2.0.3/src/shell/shunit2
Binary file added test/issue225.bam
Binary file not shown.
Loading

0 comments on commit d9c3479

Please sign in to comment.