mirror of
https://git.zx2c4.com/cgit
synced 2024-11-10 02:28:41 +00:00
b4649fc905
This creates a simple testsuite, heavily inspired by the testsuite in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
14 lines
350 B
Bash
Executable File
14 lines
350 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. ./setup.sh
|
|
|
|
prepare_tests "Check content on index page"
|
|
|
|
run_test 'generate index page' 'cgit_url "" >trash/tmp'
|
|
run_test 'find foo repo' 'grep -e "foo" trash/tmp'
|
|
run_test 'find bar repo' 'grep -e "bar" trash/tmp'
|
|
run_test 'no tree-link' 'grep -ve "foo/tree" trash/tmp'
|
|
run_test 'no log-link' 'grep -ve "foo/log" trash/tmp'
|
|
|
|
tests_done
|