From cfd4fc04391b010ebc1bdf7f3ffe39bc80c6b0f3 Mon Sep 17 00:00:00 2001 From: Matt Mackall Date: Mon, 2 Aug 2010 23:29:14 -0500 Subject: [PATCH] tests: unify test-basic --- tests/test-basic | 12 ------------ tests/test-basic.out | 13 ------------- tests/test-basic.t | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 25 deletions(-) delete mode 100755 tests/test-basic delete mode 100644 tests/test-basic.out create mode 100644 tests/test-basic.t diff --git a/tests/test-basic b/tests/test-basic deleted file mode 100755 index 71598c3150..0000000000 --- a/tests/test-basic +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -mkdir t -cd t -hg init -echo a > a -hg add a -hg commit -m test -d "1000000 0" -hg history -hg manifest --debug -hg cat a -hg verify diff --git a/tests/test-basic.out b/tests/test-basic.out deleted file mode 100644 index d2178de413..0000000000 --- a/tests/test-basic.out +++ /dev/null @@ -1,13 +0,0 @@ -changeset: 0:0acdaf898367 -tag: tip -user: test -date: Mon Jan 12 13:46:40 1970 +0000 -summary: test - -b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a -a -checking changesets -checking manifests -crosschecking files in changesets and manifests -checking files -1 files, 1 changesets, 1 total revisions diff --git a/tests/test-basic.t b/tests/test-basic.t new file mode 100644 index 0000000000..9cc4b9a407 --- /dev/null +++ b/tests/test-basic.t @@ -0,0 +1,40 @@ +Create a repository: + + $ mkdir t + $ cd t + $ hg init + +Make a changeset: + + $ echo a > a + $ hg add a + $ hg commit -m test -d "1000000 0" + +This command is ancient: + + $ hg history + changeset: 0:0acdaf898367 + tag: tip + user: test + date: Mon Jan 12 13:46:40 1970 +0000 + summary: test + + +Poke around at hashes: + + $ hg manifest --debug + b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3 644 a + + $ hg cat a + a + +Verify should succeed: + + $ hg verify + checking changesets + checking manifests + crosschecking files in changesets and manifests + checking files + 1 files, 1 changesets, 1 total revisions + +At the end...