aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t0101-index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t0101-index.sh')
-rwxr-xr-xtests/t0101-index.sh25
1 files changed, 12 insertions, 13 deletions
diff --git a/tests/t0101-index.sh b/tests/t0101-index.sh
index ab63aca..82ef9b0 100755
--- a/tests/t0101-index.sh
+++ b/tests/t0101-index.sh
@@ -1,18 +1,17 @@
1#!/bin/sh 1#!/bin/sh
2 2
3test_description='Check content on index page'
3. ./setup.sh 4. ./setup.sh
4 5
5prepare_tests "Check content on index page" 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'
6 16
7run_test 'generate index page' 'cgit_url "" >trash/tmp' 17test_done
8run_test 'find foo repo' 'grep "foo" trash/tmp'
9run_test 'find foo description' 'grep "\[no description\]" trash/tmp'
10run_test 'find bar repo' 'grep "bar" trash/tmp'
11run_test 'find bar description' 'grep "the bar repo" trash/tmp'
12run_test 'find foo+bar repo' 'grep ">foo+bar<" trash/tmp'
13run_test 'verify foo+bar link' 'grep "/foo+bar/" trash/tmp'
14run_test 'verify "with%20space" link' 'grep "/with%20space/" trash/tmp'
15run_test 'no tree-link' '! grep "foo/tree" trash/tmp'
16run_test 'no log-link' '! grep "foo/log" trash/tmp'
17
18tests_done