From 263007415452f078326a757f8cb58602960a982b Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 8 Sep 2012 16:33:49 +0100 Subject: TEST: Simplify test repository construction to just untarring something --- test/create_test_repo.sh | 46 ++-------------------------------------------- test/signed.tar | Bin 20480 -> 0 bytes test/test_repo.tar | Bin 0 -> 81920 bytes 3 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 test/signed.tar create mode 100644 test/test_repo.tar diff --git a/test/create_test_repo.sh b/test/create_test_repo.sh index f56d9cb..7eedefa 100644 --- a/test/create_test_repo.sh +++ b/test/create_test_repo.sh @@ -1,47 +1,5 @@ #!/bin/sh -mkdir -p test/test_repo +cd test -cd test/test_repo - -__git () { git "$@" 2>/dev/null ; } -_git () { __git "$@" > /dev/null ; } - -_git init -q - -echo -n "FOOBAR" > testblob - -_git add testblob - -GIT_AUTHOR_NAME="Gall Test Suite Author" -GIT_AUTHOR_EMAIL="gall-author@gitano.org.uk" -GIT_AUTHOR_DATE="1347114766 +0000" -GIT_COMMITTER_NAME="Gall Test Suite Committer" -GIT_COMMITTER_EMAIL="gall-committer@gitano.org.uk" -GIT_COMMITTER_DATE="1347114766 +0100" - -export GIT_AUTHOR_NAME GIT_AUTHOR_EMAIL GIT_AUTHOR_DATE -export GIT_COMMITTER_NAME GIT_COMMITTER_EMAIL GIT_COMMITTER_DATE - -_git commit -m "Initial" - -echo -n "BAZMETA" > testblob - -_git add testblob - -_git commit -m "Second" - -_git checkout -b branchy 'HEAD^' - -echo -n "NEW" > secondblob - -_git add secondblob -_git commit -m "branchy" - -_git checkout master - -_git merge branchy - -_git tag -a -m "Annotated Tag. Wahey" v1.0 - -(cd .git; tar xf ../../signed.tar) +tar xf test_repo.tar diff --git a/test/signed.tar b/test/signed.tar deleted file mode 100644 index 9da308e..0000000 Binary files a/test/signed.tar and /dev/null differ diff --git a/test/test_repo.tar b/test/test_repo.tar new file mode 100644 index 0000000..405b779 Binary files /dev/null and b/test/test_repo.tar differ -- cgit v1.2.1