From 6c77e1a70b45b5f714f98825b75887f11156fb5f Mon Sep 17 00:00:00 2001 From: martinahansen Date: Sun, 5 Jun 2011 15:41:03 +0000 Subject: [PATCH] added tests for sort_records git-svn-id: http://biopieces.googlecode.com/svn/trunk@1457 74ccb610-7750-0410-82ae-013aeee3265d --- bp_test/in/sort_records.in | 12 ++++++++++++ bp_test/out/sort_records.out.1 | 12 ++++++++++++ bp_test/out/sort_records.out.2 | 12 ++++++++++++ bp_test/out/sort_records.out.3 | 12 ++++++++++++ bp_test/test/test_sort_records | 15 +++++++++++++++ 5 files changed, 63 insertions(+) create mode 100644 bp_test/in/sort_records.in create mode 100644 bp_test/out/sort_records.out.1 create mode 100644 bp_test/out/sort_records.out.2 create mode 100644 bp_test/out/sort_records.out.3 create mode 100755 bp_test/test/test_sort_records diff --git a/bp_test/in/sort_records.in b/bp_test/in/sort_records.in new file mode 100644 index 0000000..d16b0f4 --- /dev/null +++ b/bp_test/in/sort_records.in @@ -0,0 +1,12 @@ +SEQ_LEN: 1 +--- +SEQ_LEN: 2 +--- +SEQ_LEN: 200 +--- +SEQ_LEN: 111 +--- +SEQ_LEN: 20 +--- +SEQ_LEN: 11 +--- diff --git a/bp_test/out/sort_records.out.1 b/bp_test/out/sort_records.out.1 new file mode 100644 index 0000000..95fb36f --- /dev/null +++ b/bp_test/out/sort_records.out.1 @@ -0,0 +1,12 @@ +SEQ_LEN: 1 +--- +SEQ_LEN: 11 +--- +SEQ_LEN: 111 +--- +SEQ_LEN: 2 +--- +SEQ_LEN: 20 +--- +SEQ_LEN: 200 +--- diff --git a/bp_test/out/sort_records.out.2 b/bp_test/out/sort_records.out.2 new file mode 100644 index 0000000..5299f13 --- /dev/null +++ b/bp_test/out/sort_records.out.2 @@ -0,0 +1,12 @@ +SEQ_LEN: 1 +--- +SEQ_LEN: 2 +--- +SEQ_LEN: 11 +--- +SEQ_LEN: 20 +--- +SEQ_LEN: 111 +--- +SEQ_LEN: 200 +--- diff --git a/bp_test/out/sort_records.out.3 b/bp_test/out/sort_records.out.3 new file mode 100644 index 0000000..93fab0a --- /dev/null +++ b/bp_test/out/sort_records.out.3 @@ -0,0 +1,12 @@ +SEQ_LEN: 200 +--- +SEQ_LEN: 20 +--- +SEQ_LEN: 2 +--- +SEQ_LEN: 111 +--- +SEQ_LEN: 11 +--- +SEQ_LEN: 1 +--- diff --git a/bp_test/test/test_sort_records b/bp_test/test/test_sort_records new file mode 100755 index 0000000..18e169a --- /dev/null +++ b/bp_test/test/test_sort_records @@ -0,0 +1,15 @@ +#!/bin/bash + +source "$BP_DIR/bp_test/lib/test.sh" + +run "$bp -I $in -k SEQ_LEN -O $tmp" +assert_no_diff $tmp $out.1 +clean + +run "$bp -I $in -k SEQ_LENn -O $tmp" +assert_no_diff $tmp $out.2 +clean + +run "$bp -I $in -k SEQ_LEN -r -O $tmp" +assert_no_diff $tmp $out.3 +clean -- 2.39.5