diff options
Diffstat (limited to 't/recipes/checks/debhelper/debhelper-override-typos')
4 files changed, 67 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/debian/rules b/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/debian/rules new file mode 100755 index 0000000..6787305 --- /dev/null +++ b/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f + +%: + dh $@ + +# Bad +override_dh_nump: # Multiple matches should emit only one tag +override_dh_instakk: + override_dh_installcrons: +override_dh_install_examples: +override_dh_install_changelogs : # Extra space +override_dh_perls override_dh_python3 : # Bad then good +override_dh_python3 override_dh_perls : # Good then bad +override_dh_instakk override_dh_install_examples : # Both broken, with space +foo override_dh_installdebs bar override_dh_installxmlcatalog: # combining regular and overrides + +# Don't worry about anything beyond a colon even if wrong; it will fail anyway. +override_dh_testdirs: override_dh_ucfs + +# Specifically check for missing "auto" ("dh_override_auto_build" has a +# distance of "5" to "dh_override_build") +override_dh_build: + +# Missing space +override dh_install: + +execute_after_dh_nope: +execute_before_dh_nope: + +# Good +.PHONY: override_dh_ucfs +override_dh_install: +override_dh_install : + override_dh_install: # +prefix_override_dh_gconfs: +override_dh_will_never_exist: +override_dh_python3 override_dh_perl : +override_dh_auto_configure-% override_dh_auto_install-%: +foo override_dh_installdeb bar override_dh_installxmlcatalogs: # combining regular and overrides +override_dh_install: $(PY3VERS:%=install-python%) +# override_dh_instal: would be a typo, but in a comment it doesn't matter +execute_after_dh_install: +execute_before_dh_install: diff --git a/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/fill-values b/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/fill-values new file mode 100644 index 0000000..1b2ed96 --- /dev/null +++ b/t/recipes/checks/debhelper/debhelper-override-typos/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: debhelper-override-typos +Description: Test for typos in override targets diff --git a/t/recipes/checks/debhelper/debhelper-override-typos/eval/desc b/t/recipes/checks/debhelper/debhelper-override-typos/eval/desc new file mode 100644 index 0000000..4759fe7 --- /dev/null +++ b/t/recipes/checks/debhelper/debhelper-override-typos/eval/desc @@ -0,0 +1,2 @@ +Testname: debhelper-override-typos +Check: debhelper diff --git a/t/recipes/checks/debhelper/debhelper-override-typos/eval/hints b/t/recipes/checks/debhelper/debhelper-override-typos/eval/hints new file mode 100644 index 0000000..9d2ec32 --- /dev/null +++ b/t/recipes/checks/debhelper/debhelper-override-typos/eval/hints @@ -0,0 +1,19 @@ +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_testdirs => override_dh_testdir [debian/rules:18] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_perls => override_dh_perl [debian/rules:13] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_perls => override_dh_perl [debian/rules:12] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_nump => override_dh_numpy3 [debian/rules:7] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installxmlcatalog => override_dh_installxmlcatalogs [debian/rules:15] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installdebs => override_dh_installdeb [debian/rules:15] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_installcrons => override_dh_installcron [debian/rules:9] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_examples => override_dh_installexamples [debian/rules:14] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_examples => override_dh_installexamples [debian/rules:10] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_install_changelogs => override_dh_installchangelogs [debian/rules:11] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_instakk => override_dh_install [debian/rules:8] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_instakk => override_dh_install [debian/rules:14] +debhelper-override-typos (source): typo-in-debhelper-override-target override_dh_build => override_dh_auto_build [debian/rules:22] +debhelper-override-typos (source): typo-in-debhelper-override-target override dh_install => override_dh_install [debian/rules:25] +debhelper-override-typos (source): typo-in-debhelper-override-target execute_before_dh_nope => execute_before_dh_gnome [debian/rules:28] +debhelper-override-typos (source): typo-in-debhelper-override-target execute_after_dh_nope => execute_after_dh_gnome [debian/rules:27] +debhelper-override-typos (source): debian-build-system dh [debian/rules] +debhelper-override-typos (source): debhelper-compat-virtual-relation 13 [debian/control] +debhelper-override-typos (source): debhelper-compat-level 13 |