source: branches/testScripts/NBprojectConfig.py @ 650

Last change on this file since 650 was 650, checked in by stefan, 12 years ago

make it possible to define project dependent build types (configure call parameters)

  • Property svn:executable set to *
File size: 5.1 KB
Line 
1#! /usr/bin/env python
2
3import os
4import NBuserConfig
5
6#----------------------------------------------------------------------
7# This file defines variables which describe how the specific
8# coin-or projects are to be build and tested.
9#----------------------------------------------------------------------
10
11#----------------------------------------------------------------------
12PROJECT_EMAIL_ADDRS = {}
13PROJECT_CONFIG_LINES = {}
14UNITTEST_DIR = {}
15UNITTEST_CMD = {}
16ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS = {} 
17SKIP3RDPARTY_CONFIG_LINE = 'COIN_SKIP_PROJECTS="ThirdParty/ASL ThirdParty/Blas ThirdParty/Glpk ThirdParty/HSL ThirdParty/Lapack ThirdParty/Mumps"'
18STANDARD_CONFIG_LINES = {}
19SKIP3RDPARTY_CONFIG_LINES = {}
20
21for buildType in NBuserConfig.BUILD_TYPES :
22        if "Debug" in buildType :
23                key = 'Debug'
24                val = '--enable-debug'
25        else :
26                key = 'Default'
27                val = ''
28
29        if "ThirdParty" in buildType :
30                STANDARD_CONFIG_LINES[key] = val
31        else :
32                key += "-no3rdParty"
33                val += ' '+SKIP3RDPARTY_CONFIG_LINE
34                SKIP3RDPARTY_CONFIG_LINES[key] = val
35
36#----------------------------------------------------------------------
37PROJECT_EMAIL_ADDRS['CoinUtils'] = 'ladanyi _AT_ us _DOT_ ibm _DOT_ com'
38ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['CoinUtils'] = ['make test']
39PROJECT_CONFIG_LINES['CoinUtils'] = STANDARD_CONFIG_LINES.copy()
40#does not have references to third party packages
41
42#----------------------------------------------------------------------
43PROJECT_EMAIL_ADDRS['DyLP'] = 'lou _AT_ cs _DOT_ sfu _DOT_ ca'
44UNITTEST_DIR['DyLP'] = os.path.join('Osi','test')
45UNITTEST_CMD['DyLP'] = './unitTest -testOsiSolverInterface -netlibDir=_NETLIBDIR_ -cerr2cout' 
46ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['DyLP'] = ['make test']
47PROJECT_CONFIG_LINES['DyLP'] = STANDARD_CONFIG_LINES.copy()
48#does not have references to third party packages
49
50#----------------------------------------------------------------------
51PROJECT_EMAIL_ADDRS['Clp'] = 'jjforre _AT_ us _DOT_ ibm _DOT_ com'
52UNITTEST_DIR['Clp'] = os.path.join('Clp','src')
53UNITTEST_CMD['Clp'] = './clp -unitTest dirNetlib=_NETLIBDIR_ -netlib' 
54ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['Clp'] = ['make test',UNITTEST_CMD['Clp']]
55PROJECT_CONFIG_LINES['Clp'] = STANDARD_CONFIG_LINES.copy()
56PROJECT_CONFIG_LINES['Clp'].update(SKIP3RDPARTY_CONFIG_LINES)
57
58#----------------------------------------------------------------------
59PROJECT_EMAIL_ADDRS['SYMPHONY'] = 'tkr2 _AT_ lehigh _DOT_ edu'
60ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['SYMPHONY'] = ['make test']
61PROJECT_CONFIG_LINES['SYMPHONY'] = STANDARD_CONFIG_LINES.copy()
62#does not have references to third party packages
63
64#----------------------------------------------------------------------
65PROJECT_EMAIL_ADDRS['Vol'] = 'barahon _AT_ us _DOT_ ibm _DOT_ com'
66PROJECT_CONFIG_LINES['Vol'] = STANDARD_CONFIG_LINES.copy()
67#does not have references to third party packages
68
69#----------------------------------------------------------------------
70PROJECT_EMAIL_ADDRS['Osi'] = 'mjs _AT_ ces _DOT_ clemson _DOT_ edu'
71UNITTEST_DIR['Osi'] = os.path.join('Osi','test')
72UNITTEST_CMD['Osi'] = './unitTest -testOsiSolverInterface -netlibDir=_NETLIBDIR_ -cerr2cout' 
73ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['Osi'] = ['make test',UNITTEST_CMD['Osi']]
74PROJECT_CONFIG_LINES['Osi'] = STANDARD_CONFIG_LINES.copy()
75PROJECT_CONFIG_LINES['Osi'].update(SKIP3RDPARTY_CONFIG_LINES)
76
77#----------------------------------------------------------------------
78PROJECT_EMAIL_ADDRS['Cgl'] = 'robinlh _AT_ us _DOT_ ibm _DOT_ com'
79ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['Cgl'] = ['make test']
80PROJECT_CONFIG_LINES['Cgl'] = STANDARD_CONFIG_LINES.copy()
81#does not have references to third party packages
82
83#----------------------------------------------------------------------
84PROJECT_EMAIL_ADDRS['Cbc'] = 'jjforre _AT_ us _DOT_ ibm _DOT_ com'
85UNITTEST_DIR['Cbc'] = os.path.join('Cbc','src')
86UNITTEST_CMD['Cbc'] = './cbc -unitTest -dirMiplib=_MIPLIB3DIR_ -miplib' 
87PROJECT_CONFIG_LINES['Cbc'] = STANDARD_CONFIG_LINES.copy()
88PROJECT_CONFIG_LINES['Cbc'].update(SKIP3RDPARTY_CONFIG_LINES)
89PROJECT_CONFIG_LINES['Cbc']['Parallel']='--enable-cbc-parallel'
90
91#----------------------------------------------------------------------
92PROJECT_EMAIL_ADDRS['FlopC++'] = 'Tim _DOT_ Hultberg _AT_ eumetsat _DOT_ int'
93ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['FlopC++'] = ['make test']
94PROJECT_CONFIG_LINES['FlopC++'] = STANDARD_CONFIG_LINES
95#does not have references to third party packages
96
97#----------------------------------------------------------------------
98PROJECT_EMAIL_ADDRS['Ipopt'] = 'andreasw _AT_ us _DOT_ ibm _DOT_ com'
99PROJECT_CONFIG_LINES['Ipopt'] = STANDARD_CONFIG_LINES
100#third party packages are not optional here
101
102#----------------------------------------------------------------------
103PROJECT_EMAIL_ADDRS['OS'] = 'kipp _DOT_ martin _AT_ chicagogsb _DOT_ edu'
104ALL_TESTS_COMPLETED_SUCCESSFULLY_CMDS['OS'] = ['make test']
105PROJECT_CONFIG_LINES['OS'] = STANDARD_CONFIG_LINES
106#third party packages are not optional here (because it uses Ipopt)
107
108#----------------------------------------------------------------------
109PROJECT_EMAIL_ADDRS['CppAD'] = 'bradbell _AT_ washington _DOT_ edu'
110PROJECT_CONFIG_LINES['CppAD'] = STANDARD_CONFIG_LINES
111#does not have references to third party packages
Note: See TracBrowser for help on using the repository browser.