debian: Run build tests during build (unless "nocheck" is specified).
authorBen Pfaff <blp@nicira.com>
Tue, 9 Jun 2009 20:32:59 +0000 (13:32 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 9 Jun 2009 20:32:59 +0000 (13:32 -0700)
debian/rules

index 707fe8b7db4238cbf990f7c1fd6bf839fcfa3aec..151822b93bdc543056e6248ccbca4d9f8c0e498d 100755 (executable)
@@ -48,6 +48,9 @@ build: build-arch build-indep
 build-arch: build-arch-stamp
 build-arch-stamp: configure-stamp 
        $(MAKE) -C _debian
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+       $(MAKE) -C _debian check
+endif
        touch $@
 
 build-indep: build-indep-stamp