]> git.donarmstrong.com Git - biopieces.git/commitdiff
added test for add_ident
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 5 Aug 2010 13:37:18 +0000 (13:37 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 5 Aug 2010 13:37:18 +0000 (13:37 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1035 74ccb610-7750-0410-82ae-013aeee3265d

bp_test/in/add_ident.in [new file with mode: 0644]
bp_test/out/add_ident.out.1 [new file with mode: 0644]
bp_test/out/add_ident.out.2 [new file with mode: 0644]
bp_test/out/add_ident.out.3 [new file with mode: 0644]
bp_test/test/test_add_ident [new file with mode: 0755]

diff --git a/bp_test/in/add_ident.in b/bp_test/in/add_ident.in
new file mode 100644 (file)
index 0000000..e9a94e8
--- /dev/null
@@ -0,0 +1,8 @@
+SEQ: ATACGTCAG
+---
+SEQ: AGCATGAC
+---
+SEQ: GACTG
+---
+SEQ: AAATGCA
+---
diff --git a/bp_test/out/add_ident.out.1 b/bp_test/out/add_ident.out.1
new file mode 100644 (file)
index 0000000..b0787b5
--- /dev/null
@@ -0,0 +1,12 @@
+ID: ID00000000
+SEQ: ATACGTCAG
+---
+ID: ID00000001
+SEQ: AGCATGAC
+---
+ID: ID00000002
+SEQ: GACTG
+---
+ID: ID00000003
+SEQ: AAATGCA
+---
diff --git a/bp_test/out/add_ident.out.2 b/bp_test/out/add_ident.out.2
new file mode 100644 (file)
index 0000000..42e7de8
--- /dev/null
@@ -0,0 +1,12 @@
+SEQ: ATACGTCAG
+CUSTOM_KEY: ID00000000
+---
+SEQ: AGCATGAC
+CUSTOM_KEY: ID00000001
+---
+SEQ: GACTG
+CUSTOM_KEY: ID00000002
+---
+SEQ: AAATGCA
+CUSTOM_KEY: ID00000003
+---
diff --git a/bp_test/out/add_ident.out.3 b/bp_test/out/add_ident.out.3
new file mode 100644 (file)
index 0000000..96e32a0
--- /dev/null
@@ -0,0 +1,12 @@
+ID: PREFIX00000000
+SEQ: ATACGTCAG
+---
+ID: PREFIX00000001
+SEQ: AGCATGAC
+---
+ID: PREFIX00000002
+SEQ: GACTG
+---
+ID: PREFIX00000003
+SEQ: AAATGCA
+---
diff --git a/bp_test/test/test_add_ident b/bp_test/test/test_add_ident
new file mode 100755 (executable)
index 0000000..a35b990
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+source "$BP_DIR/bp_test/lib/test.sh"
+
+run "$bp -I $in -O $tmp"
+assert_no_diff $tmp $out.1
+rm $tmp
+
+run "$bp -I $in -k CUSTOM_KEY -O $tmp"
+assert_no_diff $tmp $out.2
+rm $tmp
+
+run "$bp -I $in -p PREFIX -O $tmp"
+assert_no_diff $tmp $out.3
+rm $tmp