Skip to content

Commit 286083a

Browse files
committed
Tmain: consider broken version strings in the versioning test case
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 1a75674 commit 286083a

File tree

10 files changed

+52
-0
lines changed

10 files changed

+52
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--_extradef-TEST=fullname,extended full name{version=-4}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--_fielddef-TEST=param,parameters{version=-3}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--kinddef-TEST=d,def,definitions{version=-1}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--langdef=TEST{version=10.9}
2+
--kinddef-TEST=m,macro,macros{version=3}
3+
--_roledef-TEST.{macro}=expanded,expanded macros{version=-2}

Tmain/versioning.d/run.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,21 @@ ${CTAGS} --quiet --options=NONE --options=./test.ctags --list-roles=TEST
1515
${CTAGS} --quiet --options=NONE --options=./test.ctags --list-fields=TEST
1616
${CTAGS} --quiet --options=NONE --options=./test.ctags --list-extras=TEST
1717
${CTAGS} --quiet --options=NONE --options=./test.ctags --describe-language=TEST
18+
19+
${CTAGS} --quiet --options=NONE --options=./broken-kind.ctags --_force-quit=0
20+
echo broken kind: $? 1>&2
21+
${CTAGS} --quiet --options=NONE --options=./broken-role.ctags --_force-quit=0
22+
echo broken role: $? 1>&2
23+
${CTAGS} --quiet --options=NONE --options=./broken-field.ctags --_force-quit=0
24+
echo broken field: $? 1>&2
25+
${CTAGS} --quiet --options=NONE --options=./broken-extra.ctags --_force-quit=0
26+
echo broken extra: $? 1>&2
27+
28+
${CTAGS} --quiet --options=NONE --options=./warning-kind.ctags --_force-quit=0
29+
echo warning kind: $? 1>&2
30+
${CTAGS} --quiet --options=NONE --options=./warning-role.ctags --_force-quit=0
31+
echo warning role: $? 1>&2
32+
${CTAGS} --quiet --options=NONE --options=./warning-field.ctags --_force-quit=0
33+
echo warning field: $? 1>&2
34+
${CTAGS} --quiet --options=NONE --options=./warning-extra.ctags --_force-quit=0
35+
echo warning extra: $? 1>&2

Tmain/versioning.d/stderr-expected.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@ ctags: Faile to parse the version number (the current part) for language "TEST":
22
ctags: Faile to parse the version number (the age part) for language "TEST": 10.b
33
ctags: Faile to parse the version number (the current part) for language "TEST": -1.9
44
ctags: Faile to parse the version number (the age part) for language "TEST": 10.-3
5+
ctags: Faile to parse the version number for kind "def": -1
6+
broken kind: 1
7+
ctags: Faile to parse the version number for role "expanded": -2
8+
broken role: 1
9+
ctags: Faile to parse the version number for field "param": -3
10+
broken field: 1
11+
ctags: Faile to parse the version number for extra "fullname": -4
12+
broken extra: 1
13+
ctags: Warning: the version number (11) of kind "d,def" of language "TEST" should be less than or equal to the current number (10) of the language
14+
warning kind: 0
15+
ctags: Warning: the version number (11) of role "expanded" of language "TEST" should be less than or equal to the current number (10) of the language
16+
warning role: 0
17+
ctags: Warning: the version number (11) of field "param" of language "TEST" should be less than or equal to the current number (10) of the language
18+
warning field: 0
19+
ctags: Warning: the version number (11) of extra "fullname" of language "TEST" should be less than or equal to the current number (10) of the language
20+
warning extra: 0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--_extradef-TEST=fullname,extended full name{version=11}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--_fielddef-TEST=param,parameters{version=11}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--langdef=TEST{version=10.9}
2+
--kinddef-TEST=d,def,definitions{version=11}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--langdef=TEST{version=10.9}
2+
--kinddef-TEST=m,macro,macros{version=3}
3+
--_roledef-TEST.{macro}=expanded,expanded macros{version=11}

0 commit comments

Comments
 (0)