|
@@ -24,15 +24,18 @@ testfilemissing() {
|
|
|
|
|
|
|
|
testrun() {
|
|
testrun() {
|
|
|
rm -rf rootdir/var/lib/apt
|
|
rm -rf rootdir/var/lib/apt
|
|
|
- testsuccess aptget update
|
|
|
|
|
|
|
|
|
|
if [ "$1" = 'trusted' ]; then
|
|
if [ "$1" = 'trusted' ]; then
|
|
|
|
|
+ testsuccess aptget update
|
|
|
|
|
+
|
|
|
testsuccess aptget download cool
|
|
testsuccess aptget download cool
|
|
|
testfileexists 'cool_1.0_i386.deb'
|
|
testfileexists 'cool_1.0_i386.deb'
|
|
|
|
|
|
|
|
testsuccess aptget download cool --allow-unauthenticated
|
|
testsuccess aptget download cool --allow-unauthenticated
|
|
|
testfileexists 'cool_1.0_i386.deb'
|
|
testfileexists 'cool_1.0_i386.deb'
|
|
|
else
|
|
else
|
|
|
|
|
+ testsuccess aptget update --allow-unauthenticated
|
|
|
|
|
+
|
|
|
testfailure aptget download cool
|
|
testfailure aptget download cool
|
|
|
testfilemissing 'cool_1.0_i386.deb'
|
|
testfilemissing 'cool_1.0_i386.deb'
|
|
|
|
|
|