From 8f2e0fb1e5972e1fe1b267f5939c60097d28b3f3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 22 Apr 2009 10:44:15 +0200 Subject: Added tests for pkg push --- test/push | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/push (limited to 'test/push') diff --git a/test/push b/test/push new file mode 100644 index 0000000..ff735e5 --- /dev/null +++ b/test/push @@ -0,0 +1,11 @@ +## vim:ft=zsh +somefile=$RANDOM +touch $somefile +git add $somefile +git commit -m $somefile +pkg push +if [[ $repo == *-bare ]] { + [[ $(git --git-dir=$test_proot/$repo log --pretty=oneline | head -1) == *$somefile ]] +} else { + [[ $(git --git-dir=$test_proot/$repo/.git log --pretty=oneline | head -1) == *$somefile ]] +} -- cgit v1.2.3