#!/bin/sh . ./setup.sh prepare_tests "Check content on diff page" run_test 'generate foo/diff' 'cgit_url "foo/diff" >trash/tmp' run_test 'find diff header' 'grep "a/file-5 b/file-5" trash/tmp' run_test 'find blob link' 'grep "@@ -0,0 +1 @@" trash/tmp ' run_test 'find added line' ' grep "
+5
" trash/tmp ' tests_done