[PATCH] test-hgweb-commands: adapt for Windows
Adrian Buehlmann
adrian at cadifra.com
Wed Jun 20 10:18:23 CDT 2012
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1340205245 -7200
# Node ID fe7f367f287d42b6ad28aca45c8f75dff3625694
# Parent 9e380b6c1f808425681f21c4f45c5da464befe20
test-hgweb-commands: adapt for Windows
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -37,7 +37,7 @@
Logs and changes
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//log/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -115,7 +115,7 @@
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//log/1/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -193,7 +193,7 @@
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log/1/foo/?style=atom'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//log/1/foo/?style=atom'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -221,7 +221,7 @@
</entry>
</feed>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/shortlog/'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//shortlog/'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -326,7 +326,7 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/0/'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//rev/0/'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -453,7 +453,7 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/rev/1/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//rev/1/?style=raw'
200 Script output follows
@@ -470,7 +470,7 @@
@@ -0,0 +1,1 @@
+2ef0ac749a14e4f57a5a822464a0902c6f7f448f 1.0
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/log?rev=base'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//log?rev=base'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -548,11 +548,11 @@
File-related
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//file/1/foo/?style=raw'
200 Script output follows
foo
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/annotate/1/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//annotate/1/foo/?style=raw'
200 Script output follows
@@ -561,7 +561,7 @@
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//file/1/?style=raw'
200 Script output follows
@@ -570,7 +570,7 @@
-rw-r--r-- 4 foo
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file/1/foo'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//file/1/foo'
200 Script output follows
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -663,7 +663,7 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/0/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//filediff/0/foo/?style=raw'
200 Script output follows
@@ -677,7 +677,7 @@
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/filediff/1/foo/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//filediff/1/foo/?style=raw'
200 Script output follows
@@ -688,23 +688,23 @@
Overviews
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-tags'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//raw-tags'
200 Script output follows
tip ba87b23d29ca67a305625d81a20ac279c1e3f444
1.0 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-branches'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//raw-branches'
200 Script output follows
unstable ba87b23d29ca67a305625d81a20ac279c1e3f444 open
stable 1d22e65f027e5a0609357e7d8e7508cd2ba5d2fe inactive
default a4f92ed23982be056b9852de5dfe873eaac7f0de inactive
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/raw-bookmarks'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//raw-bookmarks'
200 Script output follows
anotherthing 2ef0ac749a14e4f57a5a822464a0902c6f7f448f
something ba87b23d29ca67a305625d81a20ac279c1e3f444
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/summary/?style=gitweb'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//summary/?style=gitweb'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -906,7 +906,7 @@
</body>
</html>
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/?style=gitweb'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//graph/?style=gitweb'
200 Script output follows
<?xml version="1.0" encoding="ascii"?>
@@ -1049,7 +1049,7 @@
raw graph
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/?style=raw'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//graph/?style=raw'
200 Script output follows
@@ -1147,7 +1147,7 @@
Static files
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/static/style.css'
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//static/style.css'
200 Script output follows
a { text-decoration:none; }
@@ -1270,7 +1270,7 @@
Graph json escape of multibyte character
- $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/graph/' \
+ $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '//graph/' \
> | grep '^var data ='
var data = [["548001d11f45", [0, 1], [[0, 0, 1, -1, ""]], "\u80fd", "test", "1970-01-01", ["unstable", true], ["tip"], ["something"]], ["ba87b23d29ca", [0, 1], [[0, 0, 1, 3, "FF0000"]], "branch", "test", "1970-01-01", ["unstable", false], [], []], ["1d22e65f027e", [0, 1], [[0, 0, 1, 3, ""]], "branch", "test", "1970-01-01", ["stable", true], [], []], ["a4f92ed23982", [0, 1], [[0, 0, 1, 3, ""]], "Added tag 1.0 for changeset 2ef0ac749a14", "test", "1970-01-01", ["default", true], [], []], ["2ef0ac749a14", [0, 1], [], "base", "test", "1970-01-01", ["default", false], ["1.0"], ["anotherthing"]]];
More information about the Mercurial-devel
mailing list