xref: /Universal-ctags/Tmain/option-use-slash-as-filename-separator.d/run.sh (revision a7ab3c61dad9c7f728d3885243a11e9577ccbec9)
1# Copyright: 2019 Masatake YAMATO
2# License: GPL-2
3
4CTAGS=$1
5OPT=--use-slash-as-filename-separator
6
7. ../utils.sh
8
9exit_unless_win32 $CTAGS
10
11echo '#u-ctags output'
12$CTAGS --quiet --options=NONE -o -      'src\input.c'
13$CTAGS --quiet --options=NONE -o - $OPT 'src\input.c'
14$CTAGS --quiet --options=NONE -o - ${OPT}=no 'src\input.c'
15
16echo '#u-ctags ptag output'
17{
18$CTAGS --quiet --options=NONE --extras=p -o -      'src\input.c'
19$CTAGS --quiet --options=NONE --extras=p -o - $OPT 'src\input.c'
20$CTAGS --quiet --options=NONE --extras=p -o - ${OPT}=no 'src\input.c'
21} | grep TAG_OUTPUT_FILESEP
22
23echo '#e-ctags output'
24$CTAGS --quiet --options=NONE --output-format=e-ctags -o -           'src\input.c'
25$CTAGS --quiet --options=NONE --output-format=e-ctags -o - $OPT      'src\input.c'
26$CTAGS --quiet --options=NONE --output-format=e-ctags -o - ${OPT}=no 'src\input.c'
27
28echo '#e-ctags ptag output'
29{
30$CTAGS --quiet --options=NONE --extras=p --output-format=e-ctags -o -           'src\input.c'
31$CTAGS --quiet --options=NONE --extras=p --output-format=e-ctags -o - $OPT      'src\input.c'
32$CTAGS --quiet --options=NONE --extras=p --output-format=e-ctags -o - ${OPT}=no 'src\input.c'
33} | grep TAG_OUTPUT_FILESEP
34
35echo '#xref output'
36$CTAGS --quiet --options=NONE --output-format=xref -o -           'src\input.c'
37$CTAGS --quiet --options=NONE --output-format=xref -o - $OPT      'src\input.c'
38$CTAGS --quiet --options=NONE --output-format=xref -o - ${OPT}=no 'src\input.c'
39
40# TODO: json output
41