Skip to content

Commit 4470454

Browse files
committed
RpmMacros,Tmain: add a case testing the macros.d/macro.* rexpr entry
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent ea49cef commit 4470454

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
%vimfiles_root %{_datadir}/vim/vimfiles

Tmain/map-rexpr.d/run.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright: 2025 Masatake YAMATO
2+
# License: GPL-2
3+
4+
CTAGS=$1
5+
6+
. ../utils.sh
7+
8+
echo "# < macros.d/macros.vm"
9+
${CTAGS} --quiet --options=NONE --print-language macros.d/macros.vim
10+
${CTAGS} --quiet --options=NONE -o - macros.d/macros.vim
11+
12+
echo "# cd macros.d; < macros.vim"
13+
(
14+
cd macros.d;
15+
${CTAGS} --quiet --options=NONE --print-language macros.vim;
16+
${CTAGS} --quiet --options=NONE -o - macros.vim
17+
)

Tmain/map-rexpr.d/stderr-expected.txt

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# < macros.d/macros.vm
2+
macros.d/macros.vim: RpmMacros
3+
vimfiles_root macros.d/macros.vim /^%vimfiles_root %{_datadir}\/vim\/vimfiles$/;" m
4+
# cd macros.d; < macros.vim
5+
macros.vim: Vim

0 commit comments

Comments
 (0)