diff resync.xml @ 1:b0ab279b5add default tip

Add test cases
author Jim Johnson <jj@umn.edu>
date Wed, 20 Mar 2013 08:26:48 -0500
parents 751f4938cf0d
children
line wrap: on
line diff
--- a/resync.xml	Tue Feb 05 15:23:18 2013 -0500
+++ b/resync.xml	Wed Mar 20 08:26:48 2013 -0500
@@ -16,6 +16,29 @@
   </outputs>
   <tests>
     <test>
+      <param name="input1" ftype="fastq" value="reads1.fastqsanger" />
+      <param name="input2" ftype="fastq" value="reads2.fastqsanger" />
+      <!-- synchronized files should remain unchanged -->
+      <output name="output1" file="reads1.fastqsanger" />
+      <output name="output2" file="reads2.fastqsanger" />
+    </test>
+    <test>
+      <param name="input1" ftype="fastq" value="reads1.fastqsanger" />
+      <param name="input2" ftype="fastq" value="reads_unsync_2.fastqsanger" />
+      <output name="output1">
+        <!-- unsynchronized files should remove unpaired read -->
+        <assert_contents>
+          <has_text text="@HWUSI-EAS1737:7:1:4411:1170#CAGATC/1" />
+          <not_has_text text="@HWUSI-EAS1737:7:1:16187:1196#CAGATC/1" />
+        </assert_contents>
+      </output>
+      <output name="output2">
+        <!-- unsynchronized files should remove unpaired read -->
+        <assert_contents>
+          <has_text text="@HWUSI-EAS1737:7:1:4411:1170#CAGATC/2" />
+          <not_has_text text="@HWUSI-EAS1737:7:1:16187:1196#CAGATC/2" />
+        </assert_contents>
+      </output>
     </test>
   </tests>
   <help>