]> git.donarmstrong.com Git - biopieces.git/commitdiff
added remove_mids tests
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Apr 2011 11:36:12 +0000 (11:36 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 13 Apr 2011 11:36:12 +0000 (11:36 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1324 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/remove_mids.in [new file with mode: 0644]
bp_test/out/remove_mids.out.1 [new file with mode: 0644]
bp_test/out/remove_mids.out.2 [new file with mode: 0644]
bp_test/test/test_remove_mids [new file with mode: 0755]

diff --git a/bp_test/in/remove_mids.in b/bp_test/in/remove_mids.in
new file mode 100644 (file)
index 0000000..3f9eabc
--- /dev/null
@@ -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 (file)
index 0000000..a492e51
--- /dev/null
@@ -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 (file)
index 0000000..bd47b2d
--- /dev/null
@@ -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 (executable)
index 0000000..79717d0
--- /dev/null
@@ -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