*Fix another path *shame*
[shinken.git] / test / jenkins / longnose.bat
blob2894c166bfd303ab9c073e7bf17dfd760f5dad99
1 ECHO RUNNING SHORT TESTS\r
2 @ECHO OFF\r
3 \r
4 :: Copyright (C) 2009-2011 :\r
5 ::     Gabes Jean, naparuba@gmail.com\r
6 ::     Gerhard Lausser, Gerhard.Lausser@consol.de\r
7 ::\r
8 :: This file is part of Shinken.\r
9 ::\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
14 ::\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
19 ::\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
25 CD %~dp0\..\r
27 REM clean up leftovers from a former run\r
28 DEL nosetests.xml\r
29 DEL coverage.xml\r
30 DEL .coverage\r
32 REM now run a list of test files in a loop. abort the loop\r
33 REM if a test failed.\r
34 FOR %%f IN (  ^\r
35   test_services.py ^\r
36   test_hosts.py ^\r
37   test_host_missing_adress.py ^\r
38   test_not_hostname.py ^\r
39   test_bad_contact_call.py ^\r
40   test_action.py ^\r
41   test_config.py ^\r
42   test_dependencies.py ^\r
43   test_npcdmod.py ^\r
44   test_problem_impact.py ^\r
45   test_timeperiods.py ^\r
46   test_command.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
52   test_db.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
59   test_notifway.py ^\r
60   test_eventids.py ^\r
61   test_obsess.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
70   test_realms.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
77   test_dispatcher.py\r
78   test_business_correlator.py ^\r
79   test_livestatus.py ) DO (\r
80 CALL :FUNC1 %%f\r
81 IF ERRORLEVEL 1 GOTO FAIL\r
82 )\r
83 REM now the long-running ones\r
84 FOR %%f IN (  ^\r
85   test_maintenance_period.py ^\r
86   test_downtimes.py ^\r
87   test_acknowledge.py ) DO (\r
88 CALL :FUNC1 %%f\r
89 IF ERRORLEVEL 1 GOTO FAIL\r
90 )\r
92 REM combine the single coverage files\r
93 C:\Python27\Scripts\coverage xml --omit=/usr/lib\r
94 EXIT /B 0\r
96 :FAIL\r
97 ECHO one of the tests failed. i give up.\r
98 EXIT /B 1\r
100 REM here is where the tests actually run\r
101 :FUNC1 \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