summaryrefslogtreecommitdiff
path: root/test/test.d/signed-packages.sh
blob: 8293d8ae244ce574497103061ace4adc86fac761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

curdir=$(readlink -e $(dirname $0))
source "${curdir}/../lib/common.inc"

testAddUnsignedPackage() {
	releasePackage extra 'pkg-simple-a' 'i686'
	# remove any signature
	rm "${staging_directory}"/extra/*.sig
	../db-update >/dev/null 2>&1 && fail "db-update should fail when a signature is missing!"
}

source "${curdir}/../lib/shunit2"