[Kexi] Building Kexi tests (was: [Bug 254188] Rename File option...)

Jaroslaw Staniek staniek at kde.org
Tue Nov 30 21:05:28 CET 2010


On 30 November 2010 01:32, Jinal <hijinalhere at yahoo.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=254188
>
>
> --- Comment #16 from Jinal <hijinalhere yahoo com>  2010-11-30 01:32:28 ---
> Also where can I find kexidbtest...file...

(In reply to comment #15)
> Can you please guide me on how to execute test files which you have in the
> newapi folder. Please metion how to use cmakefiles..I am having hard time to
> understand the KDevelop GUI and I was Kconsole to compile the C++ files.
> After I can executue the files you have, I would be in a better position to
> develop new Unit tests..I would really appreciate if you could get back to me
> at your earliest..

Hi,
I am answering also to the Kexi mailing list in order to reach wider audience.

Have you compiled Kexi already using command line?
If not, you have to do so as explained at
http://wiki.koffice.org/index.php?title=Building/Building_KOffice.
If you want to do that in KDevelop, I cannot help with this very
specific task for now.
You can consult the KDevelop documentation or ask on a kdevelop users
forum or mailing list.

Tests are not built by default, since not everyone needs them.
Regarding tests, please read
http://wiki.koffice.org/index.php?title=Building/Building_KOffice#Executing_unit_tests
which explains that you have to add -DKDE4_BUILD_TESTS=ON to the cmake
command you execute at the beginning of the build process. If you
already built Kexi, re-run the cmake with options as before but with
this extra option; then run "make
install" again. This will build all available tests for KOffice
components (only for apps you selected for building).

Below I am assuming you use command line and you are in the build
directory (may work with KDevelop or Qt Creator, since these have
support for CMake).
In the document above it's referred as $HOME/kde4/build/koffice (the
build directory).

KOffice tests, in particular Kexi tests, will no be installed, you run them
from the build directory.

Once you run "make install" in the build directory, type "cd
kexi/tests/newapi". kexidbtests can be found here. For usage
instructions read koffice/kexi/tests/newapi/README file from the
source code directory.
Is says that you run 'kexidbtest --help' for usage details.
Only kexidbtest is maintained test for now, the sqltest is not actual.

As said in a conversation before, Predicate, aka KexiDB v 2 will
provide easier access to tests and will not be a part of KOffice, so
the building process will be rather faster.

-- 
regards / pozdrawiam, Jaroslaw Staniek
 http://www.linkedin.com/in/jstaniek
 Kexi & KOffice (http://kexi-project.org, http://identi.ca/kexi,
http://koffice.org)
 KDE Software Development Platform on MS Windows (http://windows.kde.org)


More information about the Kexi mailing list