[pkg-kolab] r1399 - pkg-kolab_testsuite
Mathieu Parent
sathieu at alioth.debian.org
Sun Nov 15 21:31:40 UTC 2009
Author: sathieu
Date: 2009-11-15 21:31:40 +0000 (Sun, 15 Nov 2009)
New Revision: 1399
Modified:
pkg-kolab_testsuite/testsuite
Log:
Include phpunit testsuite
Modified: pkg-kolab_testsuite/testsuite
===================================================================
--- pkg-kolab_testsuite/testsuite 2009-11-15 14:48:56 UTC (rev 1398)
+++ pkg-kolab_testsuite/testsuite 2009-11-15 21:31:40 UTC (rev 1399)
@@ -165,6 +165,21 @@
}
#=======================================================
+# Test functions
+#-------------------------------------------------------
+sub test_tap
+{
+ my $domid = shift;
+ my $domname = shift;
+ my $command = shift;
+
+ my $domip = domain_ip($domid, $domname);
+
+ system("ssh -i '".$config{'storagepooldir'}."/key' root\@$domip '$command' ".
+ "| grep -v '^TAP version' | grep -v '^1..' | grep -v '^ok '");
+}
+
+#=======================================================
# Actions
#-------------------------------------------------------
sub domain_bootstrap
@@ -388,6 +403,7 @@
system("ssh -i '".$config{'storagepooldir'}."/key' root\@$domip 'apt-get update'");
print "Nothing to do yet\n";
# follow https://wiki.kolab.org/index.php/Debian_-_Administrators_-_Kolab_Installation
+ #apt-get install phpunit
}
#-------------------------------------------------------
@@ -396,10 +412,10 @@
my $domid = shift;
my $domname = shift;
- print "Nothing to do yet\n";
- #apt-get install phpunit
- #php /usr/share/php/tests/Kolab_Filter/Horde/Kolab/Filter/AllTests.php
- #php /usr/share/php/tests/Kolab_FreeBusy/Horde/Kolab/FreeBusy/AllTests.php
+ test_tap($domid, $domname, 'phpunit --tap '.
+ '/usr/share/php/tests/Kolab_Filter/Horde/Kolab/Filter/AllTests.php');
+ test_tap($domid, $domname, 'phpunit --tap '.
+ '/usr/share/php/tests/Kolab_FreeBusy/Horde/Kolab/FreeBusy/AllTests.php');
}
#=======================================================
More information about the pkg-kolab-devel
mailing list