<?xml version='1.0' encoding='UTF-8'?>
<!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.-->
<!--Proposed Tool Section: [Test]-->
<tool id="bool" name="bool" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@">
  <description>Bool parameter tests</description>
  <macros>
    <token name="@EXECUTABLE@">bool</token>
    <import>macros.xml</import>
  </macros>
  <expand macro="requirements"/>
  <expand macro="stdio"/>
  <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
@EXT_FOO@
#import re

## Preprocessing

## Main program call

set -o pipefail &&
@EXECUTABLE@ -write_ctd ./ &&
python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
@EXECUTABLE@ -ini @EXECUTABLE@.ctd
| tee '$stdout'

## Postprocessing
#if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
  && mv '@EXECUTABLE@.ctd' '$ctd_out'
#end if]]></command>
  <configfiles>
    <inputs name="args_json" data_style="paths"/>
    <configfile name="hardcoded_json"><![CDATA[{}]]></configfile>
  </configfiles>
  <inputs>
    <param name="flag" argument="-flag" type="boolean" truevalue="true" falsevalue="false" checked="false" label="flag" help=""/>
    <param name="flag_adv" argument="-flag_adv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="flag" help=""/>
    <param name="true" argument="-true" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
    <param name="false" argument="-false" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
    <param name="flag_true" argument="-flag_true" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
    <param name="flag_false" argument="-flag_false" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
    <section name="test_section" title="Test Section" help="" expanded="false">
      <param name="sect_true" argument="-test_section:sect_true" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="sect_false" argument="-test_section:sect_false" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
      <param name="sect_true_adv" argument="-test_section:sect_true_adv" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="sect_false_adv" argument="-test_section:sect_false_adv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
      <param name="sect_flag_true" argument="-test_section:sect_flag_true" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="sect_flag_false" argument="-test_section:sect_flag_false" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
      <param name="sect_flag_true_adv" argument="-test_section:sect_flag_true_adv" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="sect_flag_false_adv" argument="-test_section:sect_flag_false_adv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
    </section>
    <expand macro="adv_opts_macro">
      <param name="true_adv" argument="-true_adv" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="false_adv" argument="-false_adv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
      <param name="flag_true_adv" argument="-flag_true_adv" type="boolean" truevalue="true" falsevalue="false" checked="true" label="bool" help=""/>
      <param name="flag_false_adv" argument="-flag_false_adv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="bool" help=""/>
    </expand>
    <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
      <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
    </param>
  </inputs>
  <outputs>
    <data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout">
      <filter>OPTIONAL_OUTPUTS is None</filter>
    </data>
    <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
      <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
    </data>
  </outputs>
  <tests>
    <test expect_num_outputs="1">
      <param name="flag" value="false"/>
      <param name="flag_adv" value="false"/>
      <param name="true" value="true"/>
      <param name="false" value="false"/>
      <param name="flag_true" value="true"/>
      <param name="flag_false" value="false"/>
      <section name="test_section">
        <param name="sect_true" value="true"/>
        <param name="sect_false" value="false"/>
        <param name="sect_true_adv" value="true"/>
        <param name="sect_false_adv" value="false"/>
        <param name="sect_flag_true" value="true"/>
        <param name="sect_flag_false" value="false"/>
        <param name="sect_flag_true_adv" value="true"/>
        <param name="sect_flag_false_adv" value="false"/>
      </section>
      <conditional name="adv_opts_cond">
        <param name="true_adv" value="true"/>
        <param name="false_adv" value="false"/>
        <param name="flag_true_adv" value="true"/>
        <param name="flag_false_adv" value="false"/>
        <param name="adv_opts_selector" value="advanced"/>
      </conditional>
    </test>
  </tests>
  <help><![CDATA[Bool parameter tests.


For more information, visit http://www.openms.de/unavailable.html]]></help>
  <expand macro="references"/>
</tool>
