Open auroraeosrose opened 9 years ago
I get 300+ skiped tests and some fails
300+ skipped tests might indicate that the eos_datastructures extension is not loaded when running the tests. Try adding that extension in a ini-file that is read during make test.
I got the tests running in Appveyor for the Windows builds of PHP 7.1.8 (x64 nts). I am now loading php_eos_datastructures.dll and php_cairo.dll in a minimal php.ini:
[PHP]
extension_dir = "ext"
extension=php_eos_datastructures.dll
extension=php_cairo.dll
Because the phpt-files also try to load the eos_datastructures extension (but failed), I had to remove this from the phpt-files. I am doing this at build time with a perl regex replacement. With some Windows speak:
for /R %%f in (*.phpt) do perl -pi.bak -e "undef $/; s/--EXTENSIONS--\neos_datastructures\n//gi" %%f
del *.phpt.bak /s > nul
Test results: a lot of FAIL's. See https://ci.appveyor.com/project/Jan-E/cairo/build/php7.20#L7874
@auroraeosrose Please merge https://github.com/gtkforphp/cairo/pull/32 to use Appveyor for running the tests on Windows.
I tried my hand at fixing the enum issue. You might want to take a look at https://github.com/eosforphp/structures/pull/3 and test it out. It should help with most of the issues in #29. Well at least, a1-image-sample.php and bitmap-font.php are working as well as my own code.
@auroraeosrose Are you able to merge that pull request eosforphp/structures#3? I can then update issue #29 and remove any tests which are no longer throwing errors.
@mhertsch Nice work.
New features added
Changes
Odds and ends