From 0b2cd4f8fa2914575355efc12a8b834d7ed62035 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 12 Oct 2011 14:45:42 +0000 Subject: [PATCH] added tests for write_fasta_files git-svn-id: http://biopieces.googlecode.com/svn/trunk@1547 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/write_fasta_files.in | 14 ++++++++++++++ .../out/write_fasta_files.out.1/test1.fasta | 2 ++ .../out/write_fasta_files.out.1/test2.fasta | 2 ++ .../out/write_fasta_files.out.1/test3.fasta | 2 ++ bp_test/out/write_fasta_files.out.2/11.fasta | 4 ++++ bp_test/out/write_fasta_files.out.2/9.fasta | 2 ++ bp_test/test/test_write_fasta_files | 18 ++++++++++++++++++ 7 files changed, 44 insertions(+) create mode 100644 bp_test/in/write_fasta_files.in create mode 100644 bp_test/out/write_fasta_files.out.1/test1.fasta create mode 100644 bp_test/out/write_fasta_files.out.1/test2.fasta create mode 100644 bp_test/out/write_fasta_files.out.1/test3.fasta create mode 100644 bp_test/out/write_fasta_files.out.2/11.fasta create mode 100644 bp_test/out/write_fasta_files.out.2/9.fasta create mode 100755 bp_test/test/test_write_fasta_files diff --git a/bp_test/in/write_fasta_files.in b/bp_test/in/write_fasta_files.in new file mode 100644 index 0000000..4ffd64c --- /dev/null +++ b/bp_test/in/write_fasta_files.in @@ -0,0 +1,14 @@ +SEQ_NAME: test0 +--- +SEQ_NAME: test1 +SEQ: GACATCGAC +SEQ_LEN: 9 +--- +SEQ_NAME: test2 +SEQ: ACGACTACAGT +SEQ_LEN: 11 +--- +SEQ_NAME: test3 +SEQ: GCACACAGAGC +SEQ_LEN: 11 +--- diff --git a/bp_test/out/write_fasta_files.out.1/test1.fasta b/bp_test/out/write_fasta_files.out.1/test1.fasta new file mode 100644 index 0000000..cb5bc10 --- /dev/null +++ b/bp_test/out/write_fasta_files.out.1/test1.fasta @@ -0,0 +1,2 @@ +>test1 +GACATCGAC diff --git a/bp_test/out/write_fasta_files.out.1/test2.fasta b/bp_test/out/write_fasta_files.out.1/test2.fasta new file mode 100644 index 0000000..10f6659 --- /dev/null +++ b/bp_test/out/write_fasta_files.out.1/test2.fasta @@ -0,0 +1,2 @@ +>test2 +ACGACTACAGT diff --git a/bp_test/out/write_fasta_files.out.1/test3.fasta b/bp_test/out/write_fasta_files.out.1/test3.fasta new file mode 100644 index 0000000..aa9e884 --- /dev/null +++ b/bp_test/out/write_fasta_files.out.1/test3.fasta @@ -0,0 +1,2 @@ +>test3 +GCACACAGAGC diff --git a/bp_test/out/write_fasta_files.out.2/11.fasta b/bp_test/out/write_fasta_files.out.2/11.fasta new file mode 100644 index 0000000..400df61 --- /dev/null +++ b/bp_test/out/write_fasta_files.out.2/11.fasta @@ -0,0 +1,4 @@ +>test2 +ACGACTACAGT +>test3 +GCACACAGAGC diff --git a/bp_test/out/write_fasta_files.out.2/9.fasta b/bp_test/out/write_fasta_files.out.2/9.fasta new file mode 100644 index 0000000..cb5bc10 --- /dev/null +++ b/bp_test/out/write_fasta_files.out.2/9.fasta @@ -0,0 +1,2 @@ +>test1 +GACATCGAC diff --git a/bp_test/test/test_write_fasta_files b/bp_test/test/test_write_fasta_files new file mode 100755 index 0000000..d87fb8a --- /dev/null +++ b/bp_test/test/test_write_fasta_files @@ -0,0 +1,18 @@ +#!/bin/bash + +source "$BP_DIR/bp_test/lib/test.sh" + +mkdir $tmp_dir + +run "$bp -I $in -d $tmp_dir -k SEQ_NAME -x" +assert_no_diff_dir $tmp_dir $out.1 +clean + +rm -rf $tmp_dir +mkdir $tmp_dir + +run "$bp -I $in -d $tmp_dir -k SEQ_LEN -x" +assert_no_diff_dir $tmp_dir $out.2 +clean + +rm -rf $tmp_dir -- 2.39.5