summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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'
+}