Skip to content

Commit

Permalink
Adjust test tool and datatype config to best practices
Browse files Browse the repository at this point in the history
Co-authored-by: Björn Grüning <[email protected]>
  • Loading branch information
mvdbeek and bgruening committed Feb 26, 2025
1 parent c27cec4 commit b7238a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/functional/tools/create_directory_index.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<tool id="create_directory_index" name="Create directory index" version="1.0" profile="24.2">
<command><![CDATA[
mkdir '$index.extra_files_path' &&
cp '$reference' '$index.extra_files_path'/1.fasta
cp '$reference' '$index.extra_files_path/1.fasta'
]]></command>
<inputs>
<param name="reference" type="data" label="Select a genome to index" help="Build an index for this FASTA sequence." format="fasta"/>
Expand All @@ -12,7 +12,7 @@ cp '$reference' '$index.extra_files_path'/1.fasta
<tests>
<test>
<param name="reference" value="1.fasta"></param>
<output name="index">
<output name="index" ftype="bwa_mem2_index">
<extra_files name="1.fasta" type="file" value="1.fasta"></extra_files>
</output>
</test>
Expand Down
2 changes: 1 addition & 1 deletion test/functional/tools/sample_datatypes_conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
</datatype>
<datatype extension="directory" type="galaxy.datatypes.data:Directory">
</datatype>
<datatype extension="bwa_mem2_index" display_in_upload="true" type="galaxy.datatypes.data:Directory"/>
<datatype extension="bwa_mem2_index" display_in_upload="true" type="galaxy.datatypes.data:Directory" subclass="true"/>
<datatype extension="h5" type="galaxy.datatypes.binary:H5" mimetype="application/octet-stream" display_in_upload="true"/>
</registration>
</datatypes>
2 changes: 1 addition & 1 deletion test/functional/tools/use_directory_index.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<tool id="use_directory_index" name="Uses directory index" version="1.0" profile="24.2">
<command><![CDATA[
cp '$reference.extra_files_path'/1.fasta '$output'
cp '$reference.extra_files_path/1.fasta' '$output'
]]></command>
<inputs>
<param name="reference" type="data" label="Select an index" format="bwa_mem2_index"/>
Expand Down

0 comments on commit b7238a0

Please sign in to comment.