From 97b934c5e1eaa4ea9fec8cfd21ed7153ff8e1427 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Fri, 3 Jun 2011 12:39:04 +0000 Subject: [PATCH] added test for calc_bit_scores git-svn-id: http://biopieces.googlecode.com/svn/trunk@1453 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/calc_bit_scores.in | 20 ++++++++++++++++++++ bp_test/out/calc_bit_scores.out.1 | 15 +++++++++++++++ bp_test/test/test_calc_bit_scores | 7 +++++++ 3 files changed, 42 insertions(+) create mode 100644 bp_test/in/calc_bit_scores.in create mode 100644 bp_test/out/calc_bit_scores.out.1 create mode 100755 bp_test/test/test_calc_bit_scores diff --git a/bp_test/in/calc_bit_scores.in b/bp_test/in/calc_bit_scores.in new file mode 100644 index 0000000..2df3885 --- /dev/null +++ b/bp_test/in/calc_bit_scores.in @@ -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 index 0000000..a4f8ff3 --- /dev/null +++ b/bp_test/out/calc_bit_scores.out.1 @@ -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 index 0000000..61c5709 --- /dev/null +++ b/bp_test/test/test_calc_bit_scores @@ -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 -- 2.39.5