all repos — cgit @ 00e3a3ecda77bf5ab149db0940c549f1bb618de4

a hyperfast web frontend for git written in c

tests/t0101-index.sh (view raw)

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