Skip to content

many tests fail if the shell does not support "set -o pipefail" #10059

@llvmbot

Description

@llvmbot
Bugzilla Link 9687
Version trunk
OS Windows 2000
Blocks llvm/llvm-bugzilla-archive#9703
Attachments Patch to avoid using "set -o pipefail" when not supported
Reporter LLVM Bugzilla Contributor
CC @emaste,@modocache,@ZviRackover

Extended Description

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions