File: phpunit

package info (click to toggle)
php-horde-util 2.5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 276 kB
  • ctags: 397
  • sloc: php: 2,119; xml: 734; sh: 8; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

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

# ... but not here
# an UTF-8 LANG is needed (not C.UTF-8)
export LANG=cs_CZ.UTF-8
cd Horde_Util*/test/./Horde/Util
su www-data --preserve-environment --shell /bin/sh --command 'phpunit -v .'