Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote tests data: add test for multiple true #16907

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions test/functional/tools/remote_test_data_location.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
<tool id="remote_test_data_location" name="Remote test data location" version="1.0.0" profile="22.01">
<command><![CDATA[
cat '$input' > '$output'
#for $i, $f in enumerate($input_multiple)
#if $f
&& echo -n "$i "
&& cat '$f'
#end if
#end for
]]></command>
<inputs>
<param name="input" type="data" format="txt" label="Input"/>
<param name="input_multiple" type="data" optional="true" multiple="true" format="txt" label="Input"/>
</inputs>
<outputs>
<data name="output" format="txt"/>
Expand All @@ -13,11 +20,16 @@
<!-- When only the `location` is defined, the name of the input file will be infered from the last component of the URL.
In this example, it will be equivalent to `value="hello.txt"`. -->
<param name="input" location="https://raw.githubusercontent.com/galaxyproject/planemo/7be1bf5b3971a43eaa73f483125bfb8cabf1c440/tests/data/hello.txt"/>
<param name="input_multiple" location="https://raw.githubusercontent.com/galaxyproject/planemo/7be1bf5b3971a43eaa73f483125bfb8cabf1c440/tests/data/hello.txt,https://raw.githubusercontent.com/galaxyproject/planemo/b2135cb22a6974b595bc3579a99366972efcb802/tests/data/hello_truncated.txt"/>
<output name="output">
<assert_contents>
<has_line line="Hello World!"/>
</assert_contents>
</output>
<assert_stdout>
<has_line line="0 Hello World!"/>
<has_line line="1 Hello Wor"/>
</assert_stdout>
</test>
<test>
<!-- When the `value` and the `location` are defined, if the local file is missing, the remote file pointed by location will be pre-downloaded
Expand Down
Loading