From a0d6d113abc22312adea2b332192f6d6c12af0ac Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 21 Nov 2013 19:17:12 -0600 Subject: [PATCH] Add more sample tools for tool testing framework. Adding multi_select.xml, which demonstrates twill cannot deal with - at the beginning of select param values - this test works immediately with API interactor. Also adding a multi_output.xml, this is a tool using variable number of outputs (force_refresh=True), both interactors pass this but it is a good test to verify that. Also adding example to test multi-page tools (multi_page.xml) - both interactors pass this test. Though the API needed to be adjusted to allow its use (in a previous changeset). Also adding example tool demonstrating extra_files output. Finally, a tool simple_constructs.xml that just tests the basics, various parameter types, simple conditional, and simple repeat. --- test/functional/tools/composite_output.xml | 24 +++++++++++ test/functional/tools/multi_output.xml | 22 ++++++++++ test/functional/tools/multi_page.xml | 29 +++++++++++++ test/functional/tools/multi_select.xml | 29 +++++++++++++ test/functional/tools/samples_tool_conf.xml | 5 +++ test/functional/tools/simple_constructs.xml | 47 +++++++++++++++++++++ 6 files changed, 156 insertions(+) create mode 100644 test/functional/tools/composite_output.xml create mode 100644 test/functional/tools/multi_output.xml create mode 100644 test/functional/tools/multi_page.xml create mode 100644 test/functional/tools/multi_select.xml create mode 100644 test/functional/tools/simple_constructs.xml diff --git a/test/functional/tools/composite_output.xml b/test/functional/tools/composite_output.xml new file mode 100644 index 00000000000..bdc21159a28 --- /dev/null +++ b/test/functional/tools/composite_output.xml @@ -0,0 +1,24 @@ + + mkdir $output.extra_files_path; cp $input.extra_files_path/* $output.extra_files_path + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/functional/tools/multi_output.xml b/test/functional/tools/multi_output.xml new file mode 100644 index 00000000000..85bc86daa1c --- /dev/null +++ b/test/functional/tools/multi_output.xml @@ -0,0 +1,22 @@ + + + echo "Hello" > $report; + echo "World" > '${__new_file_path__}/primary_${report.id}_moo_visible_?' + + + + + + + + + + + + + + + + + + diff --git a/test/functional/tools/multi_page.xml b/test/functional/tools/multi_page.xml new file mode 100644 index 00000000000..a9dc042586a --- /dev/null +++ b/test/functional/tools/multi_page.xml @@ -0,0 +1,29 @@ + + + ${p1} ${p2} + + cat $config > $output + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/functional/tools/multi_select.xml b/test/functional/tools/multi_select.xml new file mode 100644 index 00000000000..d1356157cae --- /dev/null +++ b/test/functional/tools/multi_select.xml @@ -0,0 +1,29 @@ + + multi_select + + ${select_ex} + + cat $config > $output + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/functional/tools/samples_tool_conf.xml b/test/functional/tools/samples_tool_conf.xml index 676a5e877f9..cc05026efb8 100644 --- a/test/functional/tools/samples_tool_conf.xml +++ b/test/functional/tools/samples_tool_conf.xml @@ -1,7 +1,12 @@ + + + + + \ No newline at end of file diff --git a/test/functional/tools/simple_constructs.xml b/test/functional/tools/simple_constructs.xml new file mode 100644 index 00000000000..b543af03a89 --- /dev/null +++ b/test/functional/tools/simple_constructs.xml @@ -0,0 +1,47 @@ + + + echo "$p1.p1val" >> $out_file1; + echo "$booltest" >> $out_file1; + echo "$inttest" >> $out_file1; + echo "$floattest" >> $out_file1; + cat "$files[0].file" >> $out_file1; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +