Merge branch 'master' of git://repo.or.cz/git/mingw into devel
[4msysgit-hv.git] / t / t9500-gitweb-standalone-no-errors.sh
blobdddb7276c8ad81709766568b2f7e33d19544e820
1 #!/bin/sh
3 # Copyright (c) 2007 Jakub Narebski
6 test_description='gitweb as standalone script (basic tests).
8 This test runs gitweb (git web interface) as CGI script from
9 commandline, and checks that it would not write any errors
10 or warnings to log.'
12 gitweb_init () {
13 safe_pwd="$(perl -MPOSIX=getcwd -e 'print quotemeta(getcwd)')"
14 cat >gitweb_config.perl <<EOF
15 #!/usr/bin/perl
17 # gitweb configuration for tests
19 our \$version = "current";
20 our \$GIT = "git";
21 our \$projectroot = "$safe_pwd";
22 our \$project_maxdepth = 8;
23 our \$home_link_str = "projects";
24 our \$site_name = "[localhost]";
25 our \$site_header = "";
26 our \$site_footer = "";
27 our \$home_text = "indextext.html";
28 our @stylesheets = ("file:///$TEST_DIRECTORY/../gitweb/gitweb.css");
29 our \$logo = "file:///$TEST_DIRECTORY/../gitweb/git-logo.png";
30 our \$favicon = "file:///$TEST_DIRECTORY/../gitweb/git-favicon.png";
31 our \$projects_list = "";
32 our \$export_ok = "";
33 our \$strict_export = "";
35 EOF
37 cat >.git/description <<EOF
38 $0 test repository
39 EOF
42 gitweb_run () {
43 GATEWAY_INTERFACE="CGI/1.1"
44 HTTP_ACCEPT="*/*"
45 REQUEST_METHOD="GET"
46 SCRIPT_NAME="$TEST_DIRECTORY/../gitweb/gitweb.perl"
47 QUERY_STRING=""$1""
48 PATH_INFO=""$2""
49 export GATEWAY_INTERFACE HTTP_ACCEPT REQUEST_METHOD \
50 SCRIPT_NAME QUERY_STRING PATH_INFO
52 GITWEB_CONFIG=$(pwd)/gitweb_config.perl
53 export GITWEB_CONFIG
55 # some of git commands write to STDERR on error, but this is not
56 # written to web server logs, so we are not interested in that:
57 # we are interested only in properly formatted errors/warnings
58 rm -f gitweb.log &&
59 perl -- "$SCRIPT_NAME" \
60 >/dev/null 2>gitweb.log &&
61 if grep "^[[]" gitweb.log >/dev/null 2>&1; then false; else true; fi
63 # gitweb.log is left for debugging
66 safe_chmod () {
67 chmod "$1" "$2" &&
68 if [ "$(git config --get core.filemode)" = false ]
69 then
70 git update-index --chmod="$1" "$2"
74 . ./test-lib.sh
76 say 'gitweb not supported, skipping tests.'
77 test_done
79 perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
80 test_expect_success 'skipping gitweb tests, perl version is too old' :
81 test_done
82 exit
85 gitweb_init
87 # ----------------------------------------------------------------------
88 # no commits (empty, just initialized repository)
90 test_expect_success \
91 'no commits: projects_list (implicit)' \
92 'gitweb_run'
93 test_debug 'cat gitweb.log'
95 test_expect_success \
96 'no commits: projects_index' \
97 'gitweb_run "a=project_index"'
98 test_debug 'cat gitweb.log'
100 test_expect_success \
101 'no commits: .git summary (implicit)' \
102 'gitweb_run "p=.git"'
103 test_debug 'cat gitweb.log'
105 test_expect_success \
106 'no commits: .git commit (implicit HEAD)' \
107 'gitweb_run "p=.git;a=commit"'
108 test_debug 'cat gitweb.log'
110 test_expect_success \
111 'no commits: .git commitdiff (implicit HEAD)' \
112 'gitweb_run "p=.git;a=commitdiff"'
113 test_debug 'cat gitweb.log'
115 test_expect_success \
116 'no commits: .git tree (implicit HEAD)' \
117 'gitweb_run "p=.git;a=tree"'
118 test_debug 'cat gitweb.log'
120 test_expect_success \
121 'no commits: .git heads' \
122 'gitweb_run "p=.git;a=heads"'
123 test_debug 'cat gitweb.log'
125 test_expect_success \
126 'no commits: .git tags' \
127 'gitweb_run "p=.git;a=tags"'
128 test_debug 'cat gitweb.log'
131 # ----------------------------------------------------------------------
132 # initial commit
134 test_expect_success \
135 'Make initial commit' \
136 'echo "Not an empty file." > file &&
137 git add file &&
138 git commit -a -m "Initial commit." &&
139 git branch b'
141 test_expect_success \
142 'projects_list (implicit)' \
143 'gitweb_run'
144 test_debug 'cat gitweb.log'
146 test_expect_success \
147 'projects_index' \
148 'gitweb_run "a=project_index"'
149 test_debug 'cat gitweb.log'
151 test_expect_success \
152 '.git summary (implicit)' \
153 'gitweb_run "p=.git"'
154 test_debug 'cat gitweb.log'
156 test_expect_success \
157 '.git commit (implicit HEAD)' \
158 'gitweb_run "p=.git;a=commit"'
159 test_debug 'cat gitweb.log'
161 test_expect_success \
162 '.git commitdiff (implicit HEAD, root commit)' \
163 'gitweb_run "p=.git;a=commitdiff"'
164 test_debug 'cat gitweb.log'
166 test_expect_success \
167 '.git commitdiff_plain (implicit HEAD, root commit)' \
168 'gitweb_run "p=.git;a=commitdiff_plain"'
169 test_debug 'cat gitweb.log'
171 test_expect_success \
172 '.git commit (HEAD)' \
173 'gitweb_run "p=.git;a=commit;h=HEAD"'
174 test_debug 'cat gitweb.log'
176 test_expect_success \
177 '.git tree (implicit HEAD)' \
178 'gitweb_run "p=.git;a=tree"'
179 test_debug 'cat gitweb.log'
181 test_expect_success \
182 '.git blob (file)' \
183 'gitweb_run "p=.git;a=blob;f=file"'
184 test_debug 'cat gitweb.log'
186 test_expect_success \
187 '.git blob_plain (file)' \
188 'gitweb_run "p=.git;a=blob_plain;f=file"'
189 test_debug 'cat gitweb.log'
191 # ----------------------------------------------------------------------
192 # nonexistent objects
194 test_expect_success \
195 '.git commit (non-existent)' \
196 'gitweb_run "p=.git;a=commit;h=non-existent"'
197 test_debug 'cat gitweb.log'
199 test_expect_success \
200 '.git commitdiff (non-existent)' \
201 'gitweb_run "p=.git;a=commitdiff;h=non-existent"'
202 test_debug 'cat gitweb.log'
204 test_expect_success \
205 '.git commitdiff (non-existent vs HEAD)' \
206 'gitweb_run "p=.git;a=commitdiff;hp=non-existent;h=HEAD"'
207 test_debug 'cat gitweb.log'
209 test_expect_success \
210 '.git tree (0000000000000000000000000000000000000000)' \
211 'gitweb_run "p=.git;a=tree;h=0000000000000000000000000000000000000000"'
212 test_debug 'cat gitweb.log'
214 test_expect_success \
215 '.git tag (0000000000000000000000000000000000000000)' \
216 'gitweb_run "p=.git;a=tag;h=0000000000000000000000000000000000000000"'
217 test_debug 'cat gitweb.log'
219 test_expect_success \
220 '.git blob (non-existent)' \
221 'gitweb_run "p=.git;a=blob;f=non-existent"'
222 test_debug 'cat gitweb.log'
224 test_expect_success \
225 '.git blob_plain (non-existent)' \
226 'gitweb_run "p=.git;a=blob_plain;f=non-existent"'
227 test_debug 'cat gitweb.log'
230 # ----------------------------------------------------------------------
231 # commitdiff testing (implicit, one implicit tree-ish)
233 test_expect_success \
234 'commitdiff(0): root' \
235 'gitweb_run "p=.git;a=commitdiff"'
236 test_debug 'cat gitweb.log'
238 test_expect_success \
239 'commitdiff(0): file added' \
240 'echo "New file" > new_file &&
241 git add new_file &&
242 git commit -a -m "File added." &&
243 gitweb_run "p=.git;a=commitdiff"'
244 test_debug 'cat gitweb.log'
246 test_expect_success \
247 'commitdiff(0): mode change' \
248 'safe_chmod +x new_file &&
249 git commit -a -m "Mode changed." &&
250 gitweb_run "p=.git;a=commitdiff"'
251 test_debug 'cat gitweb.log'
253 test_expect_success \
254 'commitdiff(0): file renamed' \
255 'git mv new_file renamed_file &&
256 git commit -a -m "File renamed." &&
257 gitweb_run "p=.git;a=commitdiff"'
258 test_debug 'cat gitweb.log'
260 test_expect_success \
261 'commitdiff(0): file to symlink' \
262 'rm renamed_file &&
263 ln -s file renamed_file &&
264 git commit -a -m "File to symlink." &&
265 gitweb_run "p=.git;a=commitdiff"'
266 test_debug 'cat gitweb.log'
268 test_expect_success \
269 'commitdiff(0): file deleted' \
270 'git rm renamed_file &&
271 rm -f renamed_file &&
272 git commit -a -m "File removed." &&
273 gitweb_run "p=.git;a=commitdiff"'
274 test_debug 'cat gitweb.log'
276 test_expect_success \
277 'commitdiff(0): file copied / new file' \
278 'cp file file2 &&
279 git add file2 &&
280 git commit -a -m "File copied." &&
281 gitweb_run "p=.git;a=commitdiff"'
282 test_debug 'cat gitweb.log'
284 test_expect_success \
285 'commitdiff(0): mode change and modified' \
286 'echo "New line" >> file2 &&
287 safe_chmod +x file2 &&
288 git commit -a -m "Mode change and modification." &&
289 gitweb_run "p=.git;a=commitdiff"'
290 test_debug 'cat gitweb.log'
292 test_expect_success \
293 'commitdiff(0): renamed and modified' \
294 'cat >file2<<EOF &&
295 Dominus regit me,
296 et nihil mihi deerit.
297 In loco pascuae ibi me collocavit,
298 super aquam refectionis educavit me;
299 animam meam convertit,
300 deduxit me super semitas jusitiae,
301 propter nomen suum.
303 git commit -a -m "File added." &&
304 git mv file2 file3 &&
305 echo "Propter nomen suum." >> file3 &&
306 git commit -a -m "File rename and modification." &&
307 gitweb_run "p=.git;a=commitdiff"'
308 test_debug 'cat gitweb.log'
310 test_expect_success \
311 'commitdiff(0): renamed, mode change and modified' \
312 'git mv file3 file2 &&
313 echo "Propter nomen suum." >> file2 &&
314 safe_chmod +x file2 &&
315 git commit -a -m "File rename, mode change and modification." &&
316 gitweb_run "p=.git;a=commitdiff"'
317 test_debug 'cat gitweb.log'
319 # ----------------------------------------------------------------------
320 # commitdiff testing (taken from t4114-apply-typechange.sh)
322 test_expect_success 'setup typechange commits' '
323 echo "hello world" > foo &&
324 echo "hi planet" > bar &&
325 git update-index --add foo bar &&
326 git commit -m initial &&
327 git branch initial &&
328 rm -f foo &&
329 ln -s bar foo &&
330 git update-index foo &&
331 git commit -m "foo symlinked to bar" &&
332 git branch foo-symlinked-to-bar &&
333 rm -f foo &&
334 echo "how far is the sun?" > foo &&
335 git update-index foo &&
336 git commit -m "foo back to file" &&
337 git branch foo-back-to-file &&
338 rm -f foo &&
339 git update-index --remove foo &&
340 mkdir foo &&
341 echo "if only I knew" > foo/baz &&
342 git update-index --add foo/baz &&
343 git commit -m "foo becomes a directory" &&
344 git branch "foo-becomes-a-directory" &&
345 echo "hello world" > foo/baz &&
346 git update-index foo/baz &&
347 git commit -m "foo/baz is the original foo" &&
348 git branch foo-baz-renamed-from-foo
351 test_expect_success \
352 'commitdiff(2): file renamed from foo to foo/baz' \
353 'gitweb_run "p=.git;a=commitdiff;hp=initial;h=foo-baz-renamed-from-foo"'
354 test_debug 'cat gitweb.log'
356 test_expect_success \
357 'commitdiff(2): file renamed from foo/baz to foo' \
358 'gitweb_run "p=.git;a=commitdiff;hp=foo-baz-renamed-from-foo;h=initial"'
359 test_debug 'cat gitweb.log'
361 test_expect_success \
362 'commitdiff(2): directory becomes file' \
363 'gitweb_run "p=.git;a=commitdiff;hp=foo-becomes-a-directory;h=initial"'
364 test_debug 'cat gitweb.log'
366 test_expect_success \
367 'commitdiff(2): file becomes directory' \
368 'gitweb_run "p=.git;a=commitdiff;hp=initial;h=foo-becomes-a-directory"'
369 test_debug 'cat gitweb.log'
371 test_expect_success \
372 'commitdiff(2): file becomes symlink' \
373 'gitweb_run "p=.git;a=commitdiff;hp=initial;h=foo-symlinked-to-bar"'
374 test_debug 'cat gitweb.log'
376 test_expect_success \
377 'commitdiff(2): symlink becomes file' \
378 'gitweb_run "p=.git;a=commitdiff;hp=foo-symlinked-to-bar;h=foo-back-to-file"'
379 test_debug 'cat gitweb.log'
381 test_expect_success \
382 'commitdiff(2): symlink becomes directory' \
383 'gitweb_run "p=.git;a=commitdiff;hp=foo-symlinked-to-bar;h=foo-becomes-a-directory"'
384 test_debug 'cat gitweb.log'
386 test_expect_success \
387 'commitdiff(2): directory becomes symlink' \
388 'gitweb_run "p=.git;a=commitdiff;hp=foo-becomes-a-directory;h=foo-symlinked-to-bar"'
389 test_debug 'cat gitweb.log'
391 # ----------------------------------------------------------------------
392 # commit, commitdiff: merge, large
393 test_expect_success \
394 'Create a merge' \
395 'git checkout b &&
396 echo "Branch" >> b &&
397 git add b &&
398 git commit -a -m "On branch" &&
399 git checkout master &&
400 git pull . b'
402 test_expect_success \
403 'commit(0): merge commit' \
404 'gitweb_run "p=.git;a=commit"'
405 test_debug 'cat gitweb.log'
407 test_expect_success \
408 'commitdiff(0): merge commit' \
409 'gitweb_run "p=.git;a=commitdiff"'
410 test_debug 'cat gitweb.log'
412 test_expect_success \
413 'Prepare large commit' \
414 'git checkout b &&
415 echo "To be changed" > 01-change &&
416 echo "To be renamed" > 02-pure-rename-from &&
417 echo "To be deleted" > 03-delete &&
418 echo "To be renamed and changed" > 04-rename-from &&
419 echo "To have mode changed" > 05-mode-change &&
420 echo "File to symlink" > 06-file-or-symlink &&
421 echo "To be changed and have mode changed" > 07-change-mode-change &&
422 git add 0* &&
423 git commit -a -m "Prepare large commit" &&
424 echo "Changed" > 01-change &&
425 git mv 02-pure-rename-from 02-pure-rename-to &&
426 git rm 03-delete && rm -f 03-delete &&
427 echo "A new file" > 03-new &&
428 git add 03-new &&
429 git mv 04-rename-from 04-rename-to &&
430 echo "Changed" >> 04-rename-to &&
431 safe_chmod +x 05-mode-change &&
432 rm -f 06-file-or-symlink && ln -s 01-change 06-file-or-symlink &&
433 echo "Changed and have mode changed" > 07-change-mode-change &&
434 safe_chmod +x 07-change-mode-change &&
435 git commit -a -m "Large commit" &&
436 git checkout master'
438 test_expect_success \
439 'commit(1): large commit' \
440 'gitweb_run "p=.git;a=commit;h=b"'
441 test_debug 'cat gitweb.log'
443 test_expect_success \
444 'commitdiff(1): large commit' \
445 'gitweb_run "p=.git;a=commitdiff;h=b"'
446 test_debug 'cat gitweb.log'
448 # ----------------------------------------------------------------------
449 # tags testing
451 test_expect_success \
452 'tags: list of different types of tags' \
453 'git checkout master &&
454 git tag -a -m "Tag commit object" tag-commit HEAD &&
455 git tag -a -m "" tag-commit-nomessage HEAD &&
456 git tag -a -m "Tag tag object" tag-tag tag-commit &&
457 git tag -a -m "Tag tree object" tag-tree HEAD^{tree} &&
458 git tag -a -m "Tag blob object" tag-blob HEAD:file &&
459 git tag lightweight/tag-commit HEAD &&
460 git tag lightweight/tag-tag tag-commit &&
461 git tag lightweight/tag-tree HEAD^{tree} &&
462 git tag lightweight/tag-blob HEAD:file &&
463 gitweb_run "p=.git;a=tags"'
464 test_debug 'cat gitweb.log'
466 test_expect_success \
467 'tag: Tag to commit object' \
468 'gitweb_run "p=.git;a=tag;h=tag-commit"'
469 test_debug 'cat gitweb.log'
471 test_expect_success \
472 'tag: on lightweight tag (invalid)' \
473 'gitweb_run "p=.git;a=tag;h=lightweight/tag-commit"'
474 test_debug 'cat gitweb.log'
476 # ----------------------------------------------------------------------
477 # logs
479 test_expect_success \
480 'logs: log (implicit HEAD)' \
481 'gitweb_run "p=.git;a=log"'
482 test_debug 'cat gitweb.log'
484 test_expect_success \
485 'logs: shortlog (implicit HEAD)' \
486 'gitweb_run "p=.git;a=shortlog"'
487 test_debug 'cat gitweb.log'
489 test_expect_success \
490 'logs: history (implicit HEAD, file)' \
491 'gitweb_run "p=.git;a=history;f=file"'
492 test_debug 'cat gitweb.log'
494 test_expect_success \
495 'logs: history (implicit HEAD, non-existent file)' \
496 'gitweb_run "p=.git;a=history;f=non-existent"'
497 test_debug 'cat gitweb.log'
499 test_expect_success \
500 'logs: history (implicit HEAD, deleted file)' \
501 'git checkout master &&
502 echo "to be deleted" > deleted_file &&
503 git add deleted_file &&
504 git commit -m "Add file to be deleted" &&
505 git rm deleted_file &&
506 git commit -m "Delete file" &&
507 gitweb_run "p=.git;a=history;f=deleted_file"'
508 test_debug 'cat gitweb.log'
510 # ----------------------------------------------------------------------
511 # path_info links
512 test_expect_success \
513 'path_info: project' \
514 'gitweb_run "" "/.git"'
515 test_debug 'cat gitweb.log'
517 test_expect_success \
518 'path_info: project/branch' \
519 'gitweb_run "" "/.git/b"'
520 test_debug 'cat gitweb.log'
522 test_expect_success \
523 'path_info: project/branch:file' \
524 'gitweb_run "" "/.git/master:file"'
525 test_debug 'cat gitweb.log'
527 test_expect_success \
528 'path_info: project/branch:dir/' \
529 'gitweb_run "" "/.git/master:foo/"'
530 test_debug 'cat gitweb.log'
532 test_expect_success \
533 'path_info: project/branch:file (non-existent)' \
534 'gitweb_run "" "/.git/master:non-existent"'
535 test_debug 'cat gitweb.log'
537 test_expect_success \
538 'path_info: project/branch:dir/ (non-existent)' \
539 'gitweb_run "" "/.git/master:non-existent/"'
540 test_debug 'cat gitweb.log'
543 test_expect_success \
544 'path_info: project/branch:/file' \
545 'gitweb_run "" "/.git/master:/file"'
546 test_debug 'cat gitweb.log'
548 test_expect_success \
549 'path_info: project/:/file (implicit HEAD)' \
550 'gitweb_run "" "/.git/:/file"'
551 test_debug 'cat gitweb.log'
553 test_expect_success \
554 'path_info: project/:/ (implicit HEAD, top tree)' \
555 'gitweb_run "" "/.git/:/"'
556 test_debug 'cat gitweb.log'
559 # ----------------------------------------------------------------------
560 # feed generation
562 test_expect_success \
563 'feeds: OPML' \
564 'gitweb_run "a=opml"'
565 test_debug 'cat gitweb.log'
567 test_expect_success \
568 'feed: RSS' \
569 'gitweb_run "p=.git;a=rss"'
570 test_debug 'cat gitweb.log'
572 test_expect_success \
573 'feed: Atom' \
574 'gitweb_run "p=.git;a=atom"'
575 test_debug 'cat gitweb.log'
577 # ----------------------------------------------------------------------
578 # encoding/decoding
580 test_expect_success \
581 'encode(commit): utf8' \
582 '. "$TEST_DIRECTORY"/t3901-utf8.txt &&
583 echo "UTF-8" >> file &&
584 git add file &&
585 git commit -F "$TEST_DIRECTORY"/t3900/1-UTF-8.txt &&
586 gitweb_run "p=.git;a=commit"'
587 test_debug 'cat gitweb.log'
589 test_expect_success \
590 'encode(commit): iso-8859-1' \
591 '. "$TEST_DIRECTORY"/t3901-8859-1.txt &&
592 echo "ISO-8859-1" >> file &&
593 git add file &&
594 git config i18n.commitencoding ISO-8859-1 &&
595 git commit -F "$TEST_DIRECTORY"/t3900/ISO-8859-1.txt &&
596 git config --unset i18n.commitencoding &&
597 gitweb_run "p=.git;a=commit"'
598 test_debug 'cat gitweb.log'
600 test_expect_success \
601 'encode(log): utf-8 and iso-8859-1' \
602 'gitweb_run "p=.git;a=log"'
603 test_debug 'cat gitweb.log'
605 # ----------------------------------------------------------------------
606 # extra options
608 test_expect_success \
609 'opt: log --no-merges' \
610 'gitweb_run "p=.git;a=log;opt=--no-merges"'
611 test_debug 'cat gitweb.log'
613 test_expect_success \
614 'opt: atom --no-merges' \
615 'gitweb_run "p=.git;a=log;opt=--no-merges"'
616 test_debug 'cat gitweb.log'
618 test_expect_success \
619 'opt: "file" history --no-merges' \
620 'gitweb_run "p=.git;a=history;f=file;opt=--no-merges"'
621 test_debug 'cat gitweb.log'
623 test_expect_success \
624 'opt: log --no-such-option (invalid option)' \
625 'gitweb_run "p=.git;a=log;opt=--no-such-option"'
626 test_debug 'cat gitweb.log'
628 test_expect_success \
629 'opt: tree --no-merges (invalid option for action)' \
630 'gitweb_run "p=.git;a=tree;opt=--no-merges"'
631 test_debug 'cat gitweb.log'
633 # ----------------------------------------------------------------------
634 # testing config_to_multi / cloneurl
636 test_expect_success \
637 'URL: no project URLs, no base URL' \
638 'gitweb_run "p=.git;a=summary"'
639 test_debug 'cat gitweb.log'
641 test_expect_success \
642 'URL: project URLs via gitweb.url' \
643 'git config --add gitweb.url git://example.com/git/trash.git &&
644 git config --add gitweb.url http://example.com/git/trash.git &&
645 gitweb_run "p=.git;a=summary"'
646 test_debug 'cat gitweb.log'
648 cat >.git/cloneurl <<\EOF
649 git://example.com/git/trash.git
650 http://example.com/git/trash.git
653 test_expect_success \
654 'URL: project URLs via cloneurl file' \
655 'gitweb_run "p=.git;a=summary"'
656 test_debug 'cat gitweb.log'
658 # ----------------------------------------------------------------------
659 # gitweb config and repo config
661 cat >>gitweb_config.perl <<EOF
663 \$feature{'blame'}{'override'} = 1;
664 \$feature{'snapshot'}{'override'} = 1;
667 test_expect_success \
668 'config override: tree view, features not overridden in repo config' \
669 'gitweb_run "p=.git;a=tree"'
670 test_debug 'cat gitweb.log'
672 test_expect_success \
673 'config override: tree view, features disabled in repo config' \
674 'git config gitweb.blame no &&
675 git config gitweb.snapshot none &&
676 gitweb_run "p=.git;a=tree"'
677 test_debug 'cat gitweb.log'
679 test_expect_success \
680 'config override: tree view, features enabled in repo config (1)' \
681 'git config gitweb.blame yes &&
682 git config gitweb.snapshot "zip,tgz, tbz2" &&
683 gitweb_run "p=.git;a=tree"'
684 test_debug 'cat gitweb.log'
686 cat >.git/config <<\EOF
687 # testing noval and alternate separator
688 [gitweb]
689 blame
690 snapshot = zip tgz
692 test_expect_success \
693 'config override: tree view, features enabled in repo config (2)' \
694 'gitweb_run "p=.git;a=tree"'
695 test_debug 'cat gitweb.log'
697 # ----------------------------------------------------------------------
698 # non-ASCII in README.html
700 test_expect_success \
701 'README.html with non-ASCII characters (utf-8)' \
702 'echo "<b>UTF-8 example:</b><br />" > .git/README.html &&
703 cat "$TEST_DIRECTORY"/t3900/1-UTF-8.txt >> .git/README.html &&
704 gitweb_run "p=.git;a=summary"'
705 test_debug 'cat gitweb.log'
707 test_done