summaryrefslogtreecommitdiff
path: root/tests/t0103-log.sh
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-11-11 00:40:58 +0100
committerLars Hjemli <hjemli@gmail.com>2007-11-11 12:00:13 +0100
commitb4649fc90597910c89c3f37a6aec9af54d9f416b (patch)
treec4542a13f9509ebd92baf4f26548ddc72ac1f05f /tests/t0103-log.sh
parentab21082c21867e035cd925a06d6d55fb3143d883 (diff)
downloadcgit-b4649fc90597910c89c3f37a6aec9af54d9f416b.tar.gz
cgit-b4649fc90597910c89c3f37a6aec9af54d9f416b.tar.bz2
cgit-b4649fc90597910c89c3f37a6aec9af54d9f416b.zip
Create initial testsuite
This creates a simple testsuite, heavily inspired by the testsuite in git. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rwxr-xr-xtests/t0103-log.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/t0103-log.sh b/tests/t0103-log.sh
new file mode 100755
index 0000000..b08cd29
--- /dev/null
+++ b/tests/t0103-log.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. ./setup.sh
+
+prepare_tests "Check content on log page"
+
+run_test 'generate foo/log' 'cgit_url "foo/log" >trash/tmp'
+run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
+run_test 'find commit 5' 'grep -e "commit 5" trash/tmp'
+
+run_test 'generate bar/log' 'cgit_url "bar/log" >trash/tmp'
+run_test 'find commit 1' 'grep -e "commit 1" trash/tmp'
+run_test 'find commit 50' 'grep -e "commit 50" trash/tmp'
+
+tests_done
© 'Necoro' Neumann6-152/+177 2020-04-19Rename package 'parse' to 'feed'RenĂ© 'Necoro' Neumann2-3/+3 2020-04-19SELECT is not necessary for most operations -- skip itRenĂ© 'Necoro' Neumann2-12/+1 2020-04-19Store path as array -- the delimiter is not always '.'RenĂ© 'Necoro' Neumann3-36/+44 2020-04-19Split client part to client.goRenĂ© 'Necoro' Neumann2-125/+137 2020-04-19IMAP: Create foldersRenĂ© 'Necoro' Neumann1-4/+38 2020-04-19Improved IMAPRenĂ© 'Necoro' Neumann1-3/+88 2020-04-19Started IMAP connectionRenĂ© 'Necoro' Neumann4-0/+152 2020-04-19Use our own logger for debug for convenience sakeRenĂ© 'Necoro' Neumann1-2/+3 2020-04-19Fix debug logging m(RenĂ© 'Necoro' Neumann1-2/+2 2020-04-19Rename util.go to log.go. Add verbose modeRenĂ© 'Necoro' Neumann4-24/+54 2020-04-19Clean go.modRenĂ© 'Necoro' Neumann2-3/+0 2020-04-19Do not print the parsedCfg anymoreRenĂ© 'Necoro' Neumann1-1/+1 2020-04-19Increase go-version to 1.14RenĂ© 'Necoro' Neumann1-2/+2 2020-04-19CI: go vetRenĂ© 'Necoro' Neumann1-0/+3 2020-04-19Fetching and parsing the feedsRenĂ© 'Necoro' Neumann5-4/+113 2020-04-19Ignore all config*.ymlRenĂ© 'Necoro' Neumann1-1/+1