Skip to contentSkip to conversation

fix 'make test' for HP NonStop

PATCH Joachim Schmitz 2 participants 4 messages Jun 15, 2016 Kbuild

lore
Share & tools
lore
#0 lore raw

This fixes the vast majority of test failures on HP NonStop.

---
v2: hardcode /usr/local rather than using ${prefix}

Makefile | 9 +++++++++

1 file changed, 9 insertions(+)
Makefile +0 -0
index f69979e..35380dd 100644
@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL)

MKDIR_WO_TRAILING_SLASH = YesPlease
# RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes
+
+ # for 'make test'
+ # some test don't work with /bin/diff, some fail with /bin/tar
+ # some need bash, and some need /usr/local/bin in PATH first
+ SHELL_PATH=/usr/local/bin/bash
+ SANE_TOOL_PATH=/usr/local/bin
+ # as of H06.25/J06.14, we might better use this
+ #SHELL_PATH=/usr/coreutils/bin/bash
+ #SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin
endif
ifneq (,$(findstring MINGW,$(uname_S)))

	pathsep = ;
#1 lore raw
Quoted 5 lines · Joachim Schmitz
Makefile +0 -0
index f69979e..35380dd 100644

Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1389

Quoted 9 lines
Makefile +6 -0
@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
 	MKDIR_WO_TRAILING_SLASH = YesPlease
 	# RFE 10-120912-4693 submitted to HP NonStop development.
 	NO_SETITIMER = UnfortunatelyYes
+
+	# for 'make test'
+	# some test don't work with /bin/diff, some fail with /bin/tar
+	# some need bash, and some need /usr/local/bin in PATH first
+	SHELL_PATH=/usr/local/bin/bash
+	SANE_TOOL_PATH=/usr/local/bin

I think we can drop these comments, as the reasoning really should just go in the commit message.

Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1392

Quoted 3 lines
Makefile +3 -0
+	# as of H06.25/J06.14, we might better use this
+	#SHELL_PATH=/usr/coreutils/bin/bash
+	#SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin

Is there any reason not to put both into the default SANE_TOOL_PATH? If /usr/coreutils/bin does not exist on older versions, it will be a harmless no-op. I guess we arestuck with picking one $SHELL_PATH, though.

-Peff

#2 lore raw
Quoted 17 lines

From: Jeff King [mailto:[email protected]]
Sent: Monday, October 29, 2012 8:07 AM
To: Joachim Schmitz
Cc: [email protected]
Subject: Re: [PATCH v2] fix 'make test' for HP NonStop

Quoted 9 lines · Joachim Schmitz
Makefile +1 -0
index f69979e..35380dd 100644
@@ -1381,6 +1381,15 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
 	MKDIR_WO_TRAILING_SLASH = YesPlease
 	# RFE 10-120912-4693 submitted to HP NonStop development.
 	NO_SETITIMER = UnfortunatelyYes
+
Quoted 8 lines

Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1389

Quoted 5 lines
Makefile +5 -0
+	# for 'make test'
+	# some test don't work with /bin/diff, some fail with /bin/tar
+	# some need bash, and some need /usr/local/bin in PATH first
+	SHELL_PATH=/usr/local/bin/bash
+	SANE_TOOL_PATH=/usr/local/bin

I think we can drop these comments, as the reasoning really should just go in the commit message.

OK by me.

Quoted 8 lines

Makefile ifeq ($(uname_S),NONSTOP_KERNEL) · line 1392

Quoted 3 lines
Makefile +3 -0
+	# as of H06.25/J06.14, we might better use this
+	#SHELL_PATH=/usr/coreutils/bin/bash
+	#SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin

Is there any reason not to put both into the default SANE_TOOL_PATH? If /usr/coreutils/bin does not exist on older versions, it will be a harmless no-op. I guess we arestuck with picking one $SHELL_PATH, though.

And because of that have to modify something anyway... But I don't really mind about an extended SANE_TOOL_PATH

Quoted 1 line

-Peff

Bye, Jojo

-- 8< --
This fixes the vast majority of test failures on HP NonStop. Some test don't work with /bin/diff, some fail with /bin/tar, so let's put /usr/local/bin in PATH first.
Some tests fail with /bin/sh (link to /bin/ksh) so use bash instead

---

Makefile | 9 +++++++++

1 file changed, 9 insertions(+)
Makefile +0 -0
index f69979e..35380dd 100644
@@ -1381,6 +1381,10 @@ ifeq ($(uname_S),NONSTOP_KERNEL)

MKDIR_WO_TRAILING_SLASH = YesPlease
# RFE 10-120912-4693 submitted to HP NonStop development. NO_SETITIMER = UnfortunatelyYes
+ SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin
+ SHELL_PATH=/usr/local/bin/bash
+ # as of H06.25/J06.14, we might better use this
+ #SHELL_PATH=/usr/coreutils/bin/bash
endif
ifneq (,$(findstring MINGW,$(uname_S)))

	pathsep = ;
#3 lore raw
Quoted 25 lines · Joachim Schmitz

This fixes the vast majority of test failures on HP NonStop. Some test don't work with /bin/diff, some fail with /bin/tar, so let's put /usr/local/bin in PATH first.
Some tests fail with /bin/sh (link to /bin/ksh) so use bash instead

---

Makefile | 9 +++++++++

1 file changed, 9 insertions(+)
Makefile +4 -0
index f69979e..35380dd 100644
@@ -1381,6 +1381,10 @@ ifeq ($(uname_S),NONSTOP_KERNEL)
 	MKDIR_WO_TRAILING_SLASH = YesPlease
 	# RFE 10-120912-4693 submitted to HP NonStop development.
 	NO_SETITIMER = UnfortunatelyYes
+	SANE_TOOL_PATH=/usr/coreutils/bin:/usr/local/bin 
+	SHELL_PATH=/usr/local/bin/bash
+	# as of H06.25/J06.14, we might better use this
+	#SHELL_PATH=/usr/coreutils/bin/bash

endif
ifneq (,$(findstring MINGW,$(uname_S)))

Quoted 1 line
	pathsep = ;

Your patch was whitespace damaged, but I was able to fix it up. Thanks.

-Peff