* [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh
@ 2008-10-02 14:52 Jakub Narebski
2008-10-02 15:07 ` Petr Baudis
2008-10-02 16:41 ` Eric Raible
0 siblings, 2 replies; 3+ messages in thread
From: Jakub Narebski @ 2008-10-02 14:52 UTC (permalink / raw)
To: git; +Cc: Jakub Narebski
Note that those tests only that there are no errors nor warnings
from Perl; they do not check for example if gitweb doesn't use
ARRAY(0x8e3cc20) instead of correct value in links, etc.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
This is the test thans to which I have dicovered errors in git_tree()
fixed in previous email. Nevertheless those two patches are unrelated,
so they are not numbered.
Those tests check _current_ situation, without $action, not
$hash_parent parameters possible in path_info.
t/t9500-gitweb-standalone-no-errors.sh | 49 ++++++++++++++++++++++++++++++++
1 files changed, 49 insertions(+), 0 deletions(-)
diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh
index 07117a8..64c4cce 100755
--- a/t/t9500-gitweb-standalone-no-errors.sh
+++ b/t/t9500-gitweb-standalone-no-errors.sh
@@ -503,6 +503,55 @@ test_expect_success \
test_debug 'cat gitweb.log'
# ----------------------------------------------------------------------
+# path_info links
+test_expect_success \
+ 'path_info: project' \
+ 'gitweb_run "" "/.git"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/branch' \
+ 'gitweb_run "" "/.git/b"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/branch:file' \
+ 'gitweb_run "" "/.git/master:file"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/branch:dir/' \
+ 'gitweb_run "" "/.git/master:foo/"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/branch:file (non-existent)' \
+ 'gitweb_run "" "/.git/master:non-existent"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/branch:dir/ (non-existent)' \
+ 'gitweb_run "" "/.git/master:non-existent/"'
+test_debug 'cat gitweb.log'
+
+
+test_expect_success \
+ 'path_info: project/branch:/file' \
+ 'gitweb_run "" "/.git/master:/file"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/:/file (implicit HEAD)' \
+ 'gitweb_run "" "/.git/:/file"'
+test_debug 'cat gitweb.log'
+
+test_expect_success \
+ 'path_info: project/:/ (implicit HEAD, top tree)' \
+ 'gitweb_run "" "/.git/:/"'
+test_debug 'cat gitweb.log'
+
+
+# ----------------------------------------------------------------------
# feed generation
test_expect_success \
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh
2008-10-02 14:52 [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh Jakub Narebski
@ 2008-10-02 15:07 ` Petr Baudis
2008-10-02 16:41 ` Eric Raible
1 sibling, 0 replies; 3+ messages in thread
From: Petr Baudis @ 2008-10-02 15:07 UTC (permalink / raw)
To: Jakub Narebski; +Cc: git
On Thu, Oct 02, 2008 at 04:52:20PM +0200, Jakub Narebski wrote:
> Note that those tests only that there are no errors nor warnings
> from Perl; they do not check for example if gitweb doesn't use
> ARRAY(0x8e3cc20) instead of correct value in links, etc.
>
> Signed-off-by: Jakub Narebski <jnareb@gmail.com>
> ---
> This is the test thans to which I have dicovered errors in git_tree()
> fixed in previous email. Nevertheless those two patches are unrelated,
> so they are not numbered.
>
> Those tests check _current_ situation, without $action, not
> $hash_parent parameters possible in path_info.
I didn't test the patch but it all looks sensible.
Acked-by: Petr Baudis <pasky@suse.cz>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh
2008-10-02 14:52 [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh Jakub Narebski
2008-10-02 15:07 ` Petr Baudis
@ 2008-10-02 16:41 ` Eric Raible
1 sibling, 0 replies; 3+ messages in thread
From: Eric Raible @ 2008-10-02 16:41 UTC (permalink / raw)
To: git
Jakub Narebski <jnareb <at> gmail.com> writes:
>
> Note that those tests only that there are no errors nor warnings
> from Perl; they do not check for example if gitweb doesn't use
> ARRAY(0x8e3cc20) instead of correct value in links, etc.
>
> Signed-off-by: Jakub Narebski <jnareb <at> gmail.com>
> ---
s/only that/only check that/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-10-02 16:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02 14:52 [PATCH] gitweb: Add path_info tests to t/t9500-gitweb-standalone-no-errors.sh Jakub Narebski
2008-10-02 15:07 ` Petr Baudis
2008-10-02 16:41 ` Eric Raible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).