4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
"i386"
10 buildsimplenativepackage
'apt' 'all' '1.0' 'stable'
12 setupaptarchive
--no-update
14 testsuccess aptget update
16 # simulate normal user with non-existent root-owned directories
17 rm -rf rootdir
/var
/cache
/apt
/archives
/
18 mkdir rootdir
/var
/cache
/apt
/archives
/
19 addtrap
'prefix' "chmod -f -R +w $PWD/rootdir/var/cache/apt/archives || true;"
20 chmod -R -w rootdir
/var
/cache
/apt
/archives
22 echo 'Apt::Changelogs::Server "http://localhost:8080/";' > rootdir
/etc
/apt
/apt.conf.d
/changelog.conf
24 testequal
"'http://localhost:8080/pool/apt_1.0/changelog'" aptget changelog apt
--print-uris
26 testequal
"'http://localhost:8080/pool/apt_1.0/changelog'
27 'http://localhost:8080/pool/apt_1.0/changelog'" aptget changelog apt apt
--print-uris
31 testsuccess aptget changelog apt
-qq
32 testfileequal
'../rootdir/tmp/testsuccess.output' "$(cat ../aptarchive/pool/apt_1.0/changelog)"
34 testsuccess aptget changelog apt
-d
35 testfileequal
'apt.changelog' "$(cat ../aptarchive/pool/apt_1.0/changelog)"
36 testfilestats
'apt.changelog' '%U:%G:%a' '=' "${TEST_DEFAULT_USER}:${TEST_DEFAULT_GROUP}:644"
37 rm -f apt.changelog ..
/aptarchive
/pool
/apt_1.0
/changelog
39 testequal
"$(cat ../aptarchive/pool/apt_1.0.changelog)" aptget changelog apt \
40 -qq -o APT
::Changelogs
::Server
='http://not-on-the-main-server:8080/'
42 testsuccess aptget changelog apt
-d
43 testfileequal
'apt.changelog' "$(cat ../aptarchive/pool/apt_1.0.changelog)"
44 testfilestats
'apt.changelog' '%U:%G:%a' '=' "${TEST_DEFAULT_USER}:${TEST_DEFAULT_GROUP}:644"
45 rm -f apt.changelog ..
/aptarchive
/pool
/apt_1.0.changelog
47 testequal
'E: changelog download failed' aptget changelog apt
-qq -d -o APT
::Changelogs
::Server
='http://not-on-the-main-server:8080/'
48 testfailure
test -e apt.changelog