hgweb: test the order of archive links
authorAnton Shestakov <av6@dwimlabs.net>
Wed, 11 Jan 2017 01:25:07 +0800
changeset 30747 4259df518223
parent 30746 9cb0bb0f29f0
child 30748 319914d57b9e
hgweb: test the order of archive links
tests/test-archive.t
--- a/tests/test-archive.t	Thu Jan 05 17:16:51 2017 +0000
+++ b/tests/test-archive.t	Wed Jan 11 01:25:07 2017 +0800
@@ -61,6 +61,13 @@
   $ 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