summaryrefslogtreecommitdiff
path: root/test/push
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-22 10:44:15 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-22 10:44:15 +0200
commit8f2e0fb1e5972e1fe1b267f5939c60097d28b3f3 (patch)
treefcdcf74299ddccd1cc152f7670e2a990a03dc401 /test/push
parentd6e476488b760e5e06d629cdd1e101a03f48c2ba (diff)
Added tests for pkg push
Diffstat (limited to 'test/push')
-rw-r--r--test/push11
1 files changed, 11 insertions, 0 deletions
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 ]]
+}