#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mocha test/*.js
	if node debian/tests/CVE-2020-7608.js|egrep ^baz; then \
		echo "Vulnerable to CVE-2020-7608"; \
		exit 1; \
	fi
endif
