summaryrefslogtreecommitdiff
path: root/test/main
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/main
parentd6e476488b760e5e06d629cdd1e101a03f48c2ba (diff)
Added tests for pkg push
Diffstat (limited to 'test/main')
-rwxr-xr-xtest/main14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/main b/test/main
index 59bc5df..bf5df36 100755
--- a/test/main
+++ b/test/main
@@ -58,7 +58,19 @@ for conf_origin in 0 1; {
echo "## GIT_USE_ORIGIN=$conf_origin"
echo "GIT_USE_ORIGIN=$conf_origin" >> $test_home/.pkg.conf
for repo in ra ra-bare; {
- source $tests/addremove
+ file=${repo%-*}
+ if [[ $repo == *-bare ]] {
+ echo "## bare repository"
+ complement=$file
+ } else {
+ echo "## non-bare repository"
+ complement=${repo}-bare
+ }
+ source $tests/add
+ cd $test_pdir/$repo
+ source $tests/push
+ cd $test_pdir
+ source $tests/remove
}
}