File: phpunit

package info (click to toggle)
php-horde-core 2.31.16%2Bdebian0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,132 kB
  • sloc: javascript: 47,212; php: 26,417; xml: 4,680; sh: 20; makefile: 12
file content (16 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

# We need to be root here ...
for locale in 'en_US.UTF-8 UTF-8'; do
  sed -i -e "0,/^[# ]*$locale *$/ s/^[# ]*$locale *$/$locale/" /etc/locale.gen
done
locale-gen

cd Horde_Core*/test/./Horde/Core

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