Files
galaxy/test/functional/tools/for_workflows/split.xml
T
John Chilton 85ef86ab2e Improvements to workflow scaling performance testing scripts.
- Implement a wrapper script for launching a docker-galaxy-stable setup a many ways for this task including:
    - Configure container's Galaxy with outer Galaxy's lib and test directory.
    - Collect log files.
    - Log a statement for interacting with the container easily while the test is running.
    - Disable unneeded services.
 - Implement a fan-in-fan-out style workflow for performance testing.
 - Add an option to test performance of scheduling workflows without actually running jobs.
 - Sample tool for creating large collections easily at beginning of tests (much faster than uploads).
 - Sample tool for splitting a file into a collection for fan in and out workflow test.
 - Assume Python 2.7 in scripts to simplify things.
 - Add documentation.
2016-03-21 01:39:45 +00:00

34 lines
952 B
XML

<tool id="split" name="split" version="0.1.0">
<command detect_errors="exit_code">
bash $script
</command>
<configfiles>
<configfile name="script">
mkdir outputs;
cd outputs;
i=1;
while read -r line || [[ -n "\$line" ]]; do
printf "\$line\n" &gt; \$i ;
i=\$[\$i +1];
done &lt; "$input1";
</configfile>
</configfiles>
<inputs>
<param name="input1" type="data" format="txt" label="Input Text" />
</inputs>
<outputs>
<collection name="output" type="list" label="lines">
<discover_datasets pattern="__name__" directory="outputs" />
</collection>
</outputs>
<tests>
<test>
<param name="input1" value="simple_lines_both.txt" />
<output_collection name="output" type="list">
<element name="1" file="simple_line.txt" />
<element name="2" file="simple_line_alternative.txt" />
</output_collection>
</test>
</tests>
</tool>