File: phpunit

package info (click to toggle)
php-sabredav 1.8.12-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 4,928 kB
  • sloc: php: 28,633; sql: 271; python: 221; makefile: 35; xml: 25; sh: 8
file content (14 lines) | stat: -rwxr-xr-x 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

patch -p1 < debian/patches/DEP-8/Use-installed-class-for-DEP-8-tests.patch

mysql -e "create database IF NOT EXISTS sabredav; ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'r00t';" -uroot

cd tests/

chown www-data:www-data . -Rfv

# 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 .'