]> git.donarmstrong.com Git - biopieces.git/commitdiff
added test for calc_bit_scores
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 3 Jun 2011 12:39:04 +0000 (12:39 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Fri, 3 Jun 2011 12:39:04 +0000 (12:39 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1453 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/calc_bit_scores.in [new file with mode: 0644]
bp_test/out/calc_bit_scores.out.1 [new file with mode: 0644]
bp_test/test/test_calc_bit_scores [new file with mode: 0755]

diff --git a/bp_test/in/calc_bit_scores.in b/bp_test/in/calc_bit_scores.in
new file mode 100644 (file)
index 0000000..2df3885
--- /dev/null
@@ -0,0 +1,20 @@
+SEQ_NAME: test5
+SEQ: ---TAACAGGCACT
+SEQ_LEN: 14
+---
+SEQ_NAME: test2
+SEQ: -----GAATCGACT
+SEQ_LEN: 14
+---
+SEQ_NAME: test1
+SEQ: --CTAGCTTCGACT
+SEQ_LEN: 14
+---
+SEQ_NAME: test3
+SEQ: ACGAAACTAGCATC
+SEQ_LEN: 14
+---
+SEQ_NAME: test4
+SEQ: ----AGCATCGACT
+SEQ_LEN: 14
+---
diff --git a/bp_test/out/calc_bit_scores.out.1 b/bp_test/out/calc_bit_scores.out.1
new file mode 100644 (file)
index 0000000..a4f8ff3
--- /dev/null
@@ -0,0 +1,15 @@
+V13: 1.28
+V11: 2.00
+V7: 1.03
+V4: 1.74
+V3: 1.01
+V9: 1.03
+V0: 1.54
+V2: 1.07
+V8: 0.63
+V12: 1.28
+V5: 1.03
+V10: 1.03
+V1: 1.54
+V6: 1.28
+---
diff --git a/bp_test/test/test_calc_bit_scores b/bp_test/test/test_calc_bit_scores
new file mode 100755 (executable)
index 0000000..61c5709
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+source "$BP_DIR/bp_test/lib/test.sh"
+
+run "$bp -I $in -O $tmp"
+assert_no_diff $tmp $out.1
+clean