mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
30 lines
1.9 KiB
Bash
Executable File
30 lines
1.9 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# A good place to look for nose info: http://somethingaboutorange.com/mrl/projects/nose/
|
|
|
|
rm -f run_functional_tests.log
|
|
|
|
if [ ! $1 ]; then
|
|
python -ES ./scripts/functional_tests.py -v --with-nosehtml --html-report-file run_functional_tests.html --exclude="^get" functional
|
|
elif [ $1 = 'help' ]; then
|
|
echo "'run_functional_tests.sh' for testing all the tools in functional directory"
|
|
echo "'run_functional_tests.sh aaa' for testing one test case of 'aaa' ('aaa' is the file name with path)"
|
|
echo "'run_functional_tests.sh -id bbb' for testing one tool with id 'bbb' ('bbb' is the tool id)"
|
|
echo "'run_functional_tests.sh -sid ccc' for testing one section with sid 'ccc' ('ccc' is the string after 'section::')"
|
|
echo "'run_functional_tests.sh -list' for listing all the tool ids"
|
|
elif [ $1 = '-id' ]; then
|
|
python -ES ./scripts/functional_tests.py -v functional.test_toolbox:TestForTool_$2 --with-nosehtml --html-report-file run_functional_tests.html
|
|
elif [ $1 = '-sid' ]; then
|
|
python -ES ./scripts/functional_tests.py --with-nosehtml --html-report-file run_functional_tests.html -v `python tool_list.py $2`
|
|
elif [ $1 = '-list' ]; then
|
|
python tool_list.py
|
|
echo "==========================================================================================================================================="
|
|
echo "'run_functional_tests.sh -id bbb' for testing one tool with id 'bbb' ('bbb' is the tool id)"
|
|
echo "'run_functional_tests.sh -sid ccc' for testing one section with sid 'ccc' ('ccc' is the string after 'section::')"
|
|
else
|
|
python -ES ./scripts/functional_tests.py -v --with-nosehtml --html-report-file run_functional_tests.html $1
|
|
fi
|
|
|
|
echo "'run_functional_tests.sh help' for help"
|
|
echo "Note: galaxy test framework uses tool_conf.xml.sample, not tool_conf.xml"
|