|
Packit |
ed3af9 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
To run the tests suite, all you need is (add the cmake options if you need any
|
|
Packit |
ed3af9 |
or if the default libs and include paths are not the default) :
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
In a sub directory:
|
|
Packit |
ed3af9 |
$ mkdir bld
|
|
Packit |
ed3af9 |
$ cd bld
|
|
Packit |
ed3af9 |
$ cmake -DBUILD_TEST=1 ..
|
|
Packit |
ed3af9 |
$ make
|
|
Packit |
ed3af9 |
$ ctest .
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Or if you like to build in the source tree:
|
|
Packit |
ed3af9 |
$ cmake -DBUILD_TEST=1 .
|
|
Packit |
ed3af9 |
$ make
|
|
Packit |
ed3af9 |
$ ctest .
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Add "-DCMAKE_BUILD_TYPE=DEBUG" if you like to have a debug version.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If you like to run the tests against a installed GD library, set the following
|
|
Packit |
ed3af9 |
environment variables:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
export CMAKE_INCLUDE_PATH=/path/to/the/gd/include
|
|
Packit |
ed3af9 |
export CMAKE_LIBRARY_PATH=/path/to/the/gd/lib
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
then call cmake using:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
$ cmake -DUSE_EXT_GD=1 -DBUILD_TEST=1
|
|
Packit |
ed3af9 |
$ make
|
|
Packit |
ed3af9 |
and finally:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
$ ctest .
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
I will certainly add a nice CMake option to give prefix later.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
What to do if tests fail on your platform and you use the last GD release?
|
|
Packit |
ed3af9 |
either from your favorite distributions or from http://www.libgd.org or git?
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If you use a packaged version of the GD Library (installed from RPM, deb or
|
|
Packit |
ed3af9 |
ports, gentoo packages or any other packages format or distribution), please try
|
|
Packit |
ed3af9 |
to run the tests using the source releases available at:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
http://www.libgd.org/Downloads
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If the tests fail using our source release, please report a bug here:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
http://bugs.libgd.org
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
You can attach the two files available in:
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
./Testing/Temporary
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Later versions will have an automatic post mode.
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
If the tests run successfully, please report a bug to the maintainer of the
|
|
Packit |
ed3af9 |
packages (Debian, BSD, Ubuntu or whoever is responsible for the packages).
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Reasons of failures:
|
|
Packit |
ed3af9 |
Exception: SegFault: self explaining
|
|
Packit |
ed3af9 |
Failed test failed, check the log to know where
|
|
Packit |
ed3af9 |
timeout the default timeout is 5 seconds. Some test may
|
|
Packit |
ed3af9 |
have infinite loops when compiled against old versions
|
|
Packit |
ed3af9 |
of the GD library (esp. 2.0.33 or earlier)
|
|
Packit |
ed3af9 |
|
|
Packit |
ed3af9 |
Some features rely on floating point arithmetic and results may vary from
|
|
Packit |
ed3af9 |
one architecture to another.
|
|
Packit |
ed3af9 |
Examples:
|
|
Packit |
ed3af9 |
on i686, gdimagerotate/bug00067 will fail. The result is still visually
|
|
Packit |
ed3af9 |
acceptable but i686 default arithmetic mode will generate different results.
|
|
Packit |
ed3af9 |
Adding "-msse -mfpmath=sse" to CFLAGS will solve this difference.
|