all repos — cgit @ 78a24e5c55ac57efab90cf1e65b9af226b388a39

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 'verify "with%20space" link' 'grep -e "/with%20space/" trash/tmp'
15run_test 'no tree-link' '! grep -e "foo/tree" trash/tmp'
16run_test 'no log-link' '! grep -e "foo/log" trash/tmp'
17
18tests_done