mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
45
spec/unsupported_lexers/unixconfig/etc_group.txt
Normal file
45
spec/unsupported_lexers/unixconfig/etc_group.txt
Normal file
@ -0,0 +1,45 @@
|
||||
---input---
|
||||
root:x:0:
|
||||
sudo:x:1:syslog,user
|
||||
syslog:x:2:
|
||||
#adm:x:3:
|
||||
|
||||
user:x:1000
|
||||
|
||||
---tokens---
|
||||
'root' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'sudo' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'1' Literal.Number
|
||||
':' Punctuation
|
||||
'syslog,user' Text
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'syslog' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'2' Literal.Number
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'#adm:x:3:' Comment
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'user' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'1000' Literal.Number
|
||||
'\n' Text.Whitespace
|
86
spec/unsupported_lexers/unixconfig/etc_passwd.txt
Normal file
86
spec/unsupported_lexers/unixconfig/etc_passwd.txt
Normal file
@ -0,0 +1,86 @@
|
||||
---input---
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
|
||||
#irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin
|
||||
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
|
||||
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
|
||||
systemd-network:x:100:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin
|
||||
|
||||
---tokens---
|
||||
'root' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'root' Text
|
||||
':' Punctuation
|
||||
'/root' Literal.String
|
||||
':' Punctuation
|
||||
'/bin/bash' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'daemon' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'1' Literal.Number
|
||||
':' Punctuation
|
||||
'1' Literal.Number
|
||||
':' Punctuation
|
||||
'daemon' Text
|
||||
':' Punctuation
|
||||
'/usr/sbin' Literal.String
|
||||
':' Punctuation
|
||||
'/usr/sbin/nologin' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'#irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin' Comment
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'gnats' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'41' Literal.Number
|
||||
':' Punctuation
|
||||
'41' Literal.Number
|
||||
':' Punctuation
|
||||
'Gnats Bug-Reporting System (admin)' Text
|
||||
':' Punctuation
|
||||
'/var/lib/gnats' Literal.String
|
||||
':' Punctuation
|
||||
'/usr/sbin/nologin' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'nobody' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'65534' Literal.Number
|
||||
':' Punctuation
|
||||
'65534' Literal.Number
|
||||
':' Punctuation
|
||||
'nobody' Text
|
||||
':' Punctuation
|
||||
'/nonexistent' Literal.String
|
||||
':' Punctuation
|
||||
'/usr/sbin/nologin' Literal.String
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'systemd-network' Text
|
||||
':' Punctuation
|
||||
'x' Literal.String
|
||||
':' Punctuation
|
||||
'100' Literal.Number
|
||||
':' Punctuation
|
||||
'102' Literal.Number
|
||||
':' Punctuation
|
||||
'systemd Network Management,,,' Text
|
||||
':' Punctuation
|
||||
'/run/systemd' Literal.String
|
||||
':' Punctuation
|
||||
'/usr/sbin/nologin' Literal.String
|
||||
'\n' Text.Whitespace
|
74
spec/unsupported_lexers/unixconfig/etc_shadow.txt
Normal file
74
spec/unsupported_lexers/unixconfig/etc_shadow.txt
Normal file
@ -0,0 +1,74 @@
|
||||
---input---
|
||||
root:$6$L95fNbtS$IZ8affe7h2B.DF81HZ:17262:0:14600:14:::
|
||||
#nobody:*:18375:0:99999:7:::
|
||||
bin:*:17110:0:99999:7:::
|
||||
user:$6$KmghZnvbZs7f3SQ9$H6f0M61q5Cf8JLrS0kR3M97/o6GzD6FH3MbLs92CM/l9mHZ7FngBzRfa8D5NrWl.K8nM64affeWrY/L0U7nBt/:19097:0:99999:7:::
|
||||
linoadmin:!!:17289:0:99999:7:::
|
||||
|
||||
---tokens---
|
||||
'root' Text
|
||||
':' Punctuation
|
||||
'$6$L95fNbtS$IZ8affe7h2B.DF81HZ' Literal.String
|
||||
':' Punctuation
|
||||
'17262' Literal.Number
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'14600' Literal.Number
|
||||
':' Punctuation
|
||||
'14' Literal.Number
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'#nobody:*:18375:0:99999:7:::' Comment
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'bin' Text
|
||||
':' Punctuation
|
||||
'*' Literal.String
|
||||
':' Punctuation
|
||||
'17110' Literal.Number
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'99999' Literal.Number
|
||||
':' Punctuation
|
||||
'7' Literal.Number
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'user' Text
|
||||
':' Punctuation
|
||||
'$6$KmghZnvbZs7f3SQ9$H6f0M61q5Cf8JLrS0kR3M97/o6GzD6FH3MbLs92CM/l9mHZ7FngBzRfa8D5NrWl.K8nM64affeWrY/L0U7nBt/' Literal.String
|
||||
':' Punctuation
|
||||
'19097' Literal.Number
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'99999' Literal.Number
|
||||
':' Punctuation
|
||||
'7' Literal.Number
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'linoadmin' Text
|
||||
':' Punctuation
|
||||
'!!' Literal.String
|
||||
':' Punctuation
|
||||
'17289' Literal.Number
|
||||
':' Punctuation
|
||||
'0' Literal.Number
|
||||
':' Punctuation
|
||||
'99999' Literal.Number
|
||||
':' Punctuation
|
||||
'7' Literal.Number
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user