Warning, /frameworks/khtml/src/BUILDING-TESTREGRESSION is written in an unsupported language. File is not indexed.

0001 FIXME: update these docs for Qt5 / KF5
0002 
0003 In order to be able to use testregression, you have to build your Qt and kdelibs in a special manner.
0004 Here are the needed steps.
0005 
0006 1. Set your QTDIR to point to the Qt source tree
0007 2. Configure Qt as:
0008 configure -prefix $PWD -no-reduce-exports -qt-gif -no-exceptions -debug -fast -qdbus -nomake examples -nomake demos
0009 The first 2 parameters are what's needed for testregression, the rest are standard. If you already have Qt configured,
0010 make sure to do "make confclean" first.
0011 3. Build & Install Qt
0012 4. Configure kdelibs:
0013 cmake /path/to/kdelibs-src/ -DCMAKE_INSTALL_PREFIX=$KDEDIR -DCMAKE_BUILD_TYPE=debug  -DKHTML_BUILD_TESTREGRESSION=true
0014 Obviously, you may use whatever prefix and other flags you want, but you must pass
0015 -DKHTML_BUILD_TESTREGRESSION=true and must use a debug or debugfull build type.
0016 
0017 Unfortunately, other KDE modules don't like visibility-less kdelibs and Qt much, so you may also want to apply this:
0018 --- cmake/modules/FindKDE4Internal.cmake        (revision 738780)
0019 +++ cmake/modules/FindKDE4Internal.cmake        (working copy)
0020 @@ -884,6 +884,8 @@
0021        exec_program(${CMAKE_C_COMPILER} ARGS -v OUTPUT_VARIABLE _gcc_alloc_info)
0022        string(REGEX MATCH "(--enable-libstdcxx-allocator=mt)" _GCC_COMPILED_WITH_BAD_ALLOCATOR "${_gcc_alloc_info}")
0023     endif (GCC_IS_NEWER_THAN_4_1)
0024 +
0025 +   set (__KDE_HAVE_GCC_VISIBILITY 0)
0026 
0027     if (__KDE_HAVE_GCC_VISIBILITY AND GCC_IS_NEWER_THAN_4_1 AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)
0028        set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
0029 
0030 
0031 5. Build & Install kdelibs
0032 6. You can now use testregression from kdelibs build dirs bin/ directory. Pass it the path to the regression/ directory in khtmltests.
0033 Don't forget to make install after changing KHTML or KJS!
0034