File: phpunit

package info (click to toggle)
php-horde-hashtable 1.2.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 240 kB
  • sloc: php: 619; xml: 366; sh: 7; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

export HASHTABLE_MEMCACHE_TEST_CONFIG='{"hashtable": {"memcache": {"hostspec":["localhost"],"port":[11211]}}}'
export HASHTABLE_PREDIS_TEST_CONFIG='{"hashtable": {"predis": {"hostspec":["localhost"],"scheme":"tcp","database":"15"}}}'

cd Horde_HashTable*/test/./Horde/HashTable

# We drop privileges to run tests
touch .phpunit.result.cache
chown www-data:www-data .phpunit.result.cache
su www-data --preserve-environment --shell /bin/sh --command 'phpunit -v .'