]>
git.cameronkatri.com Git - cgit.git/blob - tests/t0010-validate-html.sh
3 test_description
='Validate html with tidy'
10 test -z "$NO_TIDY_WARNINGS" || tidy_opt
+=" --show-warnings no"
11 cgit_url
"$1" >tidy
-$test_count || return
12 sed -ie "1,4d" tidy
-$test_count || return
13 "$tidy" $tidy_opt tidy
-$test_count
16 # tidy returns with exitcode 1 on warnings, 2 on error
25 tidy
=`which tidy 2>/dev/null`
27 skip_all
='Skipping html validation tests: tidy not found'
32 test_expect_success
'index page' 'test_url ""'
33 test_expect_success
'foo' 'test_url "foo"'
34 test_expect_success
'foo/log' 'test_url "foo/log"'
35 test_expect_success
'foo/tree' 'test_url "foo/tree"'
36 test_expect_success
'foo/tree/file-1' 'test_url "foo/tree/file-1"'
37 test_expect_success
'foo/commit' 'test_url "foo/commit"'
38 test_expect_success
'foo/diff' 'test_url "foo/diff"'