# HG changeset patch # User Matt Mackall # Date 1285526492 18000 # Node ID b52ce78de84decd6af141e6691fb6dc9fc8eb10b # Parent 61be1503cfb236b2946e8602565aaed83932d024 tests: unify test-hgweb-empty diff -r 61be1503cfb2 -r b52ce78de84d tests/test-hgweb-empty --- a/tests/test-hgweb-empty Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -#!/bin/sh -# Some tests for hgweb in an empty repository - -hg init test -cd test -hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log -cat hg.pid >> $DAEMON_PIDS - -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog') -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log') -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph') -("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file') diff -r 61be1503cfb2 -r b52ce78de84d tests/test-hgweb-empty.out --- a/tests/test-hgweb-empty.out Sun Sep 26 13:41:32 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,366 +0,0 @@ -200 Script output follows - - - - - - - - -test: log - - - - - -
- - -
-

test

-

log

- - - - - - - - - - - - -
ageauthordescription
- - - -
-
- - - - - - -200 Script output follows - - - - - - - - -test: log - - - - - -
- - -
-

test

-

log

- - - - - - - - - - - - -
ageauthordescription
- - - -
-
- - - - - - -200 Script output follows - - - - - - - - -test: revision graph - - - - - - -
- - -
-

test

-

graph

- - - - - - - -
-
    - -
      -
      - - - - - - -
      -
      - - - - - - -200 Script output follows - - - - - - - - -test: 000000000000 / - - - -
      - - -
      -

      test

      -

      directory / @ -1:000000000000 tip

      - - - - - - - - - - - - - - - - -
      namesizepermissions
      [up]drwxr-xr-x
      -
      -
      - - - - - diff -r 61be1503cfb2 -r b52ce78de84d tests/test-hgweb-empty.t --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test-hgweb-empty.t Sun Sep 26 13:41:32 2010 -0500 @@ -0,0 +1,376 @@ +Some tests for hgweb in an empty repository + + $ hg init test + $ cd test + $ hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log + $ cat hg.pid >> $DAEMON_PIDS + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/shortlog') + 200 Script output follows + + + + + + + + + test: log + + + + + +
      + + +
      +

      test

      +

      log

      + + + + + + + + + + + + +
      ageauthordescription
      + + + +
      +
      + + + + + + + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/log') + 200 Script output follows + + + + + + + + + test: log + + + + + +
      + + +
      +

      test

      +

      log

      + + + + + + + + + + + + +
      ageauthordescription
      + + + +
      +
      + + + + + + + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/graph') + 200 Script output follows + + + + + + + + + test: revision graph + + + + + + +
      + + +
      +

      test

      +

      graph

      + + + + + + + +
      +
        + +
          +
          + + + + + + +
          +
          + + + + + + + $ ("$TESTDIR/get-with-headers.py" localhost:$HGPORT '/file') + 200 Script output follows + + + + + + + + + test: 000000000000 / + + + +
          + + +
          +

          test

          +

          directory / @ -1:000000000000 tip

          + + + + + + + + + + + + + + + + +
          namesizepermissions
          [up]drwxr-xr-x
          +
          +
          + + + + +