summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.d/db-update.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test.d/db-update.sh b/test/test.d/db-update.sh
index ea1e130..7a5ce4c 100755
--- a/test/test.d/db-update.sh
+++ b/test/test.d/db-update.sh
@@ -162,4 +162,14 @@ testAddIncompleteSplitPackage() {
done
}
+testUnknownRepo() {
+ mkdir "${STAGING}/unknown/"
+ releasePackage extra 'pkg-simple-a' 'i686'
+ releasePackage unknown 'pkg-simple-b' 'i686'
+ ../db-update
+ checkPackage extra 'pkg-simple-a-1-1-i686.pkg.tar.xz' 'i686'
+ [ -e "${FTP_BASE}/unknown" ] && fail "db-update pushed a package into an unknown repository"
+ rm -rf "${STAGING}/unknown/"
+}
+
. "${curdir}/../lib/shunit2"