[SCM] Packaging for Google Go branch, debian-sid, updated. debian/1%60.2-1-32-ga228561

Ondřej Surý ondrej at sury.org
Wed Apr 11 21:27:04 UTC 2012


The following commit has been merged in the debian-sid branch:
commit b7cd2147ae904a9cbfac52734fe86308a5188ff1
Author: Ondřej Surý <ondrej at sury.org>
Date:   Wed Apr 11 16:18:51 2012 +0200

    Run upstream tests as a part of the build process

diff --git a/debian/control b/debian/control
index aa3051a..6f97898 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Priority: optional
 Maintainer: Ondřej Surý <ondrej at debian.org>
 Vcs-Browser: http://git.debian.org/?p=pkg-google/golang.git
 Vcs-Git: git://git.debian.org/pkg-google/golang.git
-Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl
+Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl, bash, netbase
 Build-Depends-Indep: po-debconf
 Standards-Version: 3.9.3
 Homepage: http://golang.org/
diff --git a/debian/rules b/debian/rules
index 9610622..cc8776b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,7 +24,7 @@ override_dh_auto_build: debian/build.stamp
 
 override_dh_auto_test:
 	:
-#	$(no_check) || { cd src && bash ./run.bash --no-rebuild; }
+	$(no_check) || { cd $(CURDIR)/src && $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH); }
 
 override_dh_compress:
 	dh_compress -Xusr/share/doc/$(PACKAGE)-doc/html -Xusr/share/doc/$(PACKAGE)-doc/godoc
@@ -41,7 +41,7 @@ override_dh_strip:
 debian/build.stamp:
 	rm -f debian/build.stamp
 	mkdir -p $(GOBIN)
-	+cd src && bash ./make.bash
+	+cd src && bash ./make.bash --no-banner
 	>debian/build.stamp
 
 opt_no_act =
diff --git a/debian/test.bash b/debian/test.bash
new file mode 100755
index 0000000..d8f6c05
--- /dev/null
+++ b/debian/test.bash
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+set -e
+eval $($1/dist env -p)
+bash run.bash --no-rebuild --banner

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list