xref: /Universal-ctags/Tmain/json-limit-recursion.d/run.sh (revision 844ef58017d47b1f6cdbcd9d2575ac06606992fc)
1# Copyright: 2019 Masatake YAMATO
2# License: GPL-2
3
4CTAGS=$1
5O="--options=NONE --sort=no -o - --kinds-JSON=-ao"
6
7echo '# depth: 512, items: 1' &&
8echo '# depth: 512, items: 1' 1>&2 &&
9${CTAGS} --quiet $O input512-one.json &&
10
11echo '# depth: 512, items: 2' &&
12echo '# depth: 512, items: 2' 1>&2 &&
13${CTAGS} --quiet $O input512-two.json &&
14
15echo '# depth: 513, items: 1' &&
16echo '# depth: 513, items: 1' 1>&2 &&
17${CTAGS} --quiet $O input513-one.json &&
18
19echo '# depth: 513, items: 2' &&
20echo '# depth: 513, items: 2' 1>&2 &&
21${CTAGS} --quiet $O input513-two.json &&
22
23echo '# depth: 513, items: 1, NO QUIET' &&
24echo '# depth: 513, items: 1, NO QUIET' 1>&2 &&
25${CTAGS} $O input513-one.json &&
26
27echo '# depth: 513, items: 2, NO QUIET' &&
28echo '# depth: 513, items: 2, NO QUIET' 1>&2 &&
29${CTAGS} $O input513-two.json
30