| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DH_GOLANG_EXCLUDES := \ |
| 8 |
cmd/signature-fuzzer \ |
| 9 |
go/analysis/passes/httpmux/cmd/httpmux \ |
| 10 |
gopls\b \ |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
export DH_GOLANG_EXCLUDES += \ |
| 15 |
copyright \ |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
RENAME_BIN := \ |
| 22 |
bisect \ |
| 23 |
bundle \ |
| 24 |
deadcode \ |
| 25 |
eg \ |
| 26 |
stress \ |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
RENAME_BIN += \ |
| 31 |
defers \ |
| 32 |
fieldalignment \ |
| 33 |
findcall \ |
| 34 |
ifaceassert \ |
| 35 |
lostcancel \ |
| 36 |
nilness \ |
| 37 |
shadow \ |
| 38 |
stringintconv \ |
| 39 |
unmarshal \ |
| 40 |
unusedresult \ |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
RENAME_BIN += \ |
| 45 |
nodecount \ |
| 46 |
play \ |
| 47 |
|
| 48 |
|
| 49 |
execute_before_dh_auto_configure: |
| 50 |
|
| 51 |
|
| 52 |
mkdir -p _build |
| 53 |
cp -av debian/go/src _build/ |
| 54 |
|
| 55 |
execute_after_dh_auto_install: |
| 56 |
for i in $(RENAME_BIN); \ |
| 57 |
do \ |
| 58 |
mv debian/tmp/usr/bin/$$i debian/tmp/usr/bin/golang-$$i; \ |
| 59 |
done |
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
rm -rvf debian/tmp/usr/share/gocode/src/golang.org/x/tools/gopls |
| 64 |
|
| 65 |
SKIP="TestTestFiles|TestMultifileStringer|TestPassModule|TestAnalyzer|TestErrorsAsType|TestRangeInt|TestCHAGenerics|TestCHAUnexported|TestRTA|TestStatic|TestNodeInterface|TestVTAGraphConstruction|TestPropagation|TestVTACallGraph|TestVTACallGraphGenerics|TestVTACallGraphGo117|TestIssue70394|TestDirAndForTest|TestCompiledGoFilesIncludesDepsErrors|TestGenericBodies|TestTypesWithNames|TestNoIndirectCreatePackage|TestInit|TestSyntheticFuncs|TestPhiElimination|TestGenericDecls|TestGenericWrappers|TestOrderOfOperations|TestGenericFunctionSelector|TestSyntax|TestLabels|TestIssue67079|TestNeedsInstance|TestCallsToInstances|TestInstanceUniqueness|TestObjValueLookup|TestValueForExpr|TestValueForExprStructConv|TestEnclosingFunction|TestGenericPaths|TestEncodeDecodeAliases|TestIExportDataTypeParameterizedAliases|TestRmdirAfterGoList_Direct|TestData/generic.txtar|TestData/import-preserve-local-pkgname.txtar|TestData/assignment.txtar|TestData/import-comments2.txtar|TestData/import-shadow-1.txtar|TestData/import-shadow-2.txtar|TestFree124|TestZeroValue|TestOrigin/alias|TestOrigin/localalias|TestCalls|TestRewrites|TestPaths|TestOrdering|TestIssue70418" |
| 66 |
override_dh_auto_test: |
| 67 |
ifeq (,$(findstring gccgo, $(shell go version))) |
| 68 |
|
| 69 |
|
| 70 |
-dh_auto_test -- -short -timeout=30m -run=$(SKIP) |
| 71 |
dh_auto_test -- -short -timeout=30m -skip=$(SKIP) |
| 72 |
endif |
| 73 |
|
| 74 |
%: |
| 75 |
dh $@ --builddirectory=_build |