version 1.64, 2020/01/04 19:53:14 |
version 1.65, 2020/03/07 23:35:35 |
Line 45 func (s *Suite) Test_SimpleCommandChecke |
|
Line 45 func (s *Suite) Test_SimpleCommandChecke |
|
"WARN: Makefile:8: UNKNOWN_TOOL is used but not defined.") |
"WARN: Makefile:8: UNKNOWN_TOOL is used but not defined.") |
} |
} |
|
|
|
// Despite its name, the TOOLS_PATH.* name the whole shell command, |
|
// not just the path of its executable. |
|
func (s *Suite) Test_SimpleCommandChecker_checkCommandStart__TOOLS_PATH(c *check.C) { |
|
t := s.Init(c) |
|
|
|
t.SetUpPackage("category/package", |
|
"CONFIG_SHELL=\t${TOOLS_PATH.bash}") |
|
t.Chdir("category/package") |
|
t.FinishSetUp() |
|
G.checkdirPackage(".") |
|
|
|
t.CheckOutputEmpty() |
|
} |
|
|
func (s *Suite) Test_SimpleCommandChecker_checkInstallCommand(c *check.C) { |
func (s *Suite) Test_SimpleCommandChecker_checkInstallCommand(c *check.C) { |
t := s.Init(c) |
t := s.Init(c) |
|
|
Line 841 func (s *Suite) Test_ShellLineChecker_Ch |
|
Line 855 func (s *Suite) Test_ShellLineChecker_Ch |
|
t := s.Init(c) |
t := s.Init(c) |
|
|
t.SetUpVartypes() |
t.SetUpVartypes() |
|
t.SetUpTool("[", "TEST", AtRunTime) |
t.SetUpTool("awk", "AWK", AtRunTime) |
t.SetUpTool("awk", "AWK", AtRunTime) |
t.SetUpTool("cp", "CP", AtRunTime) |
t.SetUpTool("cp", "CP", AtRunTime) |
t.SetUpTool("echo", "", AtRunTime) |
t.SetUpTool("echo", "", AtRunTime) |
Line 927 func (s *Suite) Test_ShellLineChecker_Ch |
|
Line 942 func (s *Suite) Test_ShellLineChecker_Ch |
|
"WARN: filename.mk:1: The exitcode of \"${UNZIP_CMD}\" at the left of the | operator is ignored.") |
"WARN: filename.mk:1: The exitcode of \"${UNZIP_CMD}\" at the left of the | operator is ignored.") |
|
|
// From x11/wxGTK28/Makefile |
// From x11/wxGTK28/Makefile |
// TODO: Why is TOOLS_PATH.msgfmt not recognized? |
|
// At least, the warning should be more specific, mentioning USE_TOOLS. |
|
test(""+ |
test(""+ |
"set -e; cd ${WRKSRC}/locale; "+ |
"set -e; cd ${WRKSRC}/locale; "+ |
"for lang in *.po; do "+ |
"for lang in *.po; do "+ |
" [ \"$${lang}\" = \"wxstd.po\" ] && continue; "+ |
" [ \"$${lang}\" = \"wxstd.po\" ] && continue; "+ |
" ${TOOLS_PATH.msgfmt} -c -o \"$${lang%.po}.mo\" \"$${lang}\"; "+ |
" ${TOOLS_PATH.msgfmt} -c -o \"$${lang%.po}.mo\" \"$${lang}\"; "+ |
"done", |
"done", |
"WARN: filename.mk:1: Unknown shell command \"[\".", |
nil...) |
"WARN: filename.mk:1: Unknown shell command \"${TOOLS_PATH.msgfmt}\".") |
|
|
|
test("@cp from to", |
test("@cp from to", |
"WARN: filename.mk:1: The shell command \"cp\" should not be hidden.") |
"WARN: filename.mk:1: The shell command \"cp\" should not be hidden.") |