test suite: add test skip/ignore/blacklist

some unit tests are not passing, ignore them for now in order to allow
testing for regressions for the currently passing tests.

run ignored tests with

cargo test --features suite -- --ignored
This commit is contained in:
Noah Hellman 2023-02-11 20:54:50 +01:00
parent 1221a003ba
commit 619c5ef048
2 changed files with 23 additions and 0 deletions

View file

@ -1,4 +1,6 @@
BEGIN {
FS=":"
while (getline < "skip") skips[$1]=$2
print "use crate::suite_test;"
print ""
}
@ -40,6 +42,7 @@ $0 ~ "^\\.$" && !ignore { # enter html
cmd="cat src | md5sum | cut -c-7"
cmd | getline hash
close(cmd)
if (hash in skips) printf "#[ignore = \"%s\"]\n", skips[hash]
printf "fn test_%s() {\n", hash
printf " let src = r##\""
while (getline l < "src") print l

20
tests/suite/skip Normal file
View file

@ -0,0 +1,20 @@
38d85f9:multi-line block attributes
6c14561:multi-line block attributes
48546bb:escape in attributes
6bc4257:escape in attributes
613a9d6:attribute container precedence
f4f22fc:attribute key class order
ae6fc15:bugged left/right quote
168469a:bugged left/right quote
2056174:unicode whitespace emph
2e8fffa:unicode whitespace strong
e1f5b5e:untrimmed whitespace before linebreak
07888f3:div close within raw block
8423412:heading id conflict with existing id
00a46ed:clear inline formatting from link tags
a8e17c3:empty href
c0a3dec:escape in url
e66af00:url container precedence
61876cf:roman alpha ambiguity
f31b357:roman alpha ambiguity
642d380:table end in verbatim inline