]> git.donarmstrong.com Git - biopieces.git/commitdiff
added tests for sort_records
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sun, 5 Jun 2011 15:41:03 +0000 (15:41 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Sun, 5 Jun 2011 15:41:03 +0000 (15:41 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1457 74ccb610-7750-0410-82ae-013aeee3265d

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

diff --git a/bp_test/in/sort_records.in b/bp_test/in/sort_records.in
new file mode 100644 (file)
index 0000000..d16b0f4
--- /dev/null
@@ -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 (file)
index 0000000..95fb36f
--- /dev/null
@@ -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 (file)
index 0000000..5299f13
--- /dev/null
@@ -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 (file)
index 0000000..93fab0a
--- /dev/null
@@ -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 (executable)
index 0000000..18e169a
--- /dev/null
@@ -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