Files
Anatol Belski 19e81b66e3 skip tests for unsupported classes
git-svn-id: http://svn.php.net/repository/pecl/varnish/trunk@335944 c90b9560-bf6c-de11-be94-00142212c4b1
2015-02-14 10:18:32 +00:00
..
2011-08-22 19:52:27 +00:00
2013-09-30 18:53:33 +00:00
2013-09-30 18:53:33 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-09-30 19:00:58 +00:00
2013-10-01 15:06:13 +00:00

	Quick HOWTO run test from an unprivileged account under Linux

	Generate a configuration file

$ sed -e 's:/var/lib/varnish/silent:/tmp/vtest:' \
      tests/config.php-dist | tee tests/config.php

	Retrieve secret from configuration file

$ sed -n '/secret/{s/.* "//;s/".*$//;p}' \
      tests/config.php | tail -n 1 | tee /tmp/secret

	Run a varnish server under current account

$ /usr/sbin/varnishd \
  -b 127.0.0.1:80 \
  -P /tmp/varnish.pid \
  -S /tmp/secret \
  -s file,/tmp,1G \
  -n /tmp/vtest \
  -a :6081 \
  -T :6082

	Select the test types you want to run

$ export VARNISH_TEST_IPV4=1
$ export VARNISH_TEST_IPV6=1
$ export VARNISH_TEST_SECRET=1
$ export VARNISH_TEST_SHM=0
$ export NO_INTERACTION=1

	Run the test suite

$ make test

	Stop the server

$ kill $(cat /tmp/varnish.pid)