Menu

Regression Tests

High Performance Coder

The unit test suite test/unittests requires the UnitTest++ software to be installed.

"make tests" builds any executables needed for the regression tests, including the unit test suite "unittests".

The regression suite may be run using the command "make sure". Alternatively, you may use the aegis command "aet", if running the Aegis system.

Test code coverage can be obtained by the following steps:

make clean
make GCOV=1 sure
gcov *.cc >gcov.log
grep -A1 cc gcov.log

To produce (eg) the following report

File 'wire.cc'
Lines executed:77.42% of 31
wire.cc:creating 'wire.cc.gcov'

File 'variableManager.cc'
Lines executed:70.92% of 141
variableManager.cc:creating 'variableManager.cc.gcov'

--
File 'tclmain.cc'
Lines executed:59.65% of 114
tclmain.cc:creating 'tclmain.cc.gcov'

File 'plotWidget.cc'
Lines executed:28.00% of 175
plotWidget.cc:creating 'plotWidget.cc.gcov'

--
File 'minsky.cc'
Lines executed:88.53% of 593
minsky.cc:creating 'minsky.cc.gcov'

...

Related

Wiki: Home