[pkg-eucalyptus-commits] r226 - gwt/trunk/debian
Chris Halls
halls at alioth.debian.org
Wed Jul 4 12:08:53 UTC 2012
Author: halls
Date: 2012-07-04 12:08:52 +0000 (Wed, 04 Jul 2012)
New Revision: 226
Modified:
gwt/trunk/debian/rules
Log:
Add targets for building & running the unit tests
Modified: gwt/trunk/debian/rules
===================================================================
--- gwt/trunk/debian/rules 2012-07-04 12:08:47 UTC (rev 225)
+++ gwt/trunk/debian/rules 2012-07-04 12:08:52 UTC (rev 226)
@@ -29,3 +29,30 @@
get-orig-source:
debian/orig-tar.sh --upstream-version $(DEB_UPSTREAM_VERSION)
+
+# Unit tests are a fiddle to run and need some extra parts
+unittests: unittests-dev unittests-user
+
+unittests-check: build
+ dh_testdir
+ @if ! [ -d samples ]; then \
+ echo "The debian sources for this package do not include the samples directory"; \
+ echo "which is needed to run the unit tests. You can download the official GWT"; \
+ echo "build from Google from http://code.google.com/webtoolkit/download.html"; \
+ exit 1; \
+ fi
+ @if ! [ -d "$$GWT_EXTTOOLS"/lib/junit ]; then \
+ echo "To run the unit tests you need to set GWT_EXTTOOLS to point to a checkout" ;\
+ echo "of Google web tools. You can get it here:" ;\
+ echo " svn checkout http://google-web-toolkit.googlecode.com/svn/tools" ;\
+ exit 1 ;\
+ fi
+ cd build-tools/ant-gwt && ant
+
+unittests-dev : unittests-check
+ @echo Development unit tests
+ ant -propertyfile debian/ant.properties -propertyfile tools.properties -DartifactVersion=2.4.0 -f dev/build.xml test
+
+unittests-user : unittests-check
+ @echo User unit tests
+ ant -propertyfile debian/ant.properties -propertyfile tools.properties -DartifactVersion=2.4.0 -f user/build.xml test
More information about the pkg-eucalyptus-commits
mailing list