Skip to content

Commit

Permalink
Demonstrate wrong suggestion for USE_TOOLS perl:run
Browse files Browse the repository at this point in the history
Found by wiz in audio/libopus.
  • Loading branch information
rillig committed Apr 26, 2024
1 parent d78a999 commit 1b18c1f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions v23/package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,21 @@ func (s *Suite) Test_Package__different_package_identifiers(c *check.C) {

}

func (s *Suite) Test_Package__TOOL_DEPENDS(c *check.C) {
t := s.Init(c)
t.SetUpPackage("category/package",
"TOOL_DEPENDS+=\tperl-[0-9]*:../../lang/perl5")
t.SetUpPackage("lang/perl5")
t.Chdir("category/package")
t.FinishSetUp()

G.checkdirPackage(".")

t.CheckOutputLines(
"WARN: Makefile:20: " +
"Use USE_TOOLS+=perl:run instead of this dependency.")
}

func (s *Suite) Test_NewPackage(c *check.C) {
t := s.Init(c)

Expand Down

0 comments on commit 1b18c1f

Please sign in to comment.