# HG changeset patch # User Matt Mackall # Date 1285526492 18000 # Node ID 3cf40f64f9f6e71a2bc94e110feb09f9b4ddf68d # Parent abbe2e9799484370f0451b5393f84eea775c521b tests: unify test-hgweb-descend-empties diff -r abbe2e979948 -r 3cf40f64f9f6 tests/test-hgweb-descend-empties --- a/tests/test-hgweb-descend-empties Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ -#!/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 - -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 - -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 diff -r abbe2e979948 -r 3cf40f64f9f6 tests/test-hgweb-descend-empties.out --- a/tests/test-hgweb-descend-empties.out Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 -r abbe2e979948 -r 3cf40f64f9f6 tests/test-hgweb-descend-empties.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-descend-empties.t Sun Sep 26 13:41:32 2010 -0500 @@ -0,0 +1,134 @@ +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 + + $ "$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
+
+
+ + + + + + + $ cat errors.log