2007-01-23 15:54:15 -08:00
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
To run the tests suite, all you need is (add the cmake options if you need any
|
|
|
|
or if the default libs and include paths are not the default) :
|
|
|
|
|
2007-06-15 05:18:57 -07:00
|
|
|
In a sub directory:
|
|
|
|
$ mkdir bld
|
|
|
|
$ cd bld
|
|
|
|
$ cmake -DBUILD_TEST=1 ..
|
2016-07-14 04:35:32 -07:00
|
|
|
$ make
|
2007-06-15 05:18:57 -07:00
|
|
|
$ ctest .
|
|
|
|
|
|
|
|
Or if you like to build in the source tree:
|
2007-01-23 15:54:15 -08:00
|
|
|
$ cmake -DBUILD_TEST=1 .
|
2016-07-14 04:35:32 -07:00
|
|
|
$ make
|
2007-01-23 15:54:15 -08:00
|
|
|
$ ctest .
|
|
|
|
|
2007-06-15 05:18:57 -07:00
|
|
|
Add "-DCMAKE_BUILD_TYPE=DEBUG" if you like to have a debug version.
|
|
|
|
|
2007-01-23 15:54:15 -08:00
|
|
|
If you like to run the tests against a installed GD library, set the following
|
|
|
|
environment variables:
|
|
|
|
|
|
|
|
export CMAKE_INCLUDE_PATH=/path/to/the/gd/include
|
|
|
|
export CMAKE_LIBRARY_PATH=/path/to/the/gd/lib
|
|
|
|
|
|
|
|
then call cmake using:
|
|
|
|
|
2018-06-21 19:47:42 -07:00
|
|
|
$ cmake -DUSE_EXT_GD=1 -DBUILD_TEST=1
|
2007-01-23 15:54:15 -08:00
|
|
|
$ make
|
|
|
|
and finally:
|
|
|
|
|
|
|
|
$ ctest .
|
|
|
|
|
|
|
|
I will certainly add a nice CMake option to give prefix later.
|
|
|
|
|
2018-06-21 19:47:42 -07:00
|
|
|
What to do if tests fail on your platform and you use the last GD release?
|
2021-07-05 20:59:35 -07:00
|
|
|
either from your favorite distributions or from https://www.libgd.org or git?
|
2007-01-23 15:54:15 -08:00
|
|
|
|
2018-06-21 19:47:42 -07:00
|
|
|
If you use a packaged version of the GD Library (installed from RPM, deb or
|
2007-01-23 15:54:15 -08:00
|
|
|
ports, gentoo packages or any other packages format or distribution), please try
|
|
|
|
to run the tests using the source releases available at:
|
|
|
|
|
2019-09-28 02:36:21 -07:00
|
|
|
https://github.com/libgd/libgd/releases
|
2007-01-23 15:54:15 -08:00
|
|
|
|
|
|
|
If the tests fail using our source release, please report a bug here:
|
|
|
|
|
2019-09-28 02:36:21 -07:00
|
|
|
https://github.com/libgd/libgd/issues
|
2007-01-23 15:54:15 -08:00
|
|
|
|
|
|
|
You can attach the two files available in:
|
|
|
|
|
|
|
|
./Testing/Temporary
|
|
|
|
|
|
|
|
Later versions will have an automatic post mode.
|
|
|
|
|
|
|
|
If the tests run successfully, please report a bug to the maintainer of the
|
2016-07-21 12:01:15 -07:00
|
|
|
packages (Debian, BSD, Ubuntu or whoever is responsible for the packages).
|
2007-01-23 15:54:15 -08:00
|
|
|
|
|
|
|
Reasons of failures:
|
|
|
|
Exception: SegFault: self explaining
|
|
|
|
Failed test failed, check the log to know where
|
|
|
|
timeout the default timeout is 5 seconds. Some test may
|
|
|
|
have infinite loops when compiled against old versions
|
2007-01-23 16:36:02 -08:00
|
|
|
of the GD library (esp. 2.0.33 or earlier)
|
2007-01-23 15:54:15 -08:00
|
|
|
|
2016-07-21 12:01:15 -07:00
|
|
|
Some features rely on floating point arithmetic and results may vary from
|
2016-07-20 02:32:01 -07:00
|
|
|
one architecture to another.
|
|
|
|
Examples:
|
2016-07-26 02:04:58 -07:00
|
|
|
On i686, gdimagerotate/bug00067 will fail. The result is still visually
|
2016-07-20 02:32:01 -07:00
|
|
|
acceptable but i686 default arithmetic mode will generate different results.
|
|
|
|
Adding "-msse -mfpmath=sse" to CFLAGS will solve this difference.
|
2016-07-26 02:04:58 -07:00
|
|
|
On s390, ppc64, and aarch64, gdimagecopyresampled/bug00201 will fail.
|
|
|
|
The result is still visually acceptable.
|
|
|
|
Adding "-ffp-contract=off" to CFLAGS will solve this difference.
|