From 04f46bf180cf506ceadb76b5afacf9c02700cc65 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:55:57 +0200 Subject: build: VERSION checked for build and install, cross names without v, dependency gate covers tests and BSDs, tarball install, examples and extractor list tested --- internal/extract/tools_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'internal/extract/tools_test.go') diff --git a/internal/extract/tools_test.go b/internal/extract/tools_test.go index 5af80fb..bafb7c2 100644 --- a/internal/extract/tools_test.go +++ b/internal/extract/tools_test.go @@ -280,3 +280,17 @@ func TestToolLookupSkipsRelativePathEntries(t *testing.T) { t.Errorf("tool found through a relative PATH entry: %q", e.tools["pdftotext"]) } } + +// TestMakefileListsEveryTool: `make build` reports missing extractors from +// its own list of tool names; it must be the list Extractor looks up +// (triage 34p). +func TestMakefileListsEveryTool(t *testing.T) { + mk, err := os.ReadFile(filepath.Join("..", "..", "Makefile")) + if err != nil { + t.Fatal(err) + } + want := "for t in " + strings.Join(toolNames, " ") + "; do" + if !strings.Contains(string(mk), want) { + t.Errorf("Makefile's extractor loop is not %q", want) + } +} -- cgit v1.3