mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
- 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.
34 lines
952 B
XML
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" > \$i ;
|
|
i=\$[\$i +1];
|
|
done < "$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>
|