This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Allow detecting whether the executor supports Bash
ClosedPublic

Authored by ldionne on Nov 25 2021, 1:28 PM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG87fe0709d4ad: [libc++] Allow detecting whether the executor supports Bash
Summary

A few tests in the test suite require support for Bash. For example,
tests that run a program and send data through stdin to it require some
way of piping the data in, and we use a Bash script for that.

However, some executors (e.g. an embedded systems simulator) do not
support Bash, so these tests will fail. This commit adds a Lit feature
that tries to detect whether Bash is available through conventional
means, and disables the tests that require it otherwise.

Diff Detail