From: martinahansen Date: Wed, 13 Apr 2011 11:36:12 +0000 (+0000) Subject: added remove_mids tests X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3bea3f1039083f7f53b762b26c604577f9bb7c27;p=biopieces.git added remove_mids tests git-svn-id: http://biopieces.googlecode.com/svn/trunk@1324 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_test/in/remove_mids.in b/bp_test/in/remove_mids.in new file mode 100644 index 0000000..3f9eabc --- /dev/null +++ b/bp_test/in/remove_mids.in @@ -0,0 +1,8 @@ +SEQ_NAME: test1 +SEQ: atcgTAGACTGCACgtcag +SEQ_LEN: 19 +--- +SEQ_NAME: test2 +SEQ: TAGACTGCACgtcag +SEQ_LEN: 15 +--- diff --git a/bp_test/out/remove_mids.out.1 b/bp_test/out/remove_mids.out.1 new file mode 100644 index 0000000..a492e51 --- /dev/null +++ b/bp_test/out/remove_mids.out.1 @@ -0,0 +1,10 @@ +SEQ_NAME: test1 +SEQ: atcgTAGACTGCACgtcag +SEQ_LEN: 19 +--- +SEQ_NAME: test2 +SEQ: gtcag +SEQ_LEN: 5 +MID: TAGACTGCAC +MID_NUM: 100 +--- diff --git a/bp_test/out/remove_mids.out.2 b/bp_test/out/remove_mids.out.2 new file mode 100644 index 0000000..bd47b2d --- /dev/null +++ b/bp_test/out/remove_mids.out.2 @@ -0,0 +1,10 @@ +SEQ_NAME: test1 +SEQ: gtcag +SEQ_LEN: 5 +MID: TAGACTGCAC +MID_NUM: 100 +--- +SEQ_NAME: test2 +SEQ: TAGACTGCACgtcag +SEQ_LEN: 15 +--- diff --git a/bp_test/test/test_remove_mids b/bp_test/test/test_remove_mids new file mode 100755 index 0000000..79717d0 --- /dev/null +++ b/bp_test/test/test_remove_mids @@ -0,0 +1,11 @@ +#!/bin/bash + +source "$BP_DIR/bp_test/lib/test.sh" + +run "$bp -I $in -O $tmp" +assert_no_diff $tmp $out.1 +clean + +run "$bp -I $in -p 4 -O $tmp" +assert_no_diff $tmp $out.2 +clean