1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
# $Id: packages,v 1.1 2004/11/05 08:41:21 dexter Exp $
# If the debian/rules or debian/control file is missing, rebuild the file:
#
# $ yada rebuild control
# $ yada rebuild rules
Source: php-simpletest
Section: devel
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://prdownloads.sourceforge.net/simpletest/>
Home-Page: <URL:http://simpletest.sourceforge.net/>
Description: Framework for unit testing, web site testing and mock objects
Copyright: .
%`sed -e 's/^$/./' -e 's/^/ /' LICENSE`
Build-Depends-Indep: phing
Build: sh
version=${VERSION%-*}
.
rm -rf build || true
rm -f build.xml || true
cp -a debian/phing/build.xml .
.
phing -Dversion=$version build
phing -Dversion=$version package
.
cd build
cd */
ln -s ../package.xml .
pear \
-v \
-c $(pwd)/.pearrc \
-d bin_dir=/usr/bin \
-d doc_dir=/usr/share/php/docs \
-d php_dir=/usr/share/php \
-d data_dir=/usr/share/php/data \
-d php_bin=/usr/bin/php \
-d test_dir=/usr/share/php/tests \
-d include_path=/usr/share/php \
install --installroot=$(pwd)/tmp --force --nodeps package.xml
Clean: sh
rm -rf build || true
rm -f build.xml || true
Package: php-simpletest
Architecture: all
Depends: php4-common (>= 4.3) | php5-common
Description: Framework for unit testing, web site testing and mock objects
It's a framework for unit testing, web site testing and mock objects for
PHP 4.3+.
.
If you have used JUnit you will find this PHP unit testing version very
similar. Also included is a mock objects and server stubs generator. The
stubs can have return values set for different arguments, can have
sequences set also by arguments and can return items by reference. The
mocks inherit all of this functionality and can also have expectations
set, again in sequences and for different arguments.
.
A web tester similar in concept to JWebUnit is also included. There is
no JavaScript or tables support, but forms, authentication and cookies
are handled. Frames will be supported soon.
.
You are not tied to just using SimpleTest, though. The mocks and stubs
will work with other test frameworks and SimpleTest can use other
framework's (PHPUnit, PEAR::PhpUnit) test cases as it's own. The web
browser part of the web tester can also be used independently either in
other testers or as part of a scripting solution.
Install: sh
mkdir -p $ROOT/usr/share/doc/$PACKAGE
cp -a build/*/tmp/* $ROOT
test -d $ROOT/usr/share/php/docs && mkdir $ROOT/usr/share/doc/$PACKAGE/docs
test -d $ROOT/usr/share/php/docs/*/docs && cp -a $ROOT/usr/share/php/docs/*/docs $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/docs/*/docs
test -d $ROOT/usr/share/php/docs/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs/* && cp -a $ROOT/usr/share/php/docs/*/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/docs/*
test -d $ROOT/usr/share/php/docs && cp -a $ROOT/usr/share/php/docs/* $ROOT/usr/share/doc/$PACKAGE/docs && rm -rf $ROOT/usr/share/php/docs
test -d $ROOT/usr/share/php/tests && mkdir $ROOT/usr/share/doc/$PACKAGE/tests
test -d $ROOT/usr/share/php/tests/*/tests && cp -a $ROOT/usr/share/php/tests/*/tests $ROOT/usr/share/doc/$PACKAGE && rm -rf $ROOT/usr/share/php/tests/*/tests
test -d $ROOT/usr/share/php/tests/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests/* && cp -a $ROOT/usr/share/php/tests/*/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests/*/* && rmdir --ignore-fail-on-non-empty --parents $ROOT/usr/share/php/tests/*
test -d $ROOT/usr/share/php/tests && cp -a $ROOT/usr/share/php/tests/* $ROOT/usr/share/doc/$PACKAGE/tests && rm -rf $ROOT/usr/share/php/tests
cp -a build/package.xml $ROOT/usr/share/doc/$PACKAGE
find $ROOT -name '.*' -print0 | xargs -0 -r rm -rf
yada install -doc HELP_MY_TESTS_DONT_WORK_ANYMORE README debian/phing/build.xml
|