diff --git a/test/functional/tools/code_file.py b/test/functional/tools/code_file.py new file mode 100644 index 00000000000..5425523e035 --- /dev/null +++ b/test/functional/tools/code_file.py @@ -0,0 +1,14 @@ + + +from galaxy.tools.parameters import DataToolParameter + + + +def validate_input( trans, error_map, param_values, page_param_map ): + """ + Validates the user input, before execution. + """ + first = param_values['name1'] + second = param_values['name2'] + if first == second: + error_map['name1'] = "The value names should be different." diff --git a/test/functional/tools/code_file.xml b/test/functional/tools/code_file.xml new file mode 100644 index 00000000000..9bf5a7b71b7 --- /dev/null +++ b/test/functional/tools/code_file.xml @@ -0,0 +1,15 @@ + + code_file + + cat $input1 > $output + + + + + + + + + + + diff --git a/test/functional/tools/samples_tool_conf.xml b/test/functional/tools/samples_tool_conf.xml index 4b3a1a6a597..9c35b4a5eee 100644 --- a/test/functional/tools/samples_tool_conf.xml +++ b/test/functional/tools/samples_tool_conf.xml @@ -3,6 +3,7 @@ +