| 276 | | |
| 277 | | |
| 278 | | |
| 279 | | |
| 280 | | |
| 281 | | |
| 282 | | |
| | 276 | == Causes of test failure == |
| | 277 | |
| | 278 | Non-''Run'' tests can fail by |
| | 279 | * an assertion/exception in the test being triggered |
| | 280 | |
| | 281 | ''Run-style'' tests have many additional ways to fail... |
| | 282 | * stdout + stderr from command matches a pattern with integer code > 0 |
| | 283 | * time taken by the command exceeds the limit |
| | 284 | * command returns with non-zero exit code |
| | 285 | * memory(maxrss) taken by the command exceeds limit |
| | 286 | * for '''{{{reference=True}}}''' tests, the output does not match the reference |
| | 287 | * for '''{{{histref=path/to/hists.root}}}''' tests, any of created histograms do not match the reference '''{{{path/to/histref_hists.root}}}''' |
| | 288 | |
| | 289 | === Updating reference output/histograms === |
| | 290 | |
| | 291 | To update reference outputs or histograms : |
| | 292 | * simply delete the old one, a new reference will be created at next run, subsequent runs will compare against the new reference |
| | 293 | |
| | 294 | Find '''test_name.ref''' and '''histref_*.root''' by : |
| | 295 | {{{ |
| | 296 | [blyth@cms01 ~]$ cd $DYB/NuWa-trunk/dybgaudi |
| | 297 | [blyth@cms01 dybgaudi]$ find . -name '*.ref' |
| | 298 | |
| | 299 | ./Simulation/GenTools/test_diffuser.ref |
| | 300 | ./Simulation/GenTools/test_gun.ref |
| | 301 | ./Simulation/DetSim/test_historian.ref |
| | 302 | ./Simulation/DetSim/test_basic_physics.ref |
| | 303 | ./DataModel/Conventions/test_Conventions.ref |
| | 304 | ./Production/MDC10b/test_dby0.ref |
| | 305 | ./RootIO/RootIOTest/test_dybo.ref |
| | 306 | ./RawData/RawDataTest/share/rawpython.log.ref |
| | 307 | ./DybAlg/test_dmp.ref |
| | 308 | ./Tutorial/Quickstart/test_printrawdata_output.ref |
| | 309 | ./Database/DbiTest/scripts/TestDbiIhep.log.ref |
| | 310 | ./Database/DbiValidate/tests/test_Conventions.ref |
| | 311 | |
| | 312 | [blyth@cms01 dybgaudi]$ find . -name 'histref_*.root' |
| | 313 | ./Production/MDC10b/histref_dby1test.root |
| | 314 | ./Tutorial/Quickstart/histref_rawDataResult.root |
| | 315 | [blyth@cms01 dybgaudi]$ |
| | 316 | |
| | 317 | }}} |
| | 318 | |
| | 319 | |
| | 320 | |
| | 321 | |
| | 322 | |
| | 323 | |
| | 324 | |
| | 325 | |
| | 326 | |
| | 327 | |