]> git.donarmstrong.com Git - biopieces.git/commitdiff
added tests for write_fasta_files
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 12 Oct 2011 14:45:42 +0000 (14:45 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 12 Oct 2011 14:45:42 +0000 (14:45 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1547 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/write_fasta_files.in [new file with mode: 0644]
bp_test/out/write_fasta_files.out.1/test1.fasta [new file with mode: 0644]
bp_test/out/write_fasta_files.out.1/test2.fasta [new file with mode: 0644]
bp_test/out/write_fasta_files.out.1/test3.fasta [new file with mode: 0644]
bp_test/out/write_fasta_files.out.2/11.fasta [new file with mode: 0644]
bp_test/out/write_fasta_files.out.2/9.fasta [new file with mode: 0644]
bp_test/test/test_write_fasta_files [new file with mode: 0755]

diff --git a/bp_test/in/write_fasta_files.in b/bp_test/in/write_fasta_files.in
new file mode 100644 (file)
index 0000000..4ffd64c
--- /dev/null
@@ -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 (file)
index 0000000..cb5bc10
--- /dev/null
@@ -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 (file)
index 0000000..10f6659
--- /dev/null
@@ -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 (file)
index 0000000..aa9e884
--- /dev/null
@@ -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 (file)
index 0000000..400df61
--- /dev/null
@@ -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 (file)
index 0000000..cb5bc10
--- /dev/null
@@ -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 (executable)
index 0000000..d87fb8a
--- /dev/null
@@ -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