summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 16:33:49 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-08 16:33:49 +0100
commit263007415452f078326a757f8cb58602960a982b (patch)
treedd98bb80ce0d65c0ff25935ab1647e56a0bcffe3
parent2e75fdaeddf9a50e175cc6e90791671401c66e53 (diff)
downloadgall-263007415452f078326a757f8cb58602960a982b.tar.gz
TEST: Simplify test repository construction to just untarring something
-rw-r--r--test/create_test_repo.sh46
-rw-r--r--test/signed.tarbin20480 -> 0 bytes
-rw-r--r--test/test_repo.tarbin0 -> 81920 bytes
3 files changed, 2 insertions, 44 deletions
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
--- a/test/signed.tar
+++ /dev/null
Binary files differ
diff --git a/test/test_repo.tar b/test/test_repo.tar
new file mode 100644
index 0000000..405b779
--- /dev/null
+++ b/test/test_repo.tar
Binary files differ