summaryrefslogtreecommitdiff
path: root/tests/cvs-single-commit.script
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-20 12:50:13 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-02-20 12:50:13 +0000
commit7f7603057cbc977d59706dae44df76bc793bd8f1 (patch)
treee1ab37aa29fa91c46603aecc3f25127515ca20df /tests/cvs-single-commit.script
parent1b6d6972449b4110f12f13ca011310f6fc491e3d (diff)
downloadlorry-7f7603057cbc977d59706dae44df76bc793bd8f1.tar.gz
Update bzr/cvs/git/hg test scripts. Always use git for repo checks.
Diffstat (limited to 'tests/cvs-single-commit.script')
-rwxr-xr-xtests/cvs-single-commit.script34
1 files changed, 16 insertions, 18 deletions
diff --git a/tests/cvs-single-commit.script b/tests/cvs-single-commit.script
index cc43000..6f1736c 100755
--- a/tests/cvs-single-commit.script
+++ b/tests/cvs-single-commit.script
@@ -20,24 +20,22 @@
set -e
-
logfile="$DATADIR/cvs-test-repo.log"
workdir="$DATADIR/work-dir"
-# ./lorry --pull-only --log="$logfile" --working-area="$workdir" \
-# "$DATADIR/cvs-test-repo.lorry" # > /dev/null 2> /dev/null
-#
-# #export GIT_DIR="$workdir/cvs-test-repo/git/.git"
-# cd "$workdir/cvs-test-repo/git/"
-#
-# # list the branches
-# git show-ref | cut -d' ' -f2
-#
-# # cat the test file
-# git cat-file blob trunk:test.txt
-#
-# # check out the trunk branch
-# git checkout --quiet trunk
-#
-# # list the commit messages
-# git log --pretty='%s'
+./lorry --pull-only --log="$logfile" --working-area="$workdir" \
+ "$DATADIR/cvs-test-repo.lorry" > /dev/null 2> /dev/null
+
+# verify that the git repository was created successfully
+(
+ cd "$workdir/cvs-test-repo/git/"
+
+ # list the branches
+ git show-ref | cut -d' ' -f2
+
+ # cat the test file
+ git cat-file blob master:test.txt
+
+ # list the commit messages
+ git log --pretty='%s' master
+)