added tests for uniq_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 24 Nov 2010 15:02:54 +0000 (15:02 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 24 Nov 2010 15:02:54 +0000 (15:02 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1168 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/uniq_seq.in [new file with mode: 0644]
bp_test/out/uniq_seq.out.1 [new file with mode: 0644]
bp_test/out/uniq_seq.out.2 [new file with mode: 0644]
bp_test/test/test_uniq_seq [new file with mode: 0755]

diff --git a/bp_test/in/uniq_seq.in b/bp_test/in/uniq_seq.in
new file mode 100644 (file)
index 0000000..85bd1fb
--- /dev/null
@@ -0,0 +1,12 @@
+SEQ_NAME: test1
+SEQ: ATGC
+SEQ_LEN: 4
+---
+SEQ_NAME: test2
+SEQ: ATGC
+SEQ_LEN: 4
+---
+SEQ_NAME: test3
+SEQ: GCAT
+SEQ_LEN: 4
+---
diff --git a/bp_test/out/uniq_seq.out.1 b/bp_test/out/uniq_seq.out.1
new file mode 100644 (file)
index 0000000..c336ae8
--- /dev/null
@@ -0,0 +1,8 @@
+SEQ: ATGC
+SEQ_LEN: 4
+SEQ_COUNT: 2
+---
+SEQ: GCAT
+SEQ_LEN: 4
+SEQ_COUNT: 1
+---
diff --git a/bp_test/out/uniq_seq.out.2 b/bp_test/out/uniq_seq.out.2
new file mode 100644 (file)
index 0000000..d3ab503
--- /dev/null
@@ -0,0 +1,4 @@
+SEQ: GCAT
+SEQ_LEN: 4
+SEQ_COUNT: 3
+---
diff --git a/bp_test/test/test_uniq_seq b/bp_test/test/test_uniq_seq
new file mode 100755 (executable)
index 0000000..760e1b0
--- /dev/null
@@ -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 -c -O $tmp"
+assert_no_diff $tmp $out.2
+clean