merge(third_party/cgit): Import at master of 2020-01-11
Imported commit '723dc8fbcb' as
'third_party/cgit'.
This commit is contained in:
commit
5a069d5888
102 changed files with 15632 additions and 0 deletions
25
third_party/cgit/tests/t0102-summary.sh
vendored
Executable file
25
third_party/cgit/tests/t0102-summary.sh
vendored
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
test_description='Check content on summary page'
|
||||
. ./setup.sh
|
||||
|
||||
test_expect_success 'generate foo summary' 'cgit_url "foo" >tmp'
|
||||
test_expect_success 'find commit 1' 'grep "commit 1" tmp'
|
||||
test_expect_success 'find commit 5' 'grep "commit 5" tmp'
|
||||
test_expect_success 'find branch master' 'grep "master" tmp'
|
||||
test_expect_success 'no tags' '! grep "tags" tmp'
|
||||
test_expect_success 'clone-url expanded correctly' '
|
||||
grep "git://example.org/foo.git" tmp
|
||||
'
|
||||
|
||||
test_expect_success 'generate bar summary' 'cgit_url "bar" >tmp'
|
||||
test_expect_success 'no commit 45' '! grep "commit 45" tmp'
|
||||
test_expect_success 'find commit 46' 'grep "commit 46" tmp'
|
||||
test_expect_success 'find commit 50' 'grep "commit 50" tmp'
|
||||
test_expect_success 'find branch master' 'grep "master" tmp'
|
||||
test_expect_success 'no tags' '! grep "tags" tmp'
|
||||
test_expect_success 'clone-url expanded correctly' '
|
||||
grep "git://example.org/bar.git" tmp
|
||||
'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue