#!/bin/sh # The log page and its search. The searching checks use the repository whose # name contains a space and a term containing a space, so every link cgit # writes back has to escape the path and the query, which escape differently. test_description='Check content on log page' . ./setup.sh test_expect_success 'the log lists the whole of a short history' ' cgit_ok_url "foo/log" >tmp && test_grep ">commit 1<" tmp && test_grep ">commit 5<" tmp ' test_expect_success 'the first log page holds fifty commits' ' cgit_ok_url "bar/log" >tmp && test_grep ">commit 1<" tmp && test_grep ">commit 50<" tmp ' # Prints the options of the branch switcher that carry selected. selected_options() { sed -n "/