diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 04:39:17 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 04:39:17 -0300 |
commit | b878c56002c5777dcbf6d713b0002aead5169286 (patch) | |
tree | 63d81edf3a21bd76f78f872709f6da5ce5aae582 /extra/lukeshu-xbs/test/test.d/signed-packages.sh | |
parent | e1f1ba1883d5cd76f0a1de7ce0c39af971bf79bb (diff) |
remove more duplicated files
Diffstat (limited to 'extra/lukeshu-xbs/test/test.d/signed-packages.sh')
-rwxr-xr-x | extra/lukeshu-xbs/test/test.d/signed-packages.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/extra/lukeshu-xbs/test/test.d/signed-packages.sh b/extra/lukeshu-xbs/test/test.d/signed-packages.sh deleted file mode 100755 index 03566ef..0000000 --- a/extra/lukeshu-xbs/test/test.d/signed-packages.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -curdir=$(readlink -e $(dirname $0)) -. "${curdir}/../lib/common.inc" - -testAddSignedPackage() { - releasePackage extra 'pkg-simple-a' 'i686' - ../db-update || fail "db-update failed!" -} - -testAddUnsignedPackage() { - releasePackage extra 'pkg-simple-a' 'i686' - rm "${STAGING}"/extra/*.sig - ../db-update >/dev/null 2>&1 && fail "db-update should fail when a signature is missing!" -} - -testAddInvalidSignedPackage() { - local p - releasePackage extra 'pkg-simple-a' 'i686' - for p in "${STAGING}"/extra/*${PKGEXT}; do - unxz $p - xz -0 ${p%%.xz} - done - ../db-update >/dev/null 2>&1 && fail "db-update should fail when a signature is invalid!" -} - -testAddBrokenSignature() { - local s - releasePackage extra 'pkg-simple-a' 'i686' - for s in "${STAGING}"/extra/*.sig; do - echo 0 > $s - done - ../db-update >/dev/null 2>&1 && fail "db-update should fail when a signature is broken!" -} - -. "${curdir}/../lib/shunit2" |