1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/utils/lit/tests/use-tool-search-env.py
James Henderson 593bccf28a [lit] Report tool path from use_llvm_tool if found via env variable
Previously, if the search_env argument was specified, and the tool was
found at that location, the path was not reported, unlike other
situations when this function was called. Adding the reporting makes the
function consistent.

Reviewed by: thopre

Differential Revision: https://reviews.llvm.org/D101896
2021-05-06 09:21:54 +01:00

8 lines
326 B
Python

## Show that lit reports the path to tools picked up via the use_llvm_tool
## function when the tool is found via an environment variable.
# RUN: %{lit} %{inputs}/use-tool-search-env 2>&1 | \
# RUN: FileCheck %s -DDIR=%p
# CHECK: note: using test-tool: [[DIR]]{{[\\/]}}Inputs{{[\\/]}}use-tool-search-env{{[\\/]}}test.tool