all repos — cgit @ c95cc5ec56dbb7394015eb18201403be6d80f69b

a hyperfast web frontend for git written in c

tests/t0102-summary.sh (view raw)

 1#!/bin/sh
 2
 3test_description='Check content on summary page'
 4. ./setup.sh
 5
 6test_expect_success 'generate foo summary' 'cgit_url "foo" >tmp'
 7test_expect_success 'find commit 1' 'grep "commit 1" tmp'
 8test_expect_success 'find commit 5' 'grep "commit 5" tmp'
 9test_expect_success 'find branch master' 'grep "master" tmp'
10test_expect_success 'no tags' '! grep "tags" tmp'
11test_expect_success 'clone-url expanded correctly' '
12	grep "git://example.org/foo.git" tmp
13'
14
15test_expect_success 'generate bar summary' 'cgit_url "bar" >tmp'
16test_expect_success 'no commit 45' '! grep "commit 45" tmp'
17test_expect_success 'find commit 46' 'grep "commit 46" tmp'
18test_expect_success 'find commit 50' 'grep "commit 50" tmp'
19test_expect_success 'find branch master' 'grep "master" tmp'
20test_expect_success 'no tags' '! grep "tags" tmp'
21test_expect_success 'clone-url expanded correctly' '
22	grep "git://example.org/bar.git" tmp
23'
24
25test_done