From 89a49368daa0de11ff0915a7d4907deed47ec0eb Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 24 Nov 2010 15:11:08 +0000 Subject: [PATCH] added tests for translate_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@1169 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/translate_seq.in | 3 +++ bp_test/out/translate_seq.out.1 | 30 ++++++++++++++++++++++++++++++ bp_test/out/translate_seq.out.2 | 10 ++++++++++ bp_test/test/test_translate_seq | 11 +++++++++++ 4 files changed, 54 insertions(+) create mode 100644 bp_test/in/translate_seq.in create mode 100644 bp_test/out/translate_seq.out.1 create mode 100644 bp_test/out/translate_seq.out.2 create mode 100755 bp_test/test/test_translate_seq diff --git a/bp_test/in/translate_seq.in b/bp_test/in/translate_seq.in new file mode 100644 index 0000000..6fd765e --- /dev/null +++ b/bp_test/in/translate_seq.in @@ -0,0 +1,3 @@ +SEQ_NAME: test1 +SEQ: ATGCACATTCGACTAGCATCGACGACGCGAGCGACGACGACGATGCGACTAGCTTA +--- diff --git a/bp_test/out/translate_seq.out.1 b/bp_test/out/translate_seq.out.1 new file mode 100644 index 0000000..202a91b --- /dev/null +++ b/bp_test/out/translate_seq.out.1 @@ -0,0 +1,30 @@ +SEQ: MHIRLASTTRATTTMRLA +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: 1 +--- +SEQ: CTFD*HRRRERRRRCD*L +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: 2 +--- +SEQ: AHSTSIDDASDDDDATSL +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: 3 +--- +SEQ: *ASRIVVVARVVDASRMC +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: -1 +--- +SEQ: KLVASSSSLASSMLVECA +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: -2 +--- +SEQ: S*SHRRRRSRRRC*SNVH +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: -3 +--- diff --git a/bp_test/out/translate_seq.out.2 b/bp_test/out/translate_seq.out.2 new file mode 100644 index 0000000..3950fa2 --- /dev/null +++ b/bp_test/out/translate_seq.out.2 @@ -0,0 +1,10 @@ +SEQ: MHIRLASTTRATTTMRLA +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: 1 +--- +SEQ: *ASRIVVVARVVDASRMC +SEQ_LEN: 18 +SEQ_NAME: test1 +FRAME: -1 +--- diff --git a/bp_test/test/test_translate_seq b/bp_test/test/test_translate_seq new file mode 100755 index 0000000..9ca6069 --- /dev/null +++ b/bp_test/test/test_translate_seq @@ -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 -f '1,-1' -O $tmp" +assert_no_diff $tmp $out.2 +clean -- 2.39.5