Skip to content

GD: imagepalettetotruecolor tests #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

caferrari
Copy link
Member

No description provided.

@@ -0,0 +1,22 @@
--TEST--
do the imagepalettetotruecollor function realy converts the image palette?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a typo in the description. It should be does the imagepalettetotruecolor function really converts the image palette?

@rogeriopradoj
Copy link

$ vagrant up
$ vagrant ssh
$ cd /vagrant/php-src
$ time make distclean
$ time ./buildconf --force
$ time ./configure --with-gd
$ time make
$ time make test TESTS=tests/caferrari/

@rogeriopradoj
Copy link

 vagrant@vm  /vagrant/php-src   phpsp-pr-002-php-5.5  make test TESTS=tests/caferrari/

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /vagrant/php-src/sapi/cli/php
PHP_SAPI    : cli
PHP_VERSION : 5.5.15-dev
ZEND_VERSION: 2.5.0
PHP_OS      : Linux - Linux vm 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:43:42 UTC 2014 i686
INI actual  : /vagrant/php-src/tmp-php.ini
More .INIs  :
CWD         : /vagrant/php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
PASS does the imagepalettetotruecollor function realy converts the image palette? [tests/caferrari/imagepalettetotruecolor_basic.phpt]
PASS imagepalettetotruecollor must return an error if no resource is given [tests/caferrari/imagepalettetotruecolor_error1.phpt]
PASS imagepalettetotruecollor must return an error if not a resource is given [tests/caferrari/imagepalettetotruecolor_error2.phpt]
PASS imagepalettetotruecollor must return an error if not an image resource is given [tests/caferrari/imagepalettetotruecolor_error3.phpt]
=====================================================================
Number of tests :    4                 4
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    4 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

@rogeriopradoj
Copy link

vagrant@vm  /vagrant/php-src   phpsp-pr002-php-5.6  make test TESTS=tests/caferrari/

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /vagrant/php-src/sapi/cli/php
PHP_SAPI    : cli
PHP_VERSION : 5.6.0-dev
ZEND_VERSION: 2.6.0-dev
PHP_OS      : Linux - Linux vm 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:43:42 UTC 2014 i686
INI actual  : /vagrant/php-src/tmp-php.ini
More .INIs  :
CWD         : /vagrant/php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
PASS does the imagepalettetotruecollor function realy converts the image palette? [tests/caferrari/imagepalettetotruecolor_basic.phpt]
PASS imagepalettetotruecollor must return an error if no resource is given [tests/caferrari/imagepalettetotruecolor_error1.phpt]
PASS imagepalettetotruecollor must return an error if not a resource is given [tests/caferrari/imagepalettetotruecolor_error2.phpt]
PASS imagepalettetotruecollor must return an error if not an image resource is given [tests/caferrari/imagepalettetotruecolor_error3.phpt]
=====================================================================
Number of tests :    4                 4
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    4 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

@rogeriopradoj
Copy link

vagrant@vm  /vagrant/php-src   phpsp-pr002-master  time make test TESTS=tests/caferrari/

Build complete.
Don't forget to run 'make test'.


=====================================================================
PHP         : /vagrant/php-src/sapi/cli/php
PHP_SAPI    : cli
PHP_VERSION : 5.7.0-dev
ZEND_VERSION: 2.7.0-dev
PHP_OS      : Linux - Linux vm 3.13.0-30-generic #55-Ubuntu SMP Fri Jul 4 21:43:42 UTC 2014 i686
INI actual  : /vagrant/php-src/tmp-php.ini
More .INIs  :
CWD         : /vagrant/php-src
Extra dirs  :
VALGRIND    : Not used
=====================================================================
Running selected tests.
PASS does the imagepalettetotruecollor function realy converts the image palette? [tests/caferrari/imagepalettetotruecolor_basic.phpt]
PASS imagepalettetotruecollor must return an error if no resource is given [tests/caferrari/imagepalettetotruecolor_error1.phpt]
PASS imagepalettetotruecollor must return an error if not a resource is given [tests/caferrari/imagepalettetotruecolor_error2.phpt]
PASS imagepalettetotruecollor must return an error if not an image resource is given [tests/caferrari/imagepalettetotruecolor_error3.phpt]
=====================================================================
Number of tests :    4                 4
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    0 (  0.0%) (  0.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    4 (100.0%) (100.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================
make test TESTS=tests/caferrari/  0.05s user 0.02s system 49% cpu 0.145 total

@rogeriopradoj
Copy link

PR sent to official:
php#742
php#743
php#744

rogeriopradoj pushed a commit that referenced this pull request Oct 4, 2014
Add CMD php -a; replace awk with magic bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants