llvm-project/llvm/utils/lit/tests/substitutions.py
Rahul Joshi 876f661dbe
[LIT] Rename substitution %basename_s to %{s:basename} (#111062)
Also added `%{t:stem}` as an alias for `%basename_t` and modified unit
test to test these new substitutions.
2024-10-03 18:18:10 -07:00

8 lines
254 B
Python

# Basic test for substitutions.
#
# RUN: echo %{s:basename} | FileCheck %s --check-prefix=BASENAME
# RUN: echo %{t:stem} %basename_t | FileCheck %s --check-prefix=TMPBASENAME
# BASENAME: substitutions.py
# TMPBASENAME: [[FIRST:[^[:space:]]+]] [[FIRST]]