[geos-commits] r3020 - trunk/php/test
svn_geos at osgeo.org
svn_geos at osgeo.org
Sat Jun 19 08:30:29 EDT 2010
Author: strk
Date: 2010-06-19 12:30:29 +0000 (Sat, 19 Jun 2010)
New Revision: 3020
Modified:
trunk/php/test/Makefile.am
Log:
Better automake integration of unit test
Modified: trunk/php/test/Makefile.am
===================================================================
--- trunk/php/test/Makefile.am 2010-06-19 12:28:31 UTC (rev 3019)
+++ trunk/php/test/Makefile.am 2010-06-19 12:30:29 UTC (rev 3020)
@@ -24,15 +24,25 @@
EXTRA_DIST = test.php crashme.php
+abs_topbuilddir=`cd $(top_builddir); pwd`
+abs_srcdir=`cd $(srcdir); pwd`
+
if ENABLE_PHP_TESTS
-PHPOPTS = -n -d enable_dl=On -d extension_dir=../.libs
+TESTS = phpunit
-check:
- $(PHP) $(PHPOPTS) $(PHPUNIT) test.php
+PHPOPTS = -n -d enable_dl=On -d extension_dir=$(abs_topbuilddir)/php/.libs
+phpunit: test.php
+ echo "#!/bin/sh" > $@
+ echo "$(PHP) $(PHPOPTS) $(PHPUNIT) test $(abs_srcdir)/test.php $$@" >> $@
+ chmod +x $@
+
crashtest:
$(PHP) $(PHPOPTS) crashme.php
+clean-local:
+ rm -f phpunit
+
endif
More information about the geos-commits
mailing list