The unit test suite for MLT is located at src/tests in the source tree.
It uses the !QtTestLib framework.
To use it by building in-tree:
To use it with a shadow build dir:
There are multiple executables in the test suite, and each one will return a code > 0 for the number of failed tests.
Example output as of 2013-05-01:
ddennedy-macbook:tests-build ddennedy$ make check
cd test_properties/ && make -f Makefile check
./test_properties
********* Start testing of TestProperties *********
Config: Using QTest library 4.8.4, Qt 4.8.4
PASS : TestProperties::initTestCase()
PASS : TestProperties::InstantiationIsAReference()
PASS : TestProperties::CopyAddsReference()
PASS : TestProperties::DestructionRemovesReference()
PASS : TestProperties::cleanupTestCase()
Totals: 5 passed, 0 failed, 0 skipped
********* Finished testing of TestProperties *********
cd test_repository/ && make -f Makefile check
./test_repository
********* Start testing of TestRepository *********
Config: Using QTest library 4.8.4, Qt 4.8.4
PASS : TestRepository::initTestCase()
PASS : TestRepository::ThereAreProducers()
PASS : TestRepository::ThereAreConsumers()
PASS : TestRepository::cleanupTestCase()
Totals: 4 passed, 0 failed, 0 skipped
********* Finished testing of TestRepository *********
Subscribe to News via RSS.