diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-07 10:27:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-07 10:27:41 +0200 |
commit | 9f1058dc459bd556eb01f38be0f1ba15af1f7538 (patch) | |
tree | 05920a9eb3ffa0f7567664dea5c71565d32b1775 | |
parent | 696d3ef5262381154d21ed01ede67c536d226ff5 (diff) |
Added very basic test for pkg pull
-rwxr-xr-x | test/main | 1 | ||||
-rw-r--r-- | test/pull | 6 | ||||
-rw-r--r-- | test/pull-prepare | 9 |
3 files changed, 16 insertions, 0 deletions
@@ -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' +} |