File: rules

package info (click to toggle)
trillian 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,600 kB
  • sloc: sh: 1,181; javascript: 474; sql: 330; makefile: 39
file content (37 lines) | stat: -rwxr-xr-x 1,582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := \
	^github.com/google/trillian/cmd				\
	^github.com/google/trillian/docs			\
	^github.com/google/trillian/experimental		\
	^github.com/google/trillian/integration			\
	^github.com/google/trillian/monitoring			\
	^github.com/google/trillian/quota			\
	^github.com/google/trillian/redis			\
	^github.com/google/trillian/server			\
	^github.com/google/trillian/storage/cloudspanner	\
	^github.com/google/trillian/storage/crdb		\
	^github.com/google/trillian/storage/postgresql		\
	^github.com/google/trillian/testonly			\
	^github.com/google/trillian/util/election2/etcd

%:
	dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_install:
	dh_auto_install -- --no-binaries

SKIP="TestMySQLWarning|TestNewClientDialOptionsFromFlagsWithTLSCertFileNotSet|TestNewClientDialOptionsFromFlagsWithTLSCertFileSet"

override_dh_auto_test:
# 2024/01/23 06:54:39 db.Ping(): dial tcp 127.0.0.1:3306: connect: connection refused
# E0123 06:54:39.146285 3759376 storage_test.go:349] MySQL not available, skipping all MySQL storage tests
# ok  	github.com/google/trillian/storage/mysql	0.007s
# === RUN   TestMySQLWarning
# 2024/01/23 06:54:39 db.Ping(): dial tcp 127.0.0.1:3306: connect: connection refused
#     testdb_test.go:25: Deliberate test failure as a reminder that all storage-related tests are being skipped due to absent MySQL
# --- FAIL: TestMySQLWarning (0.00s)
# FAIL
# FAIL	github.com/google/trillian/storage/testdb	0.009s
	dh_auto_test $(DH_BUILD_OPTS) -- -skip $(SKIP)
	-dh_auto_test $(DH_BUILD_OPTS) -- -run $(SKIP)