AgeCommit message (Collapse)AuthorLines
Share the rename fixture of the diff pagesBryce Kwon-12/+6
Each repository is built tree for tree as before. A helper that lost the caller's change would still fail t0107, where following no path shows file-1, but t0108 passed without its added line, so it now looks for that line.
Check the rawdiff is served as plain textBryce Kwon-24/+17
strip_headers dropped the headers before every compare, so a rawdiff served under another type passed. Each test now makes its own request, and the ids it needs, rather than reading what an earlier one left.
Show a renamed file's diff as the renameBryce Kwon-0/+21
A diff limited to the new name cannot see the old one, so the diffstat's link for a renamed file, the commit page reached from that file's log, and the file's rawdiff and patch all showed every line as added. A path the old tree lacks is now diffed across the whole commit with rename detection aimed at it alone, the way git blame looks for a rename, so it is compared with the commit's deleted files and nothing else. Doing it in cgit_diff_tree keeps the log's counts for that commit in step with the page they link to. The rawdiff and patch pages leave the diff to git's own output, so for them that search finds the old name, and both names go into the limit with rename detection on.
Write the diff and patch checks as the suite doesBryce Kwon-17/+17
Ask for a url through cgit_url everywhereBryce Kwon-4/+4
Cut test comments restating the code beside themBryce Kwon-3/+0
Limit rawdiff to the requested pathBryce Kwon-0/+9
The diff and patch pages honour the path in the url, which the parameter table documents for every page, but rawdiff never handed it to git and answered with the whole diff.
Trim the comments and dead code across the treeBryce Kwon-5/+3
Renumber the test scripts into themed rangesBryce Kwon-0/+0
The numbering walks outward from the ground the suite stands on. - t000x for the git version, html validity and the cache - t01xx for page content, one script per page - t02xx for filters, submodule links, dates and limits, which cut across pages - t03xx for defence, the security regressions and the $HOME promise - t04xx for the helper tools under tools/
Drop the Last-Modified, Expires and ETag headersBryce Kwon-3/+3
Tidy the test comments and shell portabilityBryce Kwon-0/+9
t0110: Chain together using &&Jason A. Donenfeld-8/+8
tests/: Add t0110-rawdiff.shLukas Fleischer-0/+42
This adds some basic tests for the /rawdiff/ command. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>