[libcxx-commits] [PATCH] D114612: [libc++] Allow detecting whether the executor supports Bash

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 25 13:28:26 PST 2021


ldionne created this revision.
Herald added a subscriber: arichardson.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114612

Files:
  libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cerr.sh.cpp
  libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cin.sh.cpp
  libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/clog.sh.cpp
  libcxx/test/std/input.output/iostream.objects/narrow.stream.objects/cout.sh.cpp
  libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcerr.sh.cpp
  libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcin.sh.cpp
  libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wclog.sh.cpp
  libcxx/test/std/input.output/iostream.objects/wide.stream.objects/wcout.sh.cpp
  libcxx/utils/libcxx/test/dsl.py
  libcxx/utils/libcxx/test/features.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114612.389878.patch
Type: text/x-patch
Size: 6164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211125/599c6c79/attachment.bin>


More information about the libcxx-commits mailing list