From ec50cd09d782a304e1c390ae6e090c3260053848 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 5 Aug 2010 13:37:18 +0000 Subject: [PATCH] added test for add_ident git-svn-id: http://biopieces.googlecode.com/svn/trunk@1035 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/add_ident.in | 8 ++++++++ bp_test/out/add_ident.out.1 | 12 ++++++++++++ bp_test/out/add_ident.out.2 | 12 ++++++++++++ bp_test/out/add_ident.out.3 | 12 ++++++++++++ bp_test/test/test_add_ident | 15 +++++++++++++++ 5 files changed, 59 insertions(+) create mode 100644 bp_test/in/add_ident.in create mode 100644 bp_test/out/add_ident.out.1 create mode 100644 bp_test/out/add_ident.out.2 create mode 100644 bp_test/out/add_ident.out.3 create mode 100755 bp_test/test/test_add_ident diff --git a/bp_test/in/add_ident.in b/bp_test/in/add_ident.in new file mode 100644 index 0000000..e9a94e8 --- /dev/null +++ b/bp_test/in/add_ident.in @@ -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 index 0000000..b0787b5 --- /dev/null +++ b/bp_test/out/add_ident.out.1 @@ -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 index 0000000..42e7de8 --- /dev/null +++ b/bp_test/out/add_ident.out.2 @@ -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 index 0000000..96e32a0 --- /dev/null +++ b/bp_test/out/add_ident.out.3 @@ -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 index 0000000..a35b990 --- /dev/null +++ b/bp_test/test/test_add_ident @@ -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 -- 2.39.5