| | 181 | = Interactive Test Running = |
| | 182 | |
| | 183 | Note the '''trunk''' in the {{{BUILD_PATH}}}, as it is a repository path : |
| | 184 | {{{ |
| | 185 | export BUILD_PATH=dybgaudi/trunk/RootIO/RootIOTest |
| | 186 | dyb__test -v |
| | 187 | }}} |
| | 188 | * the {{{-v}}} is a verbosity option passed to nosetests |
| | 189 | |
| | 190 | == Example of running !RootIO tests == |
| | 191 | |
| | 192 | {{{ |
| | 193 | |
| | 194 | [dayabaysoft@grid1 dayabaysoft]$ export BUILD_PATH=dybgaudi/trunk/RootIO/RootIOTest |
| | 195 | [dayabaysoft@grid1 dayabaysoft]$ dyb__test -v |
| | 196 | === dyb__test : invoking context... [-v] from /home/dayabaysoft |
| | 197 | ------------------------------------------ |
| | 198 | Configuring environment for standalone package. |
| | 199 | CMT version v1r20p20070720. |
| | 200 | System is Linux-i686 |
| | 201 | ------------------------------------------ |
| | 202 | Creating setup scripts. |
| | 203 | Creating cleanup scripts. |
| | 204 | BUILD_PATH=dybgaudi/trunk/RootIO/RootIOTest |
| | 205 | NUWA_HOME=/disk/d3/dayabay/local/dyb/trunk_dbg/NuWa-trunk |
| | 206 | === dyb__test : invoking clean... [-v] from /disk/d3/dayabay/local/dyb/trunk_dbg/NuWa-trunk/dybgaudi/RootIO/RootIOTest |
| | 207 | === dyb__test : invoking nosetests... [-v] from /disk/d3/dayabay/local/dyb/trunk_dbg/NuWa-trunk/dybgaudi/RootIO/RootIOTest |
| | 208 | test_io.test_genio ... FAIL |
| | 209 | test_io.test_rootio ... ok |
| | 210 | test_io.test_simio ... FAIL |
| | 211 | test_io.test_dybio ... ok |
| | 212 | |
| | 213 | ====================================================================== |
| | 214 | FAIL: test_io.test_genio |
| | 215 | ---------------------------------------------------------------------- |
| | 216 | Traceback (most recent call last): |
| | 217 | File "/disk/d3/dayabay/local/dyb/trunk_dbg/external/Python/2.5.2/slc3_i686_gcc323/lib/python2.5/site-packages/nose-0.10.3-py2.5.egg/nose/case.py", line 182, in runTest |
| | 218 | self.test(*self.arg) |
| | 219 | File "/disk/d3/dayabay/local/dyb/trunk_dbg/NuWa-trunk/dybgaudi/RootIO/RootIOTest/tests/test_io.py", line 18, in test_genio |
| | 220 | Run( "python share/geniotest.py output" , parser=m , opts=opts )().assert_() |
| | 221 | File "/disk/d3/dayabay/local/dyb/trunk_dbg/installation/trunk/dybtest/python/dybtest/run.py", line 48, in assert_ |
| | 222 | assert self.prc == 0 , self |
| | 223 | AssertionError: <Run "<CommandLine "python share/geniotest.py output" rc:0 duration:19 [] >" opts:{'maxtime': 300, 'timeout': -1.0, 'verbose': True} prc:1 parser:<Matcher {'.*ERROR': 1, |
| | 224 | '.*FATAL': 2, |
| | 225 | '.*\\*\\*\\* Break \\*\\*\\* segmentation violation': 3, |
| | 226 | '^\\#\\d': None} > > |
| | 227 | -------------------- >> begin captured stdout << --------------------- |
| | 228 | forking <Run "<CommandLine "python share/geniotest.py output" rc:None duration:None [] >" opts:{'maxtime': 300, 'timeout': -1.0, 'verbose': True} prc:0 parser:<Matcher {'.*ERROR': 1, |
| | 229 | '.*FATAL': 2, |
| | 230 | '.*\\*\\*\\* Break \\*\\*\\* segmentation violation': 3, |
| | 231 | '^\\#\\d': None} > > |
| | 232 | [1] XmlCnvSvc ERROR Expression evaluation error: UNKNOWN_VARIABLE |
| | 233 | [1] XmlCnvSvc ERROR [ADoavHeight/2.+ReflectorOffset] |
| | 234 | [1] XmlCnvSvc ERROR Expression evaluation error: UNKNOWN_VARIABLE |
| | 235 | [1] XmlCnvSvc ERROR [-ADoavHeight/2.-ReflectorOffset] |
| | 236 | [1] XmlCnvSvc ERROR ^ |
| | 237 | subprocess returned ... <CommandLine "python share/geniotest.py output" rc:0 duration:19 [] > |
| | 238 | completed <Run "<CommandLine "python share/geniotest.py output" rc:0 duration:19 [] >" opts:{'maxtime': 300, 'timeout': -1.0, 'verbose': True} prc:1 parser:<Matcher {'.*ERROR': 1, |
| | 239 | '.*FATAL': 2, |
| | 240 | '.*\\*\\*\\* Break \\*\\*\\* segmentation violation': 3, |
| | 241 | '^\\#\\d': None} > > |
| | 242 | |
| | 243 | |
| | 244 | |
| | 245 | }}} |
| | 246 | |
| | 247 | |