[PATCH 1 of 3] hgweb: test the order of archive links
Anton Shestakov
av6 at dwimlabs.net
Wed Jan 11 02:53:17 UTC 2017
# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1484069107 -28800
# Wed Jan 11 01:25:07 2017 +0800
# Node ID 942eaf4846b85c7baa1c0622e2db0c299296a2b9
# Parent cfd14b0508ddf8edf156d202e2c5d07b259c2f46
hgweb: test the order of archive links
diff --git a/tests/test-archive.t b/tests/test-archive.t
--- a/tests/test-archive.t
+++ b/tests/test-archive.t
@@ -61,6 +61,13 @@ check http return codes
$ hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log
$ cat hg.pid >> $DAEMON_PIDS
+check archive links' order
+
+ $ get-with-headers.py localhost:$HGPORT "?revcount=1" | grep '/archive/tip.'
+ <a href="/archive/tip.zip">zip</a>
+ <a href="/archive/tip.tar.gz">gz</a>
+ <a href="/archive/tip.tar.bz2">bz2</a>
+
invalid arch type should give 404
$ get-with-headers.py localhost:$HGPORT "archive/tip.invalid" | head -n 1
More information about the Mercurial-devel
mailing list