[mlpack-git] [mlpack] Issue 344 - Better boost test output (#409)

QiaoAn Chen notifications at github.com
Tue Feb 24 10:55:24 EST 2015


This branch makes UTF to give running test output like this
```
Running 460 test cases...
Entering test suite "MLPACKTest"
Entering test suite "AdaBoostTest"
Entering test case "HammingLossBoundIris"
Leaving test case "HammingLossBoundIris"; testing time: 874945mks
Entering test case "WeakLearnerErrorIris"
Leaving test case "WeakLearnerErrorIris"; testing time: 886266mks
Entering test case "HammingLossBoundVertebralColumn"
Leaving test case "HammingLossBoundVertebralColumn"; testing time: 8275244mks
Entering test case "WeakLearnerErrorVertebralColumn"
Leaving test case "WeakLearnerErrorVertebralColumn"; testing time: 8266254mks
Entering test case "HammingLossBoundNonLinearSepData"
Leaving test case "HammingLossBoundNonLinearSepData"; testing time: 2507713mks
Entering test case "WeakLearnerErrorNonLinearSepData"
Leaving test case "WeakLearnerErrorNonLinearSepData"; testing time: 2491369mks
```

This is done by setting boost UTF runtime parameter [log_level](http://www.boost.org/doc/libs/1_43_0/libs/test/doc/html/utf/user-guide/runtime-config/reference.html). 
Since Log::objects output would drown UTF test output, we need to ignore those output. In order to minimize the change to other modules, I wrote a global fixture to set up the environment .
You can view, comment on, or merge this pull request online at:

  https://github.com/mlpack/mlpack/pull/409

-- Commit Summary --

  * better boost test output

-- File Changes --

    M CMakeLists.txt (6)
    M src/mlpack/CMakeLists.txt (2)
    M src/mlpack/tests/mlpack_test.cpp (34)

-- Patch Links --

https://github.com/mlpack/mlpack/pull/409.patch
https://github.com/mlpack/mlpack/pull/409.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/409
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150224/7accc2eb/attachment.html>


More information about the mlpack-git mailing list