all repos — cgit @ 7e5c048505efe1902fb476cc2cb3160ff7df013d

a hyperfast web frontend for git written in c

tests/t0101-index.sh (view raw)

 1#!/bin/sh
 2
 3. ./setup.sh
 4
 5prepare_tests "Check content on index page"
 6
 7run_test 'generate index page' 'cgit_url "" >trash/tmp'
 8run_test 'find foo repo' 'grep -e "foo" trash/tmp'
 9run_test 'find foo description' 'grep -e "\[no description\]" trash/tmp'
10run_test 'find bar repo' 'grep -e "bar" trash/tmp'
11run_test 'find bar description' 'grep -e "the bar repo" trash/tmp'
12run_test 'find foo+bar repo' 'grep -e ">foo+bar<" trash/tmp'
13run_test 'verify foo+bar link' 'grep -e "/foo+bar/" trash/tmp'
14run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp'
15run_test 'no log-link' '! grep -e "foo/log" trash/tmp'
16
17tests_done