1 | #!/bin/sh |
---|
2 | |
---|
3 | # A good place to look for nose info: http://somethingaboutorange.com/mrl/projects/nose/ |
---|
4 | export PATH=/usr/local/bin:$PATH |
---|
5 | rm -f run_functional_tests.log |
---|
6 | |
---|
7 | if [ ! $1 ]; then |
---|
8 | python ./scripts/functional_tests.py -v --with-nosehtml --html-report-file run_functional_tests.html --exclude="^get" functional |
---|
9 | elif [ $1 = 'help' ]; then |
---|
10 | echo "'run_functional_tests.sh' for testing all the tools in functional directory" |
---|
11 | echo "'run_functional_tests.sh aaa' for testing one test case of 'aaa' ('aaa' is the file name with path)" |
---|
12 | echo "'run_functional_tests.sh -id bbb' for testing one tool with id 'bbb' ('bbb' is the tool id)" |
---|
13 | echo "'run_functional_tests.sh -sid ccc' for testing one section with sid 'ccc' ('ccc' is the string after 'section::')" |
---|
14 | echo "'run_functional_tests.sh -list' for listing all the tool ids" |
---|
15 | elif [ $1 = '-id' ]; then |
---|
16 | python ./scripts/functional_tests.py -v functional.test_toolbox:TestForTool_$2 --with-nosehtml --html-report-file run_functional_tests.html |
---|
17 | elif [ $1 = '-sid' ]; then |
---|
18 | python ./scripts/functional_tests.py --with-nosehtml --html-report-file run_functional_tests.html -v `python tool_list.py $2` |
---|
19 | elif [ $1 = '-list' ]; then |
---|
20 | python tool_list.py |
---|
21 | echo "===========================================================================================================================================" |
---|
22 | echo "'run_functional_tests.sh -id bbb' for testing one tool with id 'bbb' ('bbb' is the tool id)" |
---|
23 | echo "'run_functional_tests.sh -sid ccc' for testing one section with sid 'ccc' ('ccc' is the string after 'section::')" |
---|
24 | else |
---|
25 | python ./scripts/functional_tests.py -v --with-nosehtml --html-report-file run_functional_tests.html $1 |
---|
26 | fi |
---|
27 | |
---|
28 | echo "'run_functional_tests.sh help' for help" |
---|
29 | echo "Note: galaxy test framework uses tool_conf.xml.sample, not tool_conf.xml" |
---|