Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Excluded binaries. List all binary names:
5 # go list -f '{{ if eq .Name "main" }}{{ .ImportPath }}{{ end }}' ./...
6 # (cd gopls && go list -f '{{ if eq .Name "main" }}{{ .ImportPath }}{{ end }}' ./...)
7 export DH_GOLANG_EXCLUDES := \
8 cmd/signature-fuzzer \
9 go/analysis/passes/httpmux/cmd/httpmux \
10 gopls\b \
11 # EOL
12
13 # Excluded tests
14 export DH_GOLANG_EXCLUDES += \
15 copyright \
16 # EOL
17
18 # eg #753978
19 # stress #793693
20 # bundle #818551
21 RENAME_BIN := \
22 bisect \
23 bundle \
24 deadcode \
25 eg \
26 stress \
27 # EOL
28
29 # All go/analysis/*/*/cmd/*
30 RENAME_BIN += \
31 defers \
32 fieldalignment \
33 findcall \
34 ifaceassert \
35 lostcancel \
36 nilness \
37 shadow \
38 stringintconv \
39 unmarshal \
40 unusedresult \
41 # EOL
42
43 # All go/*/internal/*
44 RENAME_BIN += \
45 nodecount \
46 play \
47 # EOL
48
49 execute_before_dh_auto_configure:
50 # Copy golang.org/x/telemetry for opt-in transparent telemetry;
51 # see https://go.dev/issue/58894
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 # gopls can't be not imported by other packages.
61 # remove it to avoid tests in autopkgtest which causes circular
62 # dependencies when updating golang-golang-x-vuln.
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 # use short tests where possible (especially to skip tests like
69 # TestWebIndex which are very slow)
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