1 ECHO RUNNING SHORT TESTS
\r
4 :: Copyright (C) 2009-2011 :
\r
5 :: Gabes Jean, naparuba@gmail.com
\r
6 :: Gerhard Lausser, Gerhard.Lausser@consol.de
\r
8 :: This file is part of Shinken.
\r
10 :: Shinken is free software: you can redistribute it and/or modify
\r
11 :: it under the terms of the GNU Affero General Public License as published by
\r
12 :: the Free Software Foundation, either version 3 of the License, or
\r
13 :: (at your option) any later version.
\r
15 :: Shinken is distributed in the hope that it will be useful,
\r
16 :: but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
17 :: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
18 :: GNU Affero General Public License for more details.
\r
20 :: You should have received a copy of the GNU Affero General Public License
\r
21 :: along with Shinken. If not, see <http://www.gnu.org/licenses/>.
\r
23 REM this script is located in test/jenkins but needs to be run from test
\r
24 REM find out the script's directory and then go to the dir one level above.
\r
27 REM clean up leftovers from a former run
\r
32 REM now run a list of test files in a loop. abort the loop
\r
33 REM if a test failed.
\r
37 test_host_missing_adress.py ^
\r
38 test_not_hostname.py ^
\r
39 test_bad_contact_call.py ^
\r
42 test_dependencies.py ^
\r
44 test_problem_impact.py ^
\r
45 test_timeperiods.py ^
\r
47 test_module_simplelog.py ^
\r
48 test_module_service_perfdata.py ^
\r
49 test_module_host_perfdata.py ^
\r
50 test_module_pickle_retention.py ^
\r
51 test_service_tpl_on_host_tpl.py ^
\r
53 test_macroresolver.py ^
\r
54 test_complex_hostgroups.py ^
\r
55 test_resultmodulation.py ^
\r
56 test_satellites.py ^
\r
57 test_illegal_names.py ^
\r
58 test_service_generators.py ^
\r
62 test_commands_perfdata.py ^
\r
63 test_notification_warning.py ^
\r
64 test_timeperiod_inheritance.py ^
\r
65 test_bad_timeperiods.py ^
\r
66 test_maintenance_period.py ^
\r
67 test_external_commands.py ^
\r
68 test_on_demand_event_handlers.py ^
\r
69 test_properties.py ^
\r
71 test_host_without_cmd.py ^
\r
72 test_escalations.py ^
\r
73 test_notifications.py ^
\r
74 test_contactdowntimes.py ^
\r
75 test_nullinheritance.py ^
\r
76 test_create_link_from_ext_cmd.py ^
\r
78 test_business_correlator.py ^
\r
79 test_livestatus.py ) DO (
\r
81 IF ERRORLEVEL 1 GOTO FAIL
\r
83 REM now the long-running ones
\r
85 test_maintenance_period.py ^
\r
87 test_acknowledge.py ) DO (
\r
89 IF ERRORLEVEL 1 GOTO FAIL
\r
92 REM combine the single coverage files
\r
93 C:\Python27\Scripts\coverage xml --omit=/usr/lib
\r
97 ECHO one of the tests failed. i give up.
\r
100 REM here is where the tests actually run
\r
102 C:\Python27\Scripts\nosetests -v -s --with-xunit --with-coverage %1
\r
103 IF ERRORLEVEL 1 goto :EOF
\r
104 ECHO successfully ran %1
\r
105 GOTO :EOF [Return to Main]
\r