| 1 |
#!/usr/bin/make -f |
| 2 |
# Uncomment this to turn on verbose mode. |
| 3 |
# export DH_VERBOSE=1 |
| 4 |
|
| 5 |
package:=cloudsql-proxy |
| 6 |
SRCTOP:= $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi) |
| 7 |
INSTALL = install |
| 8 |
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) |
| 9 |
INSTALL_PROGRAM += -s |
| 10 |
endif |
| 11 |
install_file = $(INSTALL) -p -o root -g root -m 644 |
| 12 |
install_program = $(INSTALL) -p -o root -g root -m 755 |
| 13 |
install_script = $(INSTALL) -p -o root -g root -m 755 |
| 14 |
make_directory = $(INSTALL) -p -d -o root -g root -m 755 |
| 15 |
PREFIX=/usr |
| 16 |
|
| 17 |
export DH_VERBOSE = 1 |
| 18 |
export DH_GOLANG_INSTALL_EXTRA := proxy/util/version.txt |
| 19 |
|
| 20 |
# Some tests require one to be on a GCE instance, and others |
| 21 |
# expect to use fuse. These should be safe to run. |
| 22 |
override_dh_auto_test: |
| 23 |
$(GO) test TestCreateInstanceConfigs |
| 24 |
$(GO) test TestParseInstanceConfig |
| 25 |
$(GO) test TestClientCache |
| 26 |
$(GO) test TestConcurrentRefresh |
| 27 |
$(GO) test TestMaximumConnectionsCount |
| 28 |
$(GO) test TestConnSetAdd |
| 29 |
$(GO) test TestConnSetRemove |
| 30 |
$(GO) test TestConns |
| 31 |
$(GO) test TestSplitName |
| 32 |
|
| 33 |
%: |
| 34 |
dh $@ --builddirectory=_build --buildsystem=golang |
| 35 |
|
| 36 |
|
| 37 |
#Local variables: |
| 38 |
#mode: makefile |
| 39 |
#End: |