Mercurial > repos > brinkmanlab > hash
comparison sha256sum.xml @ 0:f680aef3456b draft default tip
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/hash commit 33b02e08cbc8f76fb4b8537f8c968393f85a1b5e-dirty"
author | brinkmanlab |
---|---|
date | Fri, 24 Jan 2020 18:00:03 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f680aef3456b |
---|---|
1 <tool id="sha256sum" name="Coreutils sha256sum" version="1.0" profile="16.04"> | |
2 <description>Generate or check SHA256 (256-bit) checksums</description> | |
3 <edam_topics> | |
4 <edam_topic>topic_3572</edam_topic> | |
5 </edam_topics> | |
6 <edam_operations> | |
7 <edam_operation>operation_3283</edam_operation> | |
8 <edam_operation>operation_3348</edam_operation> | |
9 </edam_operations> | |
10 <requirements> | |
11 <requirement type="package">coreutils</requirement> | |
12 </requirements> | |
13 <version_command><![CDATA[ sha256sum --version ]]></version_command> | |
14 <command detect_errors="aggressive"><![CDATA[ | |
15 #if $input.is_of_type("binary") | |
16 #set $type = '--binary' | |
17 #else | |
18 #set $type = '--text' | |
19 #end if | |
20 #if $mode_select.mode == '--check' | |
21 echo '$input' | cat $mode_select.hash - | sha256sum $tag $type $mode_select.mode --warn --status | |
22 #else | |
23 sha256sum $tag $type $input | sed 's/ .*//' > $output | |
24 #end if | |
25 ]]></command> | |
26 <inputs> | |
27 <param name="input" type="data" format="data" label="Input" /> | |
28 <conditional name="mode_select"> | |
29 <param name="mode" type="select" label="Mode"> | |
30 <option value="" selected="true">Generate hash</option> | |
31 <option value="--check">Compare hash</option> | |
32 </param> | |
33 <when value=""> | |
34 </when> | |
35 <when value="--check"> | |
36 <param name="hash" type="data" format="txt" label="Hash" /> | |
37 </when> | |
38 </conditional> | |
39 <param name="tag" type="boolean" truevalue="--tag" falsevalue="" checked="false" label="Create a BSD-style checksum" /> | |
40 </inputs> | |
41 <outputs> | |
42 <data name="output" format="txt" /> | |
43 </outputs> | |
44 <tests> | |
45 <test expect_num_outputs="1"> | |
46 <param name="input" value="test-data/test.txt" ftype="txt" /> | |
47 <output name="output" ftype="txt" > | |
48 <assert_contents> | |
49 <has_text text="53a8b4455d54e2d67c24c44763330338d65c883d9053d752710bc4e67e674b65" /> | |
50 </assert_contents> | |
51 </output> | |
52 </test> | |
53 </tests> | |
54 <help><![CDATA[ | |
55 GNU coreutils online help: <http://www.gnu.org/software/coreutils/> | |
56 ]]></help> | |
57 <citations> | |
58 <citation type="doi">10.5281/zenodo.3364789</citation> | |
59 </citations> | |
60 </tool> |