Mercurial > repos > bgruening > diff
comparison diff.xml @ 0:8a18547725cf draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/diff commit 9b11cc5751c0931172d00799b246fcbd63660311"
author | bgruening |
---|---|
date | Tue, 31 Mar 2020 16:36:28 -0400 |
parents | |
children | 02dfbbf869d8 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8a18547725cf |
---|---|
1 <tool id="diff" name="diff" version="3.6+galaxy0"> | |
2 | |
3 <description>analyzes two files and generates a text file with information about the lines that are different</description> | |
4 | |
5 <requirements> | |
6 <requirement type="package" version="3.6">diffutils</requirement> | |
7 </requirements> | |
8 | |
9 <stdio> | |
10 <exit_code range="2:" level="fatal" description="Something went wrong trying to check differences in files. Please check output log for more details." /> | |
11 <regex match="diff: memory exhausted" source="stdout" level="fatal_oom" description="Out of memory error occurred" /> | |
12 </stdio> | |
13 | |
14 <command ><![CDATA[ | |
15 diff -u '$input1' '$input2' > '$output1' | |
16 ]]> | |
17 </command> | |
18 | |
19 <inputs> | |
20 <param name="input1" type="data" format="txt" label="First input file" /> | |
21 <param name="input2" type="data" format="txt" label="Second input file" /> | |
22 </inputs> | |
23 | |
24 <outputs> | |
25 <data name="output1" format="txt" /> | |
26 </outputs> | |
27 | |
28 <tests> | |
29 <test expect_exit_code="0" expect_failure="false"> | |
30 <param name="input1" value="file1.txt" /> | |
31 <param name="input2" value="file1.txt" /> | |
32 <output name="output1"> | |
33 <assert_contents> | |
34 <has_n_lines n="0" /> | |
35 </assert_contents> | |
36 </output> | |
37 </test> | |
38 <test expect_exit_code="1" expect_failure="false"> | |
39 <param name="input1" value="file1.txt" /> | |
40 <param name="input2" value="file2.txt" /> | |
41 <output name="output1"> | |
42 <assert_contents> | |
43 <has_n_lines n="5" /> | |
44 <has_line line=" a" /> | |
45 <has_line line="+b" /> | |
46 </assert_contents> | |
47 </output> | |
48 </test> | |
49 </tests> | |
50 | |
51 <help><![CDATA[ | |
52 .. class:: infomark | |
53 | |
54 **Purpose** | |
55 | |
56 The **diff** utility is a data comparison tool that calculates and displays the differences between two files. | |
57 | |
58 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. | |
59 | |
60 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. | |
61 | |
62 .. class:: infomark | |
63 | |
64 **Input** | |
65 | |
66 Two text files to be checked for differences line by line. | |
67 | |
68 .. class:: infomark | |
69 | |
70 **Output** | |
71 | |
72 A *single text file*, either: | |
73 | |
74 - containing the lines differences in **unified format** (*unidiff*), | |
75 | |
76 - or an **empty** file if the two input files are the same. | |
77 ]]> | |
78 </help> | |
79 | |
80 <citations> | |
81 <citation type="bibtex"> | |
82 @misc{gnudiffutils, | |
83 author = {The Free Software Foundation (FSF), Inc}, | |
84 year = {2017}, | |
85 title = {diff (GNU diffutils)}, | |
86 publisher = {The Free Software Foundation (FSF), Inc}, | |
87 url = {http://www.gnu.org/software/diffutils/}, | |
88 } | |
89 </citation> | |
90 </citations> | |
91 </tool> |