Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

@ -0,0 +1,20 @@
---input---
delta A 192.0.2.4 ; comment
delta2 A 192.0.2.5
---tokens---
'delta' Name
' ' Text.Whitespace
'A' Keyword.Type
' ' Text.Whitespace
'192.0.2.4' Literal
' ' Text.Whitespace
'; comment' Comment.Single
'\n' Text.Whitespace
'delta2' Name
' ' Text.Whitespace
'A' Keyword.Type
' ' Text.Whitespace
'192.0.2.5' Literal
'\n' Text.Whitespace

View File

@ -0,0 +1,8 @@
---input---
$INCLUDE test.zone
---tokens---
'$INCLUDE' Comment.Preproc
' ' Text.Whitespace
'test.zone' Comment.PreprocFile
'\n' Text.Whitespace

55
spec/tests/dns/soa.txt Normal file
View File

@ -0,0 +1,55 @@
---input---
@ IN SOA ns root ( ; E-mail
42 ; Serial
2h ; Refresh
1h ; Retry
14d ; Expire
1h ) ; Negative Cache TTL
---tokens---
'@' Operator
' ' Text.Whitespace
'IN' Name.Class
' ' Text.Whitespace
'SOA' Keyword.Type
' ' Text.Whitespace
'ns' Literal
' ' Text.Whitespace
'root' Literal
' ' Text.Whitespace
'(' Punctuation
' ' Text.Whitespace
'; E-mail' Comment.Single
'\n' Text.Whitespace
' ' Text.Whitespace
'42' Literal.Number.Integer
' ' Text.Whitespace
'; Serial' Comment.Single
'\n' Text.Whitespace
' ' Text.Whitespace
'2h' Literal.Number.Integer
' ' Text.Whitespace
'; Refresh' Comment.Single
'\n' Text.Whitespace
' ' Text.Whitespace
'1h' Literal.Number.Integer
' ' Text.Whitespace
'; Retry' Comment.Single
'\n' Text.Whitespace
' ' Text.Whitespace
'14d' Literal.Number.Integer
' ' Text.Whitespace
'; Expire' Comment.Single
'\n' Text.Whitespace
' ' Text.Whitespace
'1h' Literal.Number.Integer
' ' Text.Whitespace
')' Punctuation
' ' Text.Whitespace
'; Negative Cache TTL' Comment.Single
'\n' Text.Whitespace