mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-16 15:45:04 +08:00
- Add another test to demonstrate referencing entries in galaxy.json for datasets by dataset path basename instead of ID. - Add a bit more documentation to test tools. - Redo the structure of galaxy.json for profile >= 17.09 tools with two new test tools to demonstrate the new structure - for both output dataset metadata and discovered dataset metadata. - Improved abstractions for interaction between tools and jobs to enable different tool provided metadata collection depending on tool profile version.
37 lines
1.1 KiB
XML
37 lines
1.1 KiB
XML
<tool id="tool_provided_metadata_5" name="tool_provided_metadata_5" profile="17.09" version="1.0.0">
|
|
<!-- Demonstrate setting simple output dataset metadata via galaxy.json for profile >= 17.09 tools. -->
|
|
<command>
|
|
echo "This is a line of text." > $out1;
|
|
cp $c1 galaxy.json;
|
|
</command>
|
|
<configfiles>
|
|
<configfile name="c1">{"out1": {
|
|
"name": "my dynamic name",
|
|
"ext": "txt",
|
|
"info": "my dynamic info",
|
|
"dbkey": "cust1"
|
|
}}
|
|
</configfile>
|
|
</configfiles>
|
|
<inputs>
|
|
<param name="input1" type="data" label="Input Dataset"/>
|
|
</inputs>
|
|
<outputs>
|
|
<!-- Set format="auto" to read from galaxy.json, use auto_format="true"
|
|
j to sniff. -->
|
|
<data name="out1" format="auto" />
|
|
</outputs>
|
|
<help>
|
|
</help>
|
|
<tests>
|
|
<test>
|
|
<param name="input1" value="simple_line.txt" />
|
|
<output name="out1" file="simple_line.txt" ftype="txt">
|
|
<metadata name="name" value="my dynamic name" />
|
|
<metadata name="info" value="my dynamic info" />
|
|
<metadata name="dbkey" value="cust1" />
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|