#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := examples

# These tests compare a rendered view byte for byte against a golden file that
# upstream generated with the exact charm library releases it pins. The versions
# in unstable render the same views with small differences in trailing
# whitespace and in the cursor escape sequence, so the comparison fails while
# the behaviour is the same. Skipped by name rather than by package, so the rest
# of both suites still runs.
SKIP_GOLDEN := TestSelectSecond|TestPlaceholder|TestPaginate|TestPaginateLast|TestPaginatePush|TestPaginateScroll|TestLoopCursorTopToBottom|TestLoopCursorTopToBottomPaged|TestLoopCursorBottomToTop|TestLoopCursorBottomToTopPaged

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

override_dh_auto_test:
	dh_auto_test -- -skip '^($(SKIP_GOLDEN))$$'
