Create initial testsuite

This creates a simple testsuite, heavily inspired by the testsuite in git.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2007-11-11 00:40:58 +01:00
parent ab21082c21
commit b4649fc905
12 changed files with 299 additions and 1 deletions

13
tests/t0101-index.sh Executable file
View File

@ -0,0 +1,13 @@
#!/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