[Nepomuk] Review Request: Nepomuk Test Library and tests
Vishesh Handa
me at vhanda.in
Thu Jul 19 09:41:19 UTC 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105597/
-----------------------------------------------------------
(Updated July 19, 2012, 9:41 a.m.)
Review request for Nepomuk and Sebastian Trueg.
Changes
-------
* Changed library name to nepomuktestlib
* Added env variable NEPOMUK_TESTLIB_RUNNING to check if the test env is running
The TestLibrary still installs files. Should I find a way to disable this?
Description
-------
This is the Nepomuk Test Framework which I had described months ago over here - http://vhanda.in/blog/2012/03/nepomuk-test-framework/
It is currently in the testLibrary branch in nepomuk-core. This is a diff of testLibrary against KDE/4.9.
The testlib creates mock kde and dbus sessions and then starts Nepomuk. It waits till the nepomuk query service has been started and it then runs the tests. Once the tests have run, it shuts down the mock kde sessions, and destroys the temporary folder in which it was created.
The patch also contains very detailed tests for the Resource class. Most of the tests fail :) It seems like I have a lot of work to do.
I would like to merge this into KDE/4.9. I hope no one has any objections.
Diffs (updated)
-----
CMakeLists.txt 4d5ae3f
autotests/CMakeLists.txt PRE-CREATION
autotests/README PRE-CREATION
autotests/lib/CMakeLists.txt PRE-CREATION
autotests/lib/NepomukTestLibMacros.cmake.in PRE-CREATION
autotests/lib/nepomukserverrc.in PRE-CREATION
autotests/lib/nepomuktest_export.h PRE-CREATION
autotests/lib/testbase.h PRE-CREATION
autotests/lib/testbase.cpp PRE-CREATION
autotests/lib/tools/CMakeLists.txt PRE-CREATION
autotests/lib/tools/runNepomukTest.sh.in PRE-CREATION
autotests/lib/tools/run_in_new_dbus_session.sh PRE-CREATION
autotests/lib/tools/with-nepomuk-sandbox.sh.in PRE-CREATION
autotests/test/CMakeLists.txt PRE-CREATION
autotests/test/resourcetests.h PRE-CREATION
autotests/test/resourcetests.cpp PRE-CREATION
Diff: http://git.reviewboard.kde.org/r/105597/diff/
Testing
-------
Yes. The tests have been tested.
If you want to run the tests please run them via 'ctest -VV'. Do not run the test executables manually. This would not result in the test environment being setup, and a new virtuoso database would be not be created. This would result in ALL your Nepomuk data being deleted at the end of the test.
Thanks,
Vishesh Handa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20120719/ec1c7227/attachment.html>
More information about the Nepomuk
mailing list