# HG changeset patch # User Matt Mackall # Date 1285526492 18000 # Node ID b52ce78de84decd6af141e6691fb6dc9fc8eb10b # Parent 61be1503cfb236b2946e8602565aaed83932d024 tests: unify test-hgweb-empty diff --git a/tests/test-hgweb-empty.out b/tests/test-hgweb-empty.out deleted file mode 100644 --- a/tests/test-hgweb-empty.out +++ /dev/null @@ -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 --git a/tests/test-hgweb-empty b/tests/test-hgweb-empty.t old mode 100755 new mode 100644 rename from tests/test-hgweb-empty rename to tests/test-hgweb-empty.t --- a/tests/test-hgweb-empty +++ b/tests/test-hgweb-empty.t @@ -1,12 +1,376 @@ -#!/bin/sh -# Some tests for hgweb in an empty repository +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') + $ 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
          +
          +
          + + + + +