summaryrefslogtreecommitdiff
path: root/tests/t0104-tree.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/t0104-tree.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/t0104-tree.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/t0104-tree.sh b/tests/t0104-tree.sh
new file mode 100755
index 0000000..9c362ca
--- /dev/null
+++ b/tests/t0104-tree.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. ./setup.sh
+
+prepare_tests "Check content on tree page"
+
+run_test 'generate bar/tree' 'cgit_url "bar/tree" >trash/tmp'
+run_test 'find file-1' 'grep -e "file-1" trash/tmp'
+run_test 'find file-50' 'grep -e "file-50" trash/tmp'
+
+run_test 'generate bar/tree/file-50' 'cgit_url "bar/tree/file-50" >trash/tmp'
+run_test 'find line 1' 'grep -e "<a name=.1.>1</a>" trash/tmp'
+run_test 'no line 2' 'grep -ve "<a name=.2.>2</a>" trash/tmp'
+
+tests_done
'insertions'>+19 2012-02-23Do not use the find-theorems-form in PGRené Neumann1-1/+1 2012-01-30ebuild_error_on_trailing_whitespace is deprecatedRené 'Necoro' Neumann1-1/+0 2012-01-10Add 'block' command to mako syntaxRené 'Necoro' Neumann1-2/+2 2012-01-10Changes needed for haddock browser.René 'Necoro' Neumann1-1/+2 2011-12-09Update haskellmodeRené Neumann1-2/+1 2011-12-09Update haskellmodeRené Neumann5-82/+228 2011-11-21Set Poly/ML as the default SML interpreter.René Neumann1-0/+3 2011-11-21Added support for jedit.René Neumann2-4/+11 2011-11-16Make 'hg k' work similar to 'git k'René 'Necoro' Neumann1-0/+3 2011-10-14'tabgroup' -> 'tabgroups'René 'Necoro' Neumann1-1/+1 2011-10-14Switch from openoffice alias to libreoffice (ooffice -> soffice)René 'Necoro' Neumann1-2/+2 2011-10-14Make the quotes in ProofGeneral to be nearly invisibleRené Neumann1-1/+1 2011-08-23Disable hightlighting of the domain in the FF urlbarRené Neumann1-0/+3 2011-08-12Enhance IE scriptRené Neumann1-6/+7 2011-08-11BlaRené 'Necoro' Neumann1-0/+2 2011-08-11Local fontsRené 'Necoro' Neumann1-13/+22 2011-08-11Better inconsolata thingsRené Neumann4-4/+13 2011-08-10Moved some functions to their own filesRené Neumann3-124/+120 2011-08-10More advanced IE scriptRené Neumann2-1/+74 2011-08-10Inconsolata also in emacsRené Neumann1-1/+1 2011-08-10Better vim fontsRené 'Necoro' Neumann1-1/+1 2011-08-09ooffice aliasRené Neumann1-0/+2 2011-08-09Update the needed hg-extensions.René Neumann1-1/+2 2011-06-08gtkrc stuff for Qt-Gtk-StyleRené 'Necoro' Neumann2-0/+8 2011-06-08Updated fonts.conf to work better on lcdsRené 'Necoro' Neumann1-17/+6