[LLVMbugs] [Bug 9687] New: many tests fail because MKS bash does not support "set -o pipefail"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 12 09:48:29 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=9687

           Summary: many tests fail because MKS bash does not support "set
                    -o pipefail"
           Product: Test Suite
           Version: trunk
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dneto.llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu, daniel at zuster.org


Created an attachment (id=6441)
 --> (http://llvm.org/bugs/attachment.cgi?id=6441)
Patch to avoid using "set -o pipefail" when not supported

My platform is: Developer Studio 2008 (MSVC 9), CMake generating NMake
makefiles, MKS 9. 
MKS provides unix-like command line tools, though many provide only very basic
compatibility.

When CMake configures the tree, all the test scripts begin with "set -o
pipefail".

Unfortunately MKS bash doesn't understand the pipefail option:

D:\llvmtrunk\llvm\utils>which bash
c:/mks/mksnt/bash.exe

D:\llvmtrunk\llvm\utils>bash -c "set -o pipefail"
set: Unknown option "pipefail"


I'm attaching a patch to work around this limitation.

Tested on:
- LLVM trunk Windows + Cmake + MKS + NMake makefiles
- LLVM 2.8 Linux (with recent GNU batsh)

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list