From 0b99b2cb39e8583284f0365eebc0e676d03d0512 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 24 Nov 2010 15:02:54 +0000 Subject: [PATCH] added tests for uniq_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@1168 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/uniq_seq.in | 12 ++++++++++++ bp_test/out/uniq_seq.out.1 | 8 ++++++++ bp_test/out/uniq_seq.out.2 | 4 ++++ bp_test/test/test_uniq_seq | 11 +++++++++++ 4 files changed, 35 insertions(+) create mode 100644 bp_test/in/uniq_seq.in create mode 100644 bp_test/out/uniq_seq.out.1 create mode 100644 bp_test/out/uniq_seq.out.2 create mode 100755 bp_test/test/test_uniq_seq diff --git a/bp_test/in/uniq_seq.in b/bp_test/in/uniq_seq.in new file mode 100644 index 0000000..85bd1fb --- /dev/null +++ b/bp_test/in/uniq_seq.in @@ -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 index 0000000..c336ae8 --- /dev/null +++ b/bp_test/out/uniq_seq.out.1 @@ -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 index 0000000..d3ab503 --- /dev/null +++ b/bp_test/out/uniq_seq.out.2 @@ -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 index 0000000..760e1b0 --- /dev/null +++ b/bp_test/test/test_uniq_seq @@ -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 -- 2.39.5