annotate diff.xml @ 1:02dfbbf869d8 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
author bgruening
date Tue, 14 Apr 2020 13:56:01 -0400
parents 8a18547725cf
children 95a9dc82fc9a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
1 <tool id="diff" name="diff" version="3.6+galaxy1">
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
2
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
3 <description>analyzes two files and generates an unidiff text file with information about the differences and an optional Html report</description>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
4
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
5 <requirements>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
6 <requirement type="package" version="3.6">diffutils</requirement>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
7 <requirement type="package" version="4.7">sed</requirement>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
8 </requirements>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
9
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
10 <stdio>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
11 <exit_code range="2:" level="fatal" description="Something went wrong trying to check differences in files. Please check output log for more details." />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
12 <regex match="diff: memory exhausted" source="stdout" level="fatal_oom" description="Out of memory error occurred" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
13 </stdio>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
14
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
15 <command ><![CDATA[
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
16 diff -u '$input1' '$input2' > '$diff_file';
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
17 #if $generate_report:
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
18 sed -e 's/@@title@@/Diff report for '$input1.element_identifier' and '$input2.element_identifier'/g'
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
19 -e 's/@@outputformat@@/'$output_format'/g'
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
20 -e '/@@diffoutput@@/{r'$diff_file'' -e ';d}'
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
21 '$__tool_directory__/template.html' > '$html_file'
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
22 #end if
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
23 ]]>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
24 </command>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
25
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
26 <inputs>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
27 <param name="input1" type="data" format="txt" label="First input file" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
28 <param name="input2" type="data" format="txt" label="Second input file" />
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
29 <param name="generate_report" type="boolean" checked="true" truevalue="true" falsevalue="false" label="Generate HTML report" help="Generates an HTML report to visualize the differences"/>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
30 <param name="output_format" type="select" label="Choose report output format" help="Displays the differences in the report using the selected format. Either line by line or side by side.">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
31 <option value="side-by-side">Side by side</option>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
32 <option value="line-by-line">Line by line</option>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
33 </param>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
34 </inputs>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
35
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
36 <outputs>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
37 <data format="txt" name="diff_file" from_work_dir="output.txt" label="${tool.name} on ${on_string}: Raw Output" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
38 <data format="html" name="html_file" from_work_dir="output.html" label="${tool.name} on ${on_string}: Html Report">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
39 <filter>generate_report is True</filter>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
40 </data>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
41 </outputs>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
42
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
43 <tests>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
44 <test expect_exit_code="0" expect_failure="false" expect_num_outputs="1">
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
45 <param name="input1" value="file1.txt" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
46 <param name="input2" value="file1.txt" />
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
47 <param name="generate_report" value="false" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
48 <output name="diff_file">
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
49 <assert_contents>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
50 <has_n_lines n="0" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
51 </assert_contents>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
52 </output>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
53 </test>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
54 <test expect_exit_code="1" expect_failure="false" expect_num_outputs="1">
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
55 <param name="input1" value="file1.txt" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
56 <param name="input2" value="file2.txt" />
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
57 <param name="generate_report" value="false" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
58 <output name="diff_file">
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
59 <assert_contents>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
60 <has_n_lines n="5" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
61 <has_line line=" a" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
62 <has_line line="+b" />
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
63 </assert_contents>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
64 </output>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
65 </test>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
66 <test expect_exit_code="0" expect_failure="false" expect_num_outputs="2">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
67 <param name="input1" value="file1.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
68 <param name="input2" value="file2.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
69 <param name="generate_report" value="true" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
70 <output name="html_file">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
71 <assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
72 <has_text text="!DOCTYPE html" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
73 </assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
74 </output>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
75 </test>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
76 <test expect_exit_code="0" expect_failure="false" expect_num_outputs="2">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
77 <param name="input1" value="file1.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
78 <param name="input2" value="file2.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
79 <param name="generate_report" value="true" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
80 <param name="output_format" value="side-by-side" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
81 <output name="html_file">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
82 <assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
83 <has_text text="!DOCTYPE html" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
84 <has_text text="side-by-side" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
85 </assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
86 </output>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
87 </test>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
88 <test expect_exit_code="0" expect_failure="false" expect_num_outputs="2">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
89 <param name="input1" value="file1.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
90 <param name="input2" value="file2.txt" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
91 <param name="generate_report" value="true" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
92 <param name="output_format" value="line-by-line" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
93 <output name="html_file">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
94 <assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
95 <has_text text="!DOCTYPE html" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
96 <has_text text="line-by-line" />
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
97 </assert_contents>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
98 </output>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
99 </test>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
100 </tests>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
101
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
102 <help><![CDATA[
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
103 .. class:: infomark
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
104
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
105 **Purpose**
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
106
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
107 The **diff** utility is a data comparison tool that calculates and displays the differences between two files.
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
108
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
109 Unlike edit distance notions used for other purposes, diff is line-oriented rather than character-oriented, but it is like Levenshtein distance in that it tries to determine the smallest set of deletions and insertions to create one file from the other.
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
110
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
111 The diff command displays the changes made in a standard format, such that both humans and machines can understand the changes and apply them: given one file and the changes, the other file can be created.
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
112
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
113 .. class:: infomark
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
114
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
115 **Input**
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
116
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
117 Two text files to be checked for differences line by line.
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
118
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
119 .. class:: infomark
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
120
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
121 **Output**
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
122
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
123 A *text file*, either:
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
124
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
125 - containing the lines differences in **unified format** (*unidiff*),
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
126
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
127 - or an **empty** file if the two input files are the same.
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
128
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
129 An **optional** *HTML report* with a friendlier visual representation of the differences.
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
130 ]]>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
131 </help>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
132
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
133 <citations>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
134 <citation type="bibtex">
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
135 @misc{gnudiffutils,
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
136 author = {The Free Software Foundation (FSF), Inc},
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
137 year = {2017},
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
138 title = {diff (GNU diffutils)},
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
139 publisher = {The Free Software Foundation (FSF), Inc},
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
140 url = {http://www.gnu.org/software/diffutils/},
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
141 }
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
142 </citation>
1
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
143 <citation type="bibtex">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
144 @misc{diff2html,
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
145 author = {Rodrigo Fernandes},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
146 year = {2014},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
147 title = {Pretty diff to html javascript library (diff2html)},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
148 publisher = {Github},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
149 url = {https://github.com/rtfpessoa/diff2html},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
150 }
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
151 </citation>
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
152 <citation type="bibtex">
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
153 @misc{sed,
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
154 author = {The Free Software Foundation (FSF), Inc},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
155 year = {2017},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
156 title = {sed (GNU sed)},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
157 publisher = {The Free Software Foundation (FSF), Inc},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
158 url = {http://www.gnu.org/software/sed/},
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
159 }
02dfbbf869d8 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit d1ef0f3da4118bf352c5acf720f277fc5ef07665"
bgruening
parents: 0
diff changeset
160 </citation>
0
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
161 </citations>
8a18547725cf "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
bgruening
parents:
diff changeset
162 </tool>