#!/usr/bin/make -f

# cmd/ is the squealer command; only the library is packaged.
export DH_GOLANG_EXCLUDES := cmd

%:
	dh $@ --builddirectory=debian/_build --buildsystem=golang --with=golang

override_dh_auto_test:
	# TestNewScannerIsDirectoryScanner reads test_resources/, which the +ds
	# tarball does not carry. TestSarifFormmaterOutput expects the $schema URL
	# of go-sarif 1.1.1; Debian's go-sarif writes the OASIS errata URL.
	dh_auto_test -- -skip 'TestNewScannerIsDirectoryScanner|TestSarifFormmaterOutput'
