File: phpunit

package info (click to toggle)
php-horde-kolab-format 2.0.9-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 932 kB
  • sloc: php: 5,809; xml: 1,070; sh: 14; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

version="$(ls -d Horde_Kolab_Format-* | cut -d- -f2-)"
src="Horde_Kolab_Format-${version}/test"
dst="Horde_Kolab_Format-${version}/test+tasks"

rm -rf "$dst"
# Copy tests and replace @version@
cp -a "$src" "$dst"
sed -i "s/@version@/${version}/" \
  "$dst/Horde/Kolab/Format/fixtures"/*.xml \
  "$dst/Horde/Kolab/Format/Integration/XmlTest.php" \
  "$dst/Horde/Kolab/Format/Integration/PreferencesTest.php" \
  "$dst/Horde/Kolab/Format/Unit/Xml/Type/ProductIdTest.php"
# And run the tests there
cd "$dst/Horde/Kolab/Format"
phpunit -v .
rm -rf "$dst"