From 9f1058dc459bd556eb01f38be0f1ba15af1f7538 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 May 2009 10:27:41 +0200 Subject: Added very basic test for pkg pull --- test/main | 1 + test/pull | 6 ++++++ test/pull-prepare | 9 +++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/pull create mode 100644 test/pull-prepare 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' +} -- cgit v1.2.3