[PATCH] test-hgwebdir: adapt for Windows
Adrian Buehlmann
adrian at cadifra.com
Wed Jun 20 12:17:44 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340211751 -7200
# Node ID 8db75044bdd90da306d66694b6dd0b64be16e09f
# Parent cb37bfc21cc394b9c809a2f10b8dfeeece0c6ffb
test-hgwebdir: adapt for Windows
diff --git a/tests/test-hgwebdir.t b/tests/test-hgwebdir.t
--- a/tests/test-hgwebdir.t
+++ b/tests/test-hgwebdir.t
@@ -70,7 +70,7 @@
should give a 404 - file does not exist
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/file/tip/bork?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//a/file/tip/bork?style=raw'
404 Not Found
@@ -79,25 +79,25 @@
should succeed
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//?style=raw'
200 Script output follows
/a/
/b/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//a/file/tip/a?style=raw'
200 Script output follows
a
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/b/file/tip/b?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//b/file/tip/b?style=raw'
200 Script output follows
b
should give a 404 - repo is not published
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/c/file/tip/c?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//c/file/tip/c?style=raw'
404 Not Found
@@ -106,14 +106,14 @@
atom-log without basedir
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/atom-log' | grep '<link'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//a/atom-log' | grep '<link'
<link rel="self" href="http://*:$HGPORT/a/atom-log"/> (glob)
<link rel="alternate" href="http://*:$HGPORT/a/"/> (glob)
<link href="http://*:$HGPORT/a/rev/8580ff50825a"/> (glob)
rss-log without basedir
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '/a/rss-log' | grep '<guid'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT '//a/rss-log' | grep '<guid'
<guid isPermaLink="true">http://*:$HGPORT/a/rev/8580ff50825a</guid> (glob)
$ cat > paths.conf <<EOF
> [paths]
@@ -131,7 +131,7 @@
should succeed, slashy names
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//?style=raw'
200 Script output follows
@@ -170,7 +170,7 @@
/astar/
/astar/.hg/patches/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=paper'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//?style=paper'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -483,19 +483,19 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t?style=raw'
200 Script output follows
/t/a/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/?style=raw'
200 Script output follows
/t/a/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=paper'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/?style=paper'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -544,7 +544,7 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a?style=atom'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/a?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -574,7 +574,7 @@
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/a/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -604,14 +604,14 @@
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/a/file/tip/a?style=raw'
200 Script output follows
a
Test [paths] '*' extension
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/?style=raw'
200 Script output follows
@@ -622,14 +622,14 @@
/coll/notrepo/e/
/coll/notrepo/f/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/a/file/tip/a?style=raw'
200 Script output follows
a
Test [paths] '**' extension
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/?style=raw'
200 Script output follows
@@ -643,7 +643,7 @@
/rcoll/notrepo/f/
/rcoll/notrepo/f/f2/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/b/d/file/tip/d?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/b/d/file/tip/d?style=raw'
200 Script output follows
d
@@ -658,7 +658,7 @@
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
> -A access-paths.log -E error-paths-3.log
$ cat hg.pid >> $DAEMON_PIDS
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/?style=raw'
200 Script output follows
@@ -668,11 +668,11 @@
/coll/c/
/coll/notrepo/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/a/file/tip/a?style=raw'
200 Script output follows
a
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/?style=raw'
200 Script output follows
@@ -683,14 +683,14 @@
/rcoll/c/
/rcoll/notrepo/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/b/d/file/tip/d?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/b/d/file/tip/d?style=raw'
200 Script output follows
d
Test intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/?style=raw'
200 Script output follows
@@ -702,14 +702,14 @@
Test repositories inside intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/e/file/tip/e?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/e/file/tip/e?style=raw'
200 Script output follows
e
Test subrepositories inside intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/f/f2/file/tip/f2?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/f/f2/file/tip/f2?style=raw'
200 Script output follows
f2
@@ -723,7 +723,7 @@
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
> -A access-paths.log -E error-paths-4.log
$ cat hg.pid >> $DAEMON_PIDS
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/?style=raw'
200 Script output follows
@@ -731,11 +731,11 @@
/coll/b/
/coll/c/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/coll/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//coll/a/file/tip/a?style=raw'
200 Script output follows
a
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/?style=raw'
200 Script output follows
@@ -743,14 +743,14 @@
/rcoll/b/
/rcoll/c/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/b/d/file/tip/d?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/b/d/file/tip/d?style=raw'
200 Script output follows
d
Test intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/?style=raw'
200 Script output follows
@@ -760,14 +760,14 @@
Test repositories inside intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/e/file/tip/e?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/e/file/tip/e?style=raw'
200 Script output follows
e
Test subrepositories inside intermediate directories
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/rcoll/notrepo/f/f2/file/tip/f2?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//rcoll/notrepo/f/f2/file/tip/f2?style=raw'
200 Script output follows
f2
@@ -787,7 +787,7 @@
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
> -A access-paths.log -E error-paths-5.log
$ cat hg.pid >> $DAEMON_PIDS
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//?style=raw'
200 Script output follows
@@ -795,7 +795,7 @@
/t/b/
/c/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/?style=raw'
200 Script output follows
@@ -813,14 +813,14 @@
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
> -A access-paths.log -E error-paths-6.log
$ cat hg.pid >> $DAEMON_PIDS
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//?style=raw'
200 Script output follows
/t/
/c/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/?style=raw'
200 Script output follows
@@ -837,13 +837,13 @@
$ hg serve -p $HGPORT1 -d --pid-file=hg.pid --webdir-conf paths.conf \
> -A access-paths.log -E error-paths-7.log
$ cat hg.pid >> $DAEMON_PIDS
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//?style=raw'
200 Script output follows
/c/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/t/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//t/?style=raw'
200 Script output follows
@@ -862,7 +862,7 @@
test inexistent and inaccessible repo should be ignored silently
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '/'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT1 '//'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -914,7 +914,7 @@
collections: should succeed
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//?style=raw'
200 Script output follows
@@ -925,29 +925,29 @@
/notrepo/e/
/notrepo/f/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/file/tip/a?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//a/file/tip/a?style=raw'
200 Script output follows
a
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/b/file/tip/b?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//b/file/tip/b?style=raw'
200 Script output follows
b
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/c/file/tip/c?style=raw'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//c/file/tip/c?style=raw'
200 Script output follows
c
atom-log with basedir /
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/atom-log' | grep '<link'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//a/atom-log' | grep '<link'
<link rel="self" href="http://hg.example.com:8080/a/atom-log"/>
<link rel="alternate" href="http://hg.example.com:8080/a/"/>
<link href="http://hg.example.com:8080/a/rev/8580ff50825a"/>
rss-log with basedir /
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/rss-log' | grep '<guid'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//a/rss-log' | grep '<guid'
<guid isPermaLink="true">http://hg.example.com:8080/a/rev/8580ff50825a</guid>
$ "$TESTDIR/killdaemons.py"
$ hg serve --config web.baseurl=http://hg.example.com:8080/foo/ -p $HGPORT2 -d \
@@ -957,14 +957,14 @@
atom-log with basedir /foo/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/atom-log' | grep '<link'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//a/atom-log' | grep '<link'
<link rel="self" href="http://hg.example.com:8080/foo/a/atom-log"/>
<link rel="alternate" href="http://hg.example.com:8080/foo/a/"/>
<link href="http://hg.example.com:8080/foo/a/rev/8580ff50825a"/>
rss-log with basedir /foo/
- $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '/a/rss-log' | grep '<guid'
+ $ "$TESTDIR/get-with-headers.py" localhost:$HGPORT2 '//a/rss-log' | grep '<guid'
<guid isPermaLink="true">http://hg.example.com:8080/foo/a/rev/8580ff50825a</guid>
paths errors 1
More information about the Mercurial-devel
mailing list