source: branches/testScripts/NBprojectConfig.py @ 730

Last change on this file since 730 was 730, checked in by jpfasano, 12 years ago

Mofified NBcheckResult so that it is a bunch of small functions that check for one specific thing.
NBprojectConfig now defines a dictionary where the key is the project.
The value is a list of functions that need to be run to check the success of a particular test run.
The code still needs to be cleaned up, but it seems to be running and was time to do a check-in so I can move it to other platforms for testing.

  • Property svn:eol-style set to native
File size: 6.7 KB
Line 
1#! /usr/bin/env python
2
3#------------------------------------------------------------------------
4# This file is distributed under the Common Public License.
5# It is part of the BuildTools project in COIN-OR (www.coin-or.org)
6#------------------------------------------------------------------------
7
8import os
9import NBcheckResult
10
11#----------------------------------------------------------------------
12# This file defines variables which describe how the specific
13# coin-or projects are to be tested and who are their managers.
14#----------------------------------------------------------------------
15
16#----------------------------------------------------------------------
17PROJECT_EMAIL_ADDRS = {}
18UNITTEST_DIR = {}
19UNITTEST_CMD = {}
20ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS = {}
21CHECK_MAKE_TEST = {}
22CHECK_UNITTEST = {}
23
24
25
26#----------------------------------------------------------------------
27PROJECT_EMAIL_ADDRS['CoinUtils'] = 'ladanyi _AT_ us _DOT_ ibm _DOT_ com'
28CHECK_MAKE_TEST['CoinUtils']=[NBcheckResult.rc0,
29                              NBcheckResult.standardSuccessMessage]
30#does not have references to third party packages
31
32#----------------------------------------------------------------------
33PROJECT_EMAIL_ADDRS['DyLP'] = 'lou _AT_ cs _DOT_ sfu _DOT_ ca'
34UNITTEST_DIR['DyLP'] = os.path.join('Osi','test')
35UNITTEST_CMD['DyLP'] = './unitTest -testOsiSolverInterface -netlibDir=_NETLIBDIR_ -cerr2cout' 
36CHECK_MAKE_TEST['DyLP']=[
37                         NBcheckResult.rc0,
38                         NBcheckResult.standardSuccessMessage,
39                         NBcheckResult.noSolverInterfaceTestingIssueMessage]
40CHECK_UNITTEST['DyLP']=[
41                         NBcheckResult.rc0,
42                         NBcheckResult.standardSuccessMessage,
43                         NBcheckResult.noSolverInterfaceTestingIssueMessage]
44#does not have references to third party packages
45
46#----------------------------------------------------------------------
47PROJECT_EMAIL_ADDRS['Clp'] = 'jjforre _AT_ us _DOT_ ibm _DOT_ com'
48UNITTEST_DIR['Clp'] = os.path.join('Clp','src')
49UNITTEST_CMD['Clp'] = './clp -unitTest dirNetlib=_NETLIBDIR_ -netlib' 
50CHECK_MAKE_TEST['Clp']=[
51                         NBcheckResult.rc0,
52                         NBcheckResult.standardSuccessMessage]
53CHECK_UNITTEST['Clp']=[
54                         NBcheckResult.rc0,
55                         NBcheckResult.standardSuccessMessage,
56                         NBcheckResult.endWithWoodw]
57
58#----------------------------------------------------------------------
59PROJECT_EMAIL_ADDRS['SYMPHONY'] = 'tkr2 _AT_ lehigh _DOT_ edu'
60CHECK_MAKE_TEST['SYMPHONY']=[
61                         NBcheckResult.rc0,
62                         NBcheckResult.standardSuccessMessage]
63UNITTEST_DIR['SYMPHONY'] = '.'
64UNITTEST_CMD['SYMPHONY'] = 'make fulltest' 
65CHECK_UNITTEST['SYMPHONY']=[
66                         NBcheckResult.rc0,
67                         NBcheckResult.standardSuccessMessage,
68                         ]
69
70#----------------------------------------------------------------------
71PROJECT_EMAIL_ADDRS['Vol'] = 'barahon _AT_ us _DOT_ ibm _DOT_ com'
72CHECK_MAKE_TEST['Vol']=[
73                         NBcheckResult.rc0]
74#does not have references to third party packages
75
76#----------------------------------------------------------------------
77PROJECT_EMAIL_ADDRS['Osi'] = 'mjs _AT_ ces _DOT_ clemson _DOT_ edu'
78UNITTEST_DIR['Osi'] = os.path.join('Osi','test')
79UNITTEST_CMD['Osi'] = './unitTest -testOsiSolverInterface -netlibDir=_NETLIBDIR_ -cerr2cout' 
80CHECK_MAKE_TEST['Osi']=[
81                         NBcheckResult.rc0,
82                         NBcheckResult.standardSuccessMessage,
83                         NBcheckResult.noSolverInterfaceTestingIssueMessage]
84CHECK_UNITTEST['Osi']=[
85                         NBcheckResult.rc0,
86                         NBcheckResult.standardSuccessMessage,
87                         NBcheckResult.noSolverInterfaceTestingIssueMessage]
88
89#----------------------------------------------------------------------
90PROJECT_EMAIL_ADDRS['Cgl'] = 'robinlh _AT_ us _DOT_ ibm _DOT_ com'
91CHECK_MAKE_TEST['Cgl']=[
92                         NBcheckResult.rc0,
93                         NBcheckResult.standardSuccessMessage]
94#does not have references to third party packages
95
96#----------------------------------------------------------------------
97PROJECT_EMAIL_ADDRS['Cbc'] = 'jjforre _AT_ us _DOT_ ibm _DOT_ com'
98UNITTEST_DIR['Cbc'] = os.path.join('Cbc','src')
99UNITTEST_CMD['Cbc'] = './cbc -unitTest -dirMiplib=_MIPLIB3DIR_ -miplib' 
100CHECK_MAKE_TEST['Cbc']=[
101                         NBcheckResult.rc0,
102                         NBcheckResult.cbcMakeTestSuccessMessage]
103CHECK_UNITTEST['Cbc']=[ NBcheckResult.rc0to2 ]
104
105#----------------------------------------------------------------------
106PROJECT_EMAIL_ADDRS['Ipopt'] = 'andreasw _AT_ us _DOT_ ibm _DOT_ com'
107CHECK_MAKE_TEST['Ipopt']=[NBcheckResult.rc0
108                         # ,NBcheckResult.standardSuccessMessage
109                         ]
110#third party packages are not optional here
111
112#----------------------------------------------------------------------
113PROJECT_EMAIL_ADDRS['Bonmin'] = 'pbonami _AT_ us _DOT_ ibm _DOT_ com'
114CHECK_MAKE_TEST['Bonmin']=[NBcheckResult.rc0
115                          ,NBcheckResult.standardSuccessMessage
116                          ]
117#third party packages are not optional here
118
119#----------------------------------------------------------------------
120PROJECT_EMAIL_ADDRS['FlopC++'] = 'Tim _DOT_ Hultberg _AT_ eumetsat _DOT_ int'
121CHECK_MAKE_TEST['FlopC++']=[
122                         NBcheckResult.rc0,
123                         NBcheckResult.standardSuccessMessage]
124#does not have references to third party packages
125
126#----------------------------------------------------------------------
127PROJECT_EMAIL_ADDRS['OS'] = 'kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu'
128CHECK_MAKE_TEST['OS']=[
129                         NBcheckResult.rc0,
130                         NBcheckResult.standardSuccessMessage]
131#third party packages are not optional if Ipopt is not excluded
132
133#----------------------------------------------------------------------
134PROJECT_EMAIL_ADDRS['CppAD'] = 'bradbell _AT_ washington _DOT_ edu'
135CHECK_MAKE_TEST['CppAD']=[NBcheckResult.anythingGoes]
136UNITTEST_DIR['CppAD'] = os.path.join('.')
137UNITTEST_CMD['CppAD'] = './example/example'
138CHECK_UNITTEST['CppAD']=[NBcheckResult.rc0] 
139#does not have references to third party packages
140
141#----------------------------------------------------------------------
142PROJECT_EMAIL_ADDRS['Smi'] = 'kingaj _AT_ us _DOT_ ibm _DOT_ com'
143CHECK_MAKE_TEST['Smi']=[
144                         NBcheckResult.rc0,
145                         NBcheckResult.standardSuccessMessage]
146#does not have references to third party packages
147#TODO: need some check whether make test was successful; what is the behaviour in Smi's unittest if it fails?
Note: See TracBrowser for help on using the repository browser.