diff --git a/tests/test-hgweb-descend-empties.out b/tests/test-hgweb-descend-empties.out deleted file mode 100644 --- a/tests/test-hgweb-descend-empties.out +++ /dev/null @@ -1,110 +0,0 @@ -% Set up the repo -adding a1/a2/a3/a4/foo -adding b1/b2/b3/b4/foo -adding b1/b2/c3/c4/foo -adding d1/d2/d3/d4/foo -adding d1/d2/foo -% manifest with descending -200 Script output follows - - - - - - - - -test: 9087c84a0f5d / - - - -
- - -
-

test

-

directory / @ 0:9087c84a0f5d tip

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namesizepermissions
[up]drwxr-xr-x
- -dir. a1/ - - -a2/a3/a4 - -drwxr-xr-x
- -dir. b1/ - - -b2 - -drwxr-xr-x
- -dir. d1/ - - -d2 - -drwxr-xr-x
-
-
- - - - - -% ERRORS ENCOUNTERED diff --git a/tests/test-hgweb-descend-empties b/tests/test-hgweb-descend-empties.t old mode 100755 new mode 100644 rename from tests/test-hgweb-descend-empties rename to tests/test-hgweb-descend-empties.t --- a/tests/test-hgweb-descend-empties +++ b/tests/test-hgweb-descend-empties.t @@ -1,28 +1,134 @@ -#!/bin/sh -# Test chains of near empty directories, terminating 3 different ways: -# - a1: file at level 4 (deepest) -# - b1: two dirs at level 3 -# - e1: file at level 2 +Test chains of near empty directories, terminating 3 different ways: +- a1: file at level 4 (deepest) +- b1: two dirs at level 3 +- e1: file at level 2 + +Set up the repo + + $ hg init test + $ cd test + $ mkdir -p a1/a2/a3/a4 + $ mkdir -p b1/b2/b3/b4 + $ mkdir -p b1/b2/c3/c4 + $ mkdir -p d1/d2/d3/d4 + $ echo foo > a1/a2/a3/a4/foo + $ echo foo > b1/b2/b3/b4/foo + $ echo foo > b1/b2/c3/c4/foo + $ echo foo > d1/d2/d3/d4/foo + $ echo foo > d1/d2/foo + $ hg ci -Ama + adding a1/a2/a3/a4/foo + adding b1/b2/b3/b4/foo + adding b1/b2/c3/c4/foo + adding d1/d2/d3/d4/foo + adding d1/d2/foo + $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log + $ cat hg.pid >> $DAEMON_PIDS + +manifest with descending -echo % Set up the repo -hg init test -cd test -mkdir -p a1/a2/a3/a4 -mkdir -p b1/b2/b3/b4 -mkdir -p b1/b2/c3/c4 -mkdir -p d1/d2/d3/d4 -echo foo > a1/a2/a3/a4/foo -echo foo > b1/b2/b3/b4/foo -echo foo > b1/b2/c3/c4/foo -echo foo > d1/d2/d3/d4/foo -echo foo > d1/d2/foo -hg ci -Ama + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file' + 200 Script output follows + + + + + + + + + test: 9087c84a0f5d / + + + +
+ + +
+

test

+

directory / @ 0:9087c84a0f5d tip

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
namesizepermissions
[up]drwxr-xr-x
+ + dir. a1/ + + + a2/a3/a4 + + drwxr-xr-x
+ + dir. b1/ + + + b2 + + drwxr-xr-x
+ + dir. d1/ + + + d2 + + drwxr-xr-x
+
+
+ + + + + -hg serve -n test -p $HGPORT -d --pid-file=hg.pid -E errors.log -cat hg.pid >> $DAEMON_PIDS - -echo % manifest with descending -"$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT '/file' - -echo % ERRORS ENCOUNTERED -cat errors.log + $ cat errors.log