diff options
Diffstat (limited to 'tests/t0203-dates.sh')
| -rwxr-xr-x | tests/t0203-dates.sh | 13 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 10 insertions, 3 deletions
diff --git a/tests/t0203-dates.sh b/tests/t0203-dates.sh index 1bd6253..02f12f1 100755 --- a/tests/t0203-dates.sh +++ b/tests/t0203-dates.sh @@ -1,10 +1,16 @@ #!/bin/sh +# Checks how cgit shows a commit date, which is either an age relative to now +# or a calendar date in the format the config names. The config is rewritten +# between cases so that each one names only the settings it is about and +# leaves the rest at their defaults. + test_description='Check the date display options' . ./setup.sh -# An old commit and a fresh one, so a single log page exercises both the -# relative rendering and the calendar fallback past the two week cutoff. +# One old commit and one fresh one, so a single page shows both the relative +# rendering and the calendar fallback that takes over past the two week +# cutoff. test_expect_success 'set up a dated repo' ' mkrepo repos/dated 1 && ( @@ -18,7 +24,8 @@ test_expect_success 'set up a dated repo' ' ) ' -# Each argument is written as one extra config line. +# Writes the config afresh, one extra line per argument, which is what lets a +# test below name a setting or two and say nothing about the rest. daterc() { { echo "virtual-root=/" |
