summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:27:41 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-07 10:27:41 +0200
commit9f1058dc459bd556eb01f38be0f1ba15af1f7538 (patch)
tree05920a9eb3ffa0f7567664dea5c71565d32b1775 /test
parent696d3ef5262381154d21ed01ede67c536d226ff5 (diff)
Added very basic test for pkg pull
Diffstat (limited to 'test')
-rwxr-xr-xtest/main1
-rw-r--r--test/pull6
-rw-r--r--test/pull-prepare9
3 files changed, 16 insertions, 0 deletions
diff --git a/test/main b/test/main
index 51981ab..7c2004e 100755
--- a/test/main
+++ b/test/main
@@ -72,6 +72,7 @@ for conf_origin in 0 1; {
cd $test_pdir/$repo
source $tests/push
cd $test_pdir
+ source $tests/pull-prepare
source $tests/remove
}
}
diff --git a/test/pull b/test/pull
new file mode 100644
index 0000000..c6a410a
--- /dev/null
+++ b/test/pull
@@ -0,0 +1,6 @@
+## vim:ft=zsh
+if [[ $repo == $file ]] {
+ echo "# pkg pull"
+ pkg pull
+ [[ -f $pkgdir/$repo/baz ]]
+}
diff --git a/test/pull-prepare b/test/pull-prepare
new file mode 100644
index 0000000..a7022fe
--- /dev/null
+++ b/test/pull-prepare
@@ -0,0 +1,9 @@
+## vim:ft=zsh
+if [[ $repo == $file ]] {
+ echo "# Creating new commit in PKG_ROOT"
+ cd $test_proot/$file
+ git checkout -f
+ echo $RANDOM > baz
+ git add baz
+ git commit -m 'floeppel'
+}