summaryrefslogtreecommitdiffstats
path: root/test/lib/common.inc
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-07 21:21:08 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-07 21:21:08 +0200
commitbccf84211be4abda3c96ded43f03b597081fecb1 (patch)
treeadc9bb33a544d0b9fb49c616e907777a191468b1 /test/lib/common.inc
parent66ae94cafb62da09da77712269f411f095dd81fc (diff)
downloaddbscripts-bccf84211be4abda3c96ded43f03b597081fecb1.tar.gz
dbscripts-bccf84211be4abda3c96ded43f03b597081fecb1.tar.xz
add test for db-remove
Diffstat (limited to 'test/lib/common.inc')
-rw-r--r--test/lib/common.inc13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/lib/common.inc b/test/lib/common.inc
index 5abe2ed..4052aa1 100644
--- a/test/lib/common.inc
+++ b/test/lib/common.inc
@@ -1,4 +1,4 @@
-pkgdir="$(dirname $0)/packages"
+pkgdir="${curdir}/packages"
oneTimeSetUp() {
local p
@@ -57,20 +57,13 @@ eot
}
tearDown() {
+ echo -n 'Cleaning up...'
rm -rf "${TMP}"
rm -f "${curdir}/../config.local"
+ echo 'done'
echo
}
-testPackages() {
- local p
- for p in "${pkgdir}"/*; do
- pushd $p >/dev/null
- namcap *.pkg.tar.* || fail 'namcap failed'
- popd >/dev/null
- done
-}
-
releasePackage() {
local repo=$1
local pkgbase=$2