4 TESTDIR
=$(readlink -f $(dirname $0))
8 configarchitecture
'amd64'
10 testsuccess aptconfig dump
11 testequal
'APT::Architecture "amd64";' aptconfig dump APT
::Architecture
12 testempty aptconfig dump config
::which::does
::not
::exist
14 testequal
'APT::Architectures "";
15 APT::Architectures:: "amd64";' aptconfig dump APT
::Architectures
16 testequal
'APT::Architectures:: "amd64";' aptconfig dump
--no-empty APT
::Architectures
17 testequal
'amd64' aptconfig dump
--no-empty --format='%v%n' APT
::Architectures
19 testempty aptconfig shell
20 testequal
'E: Arguments not in pairs' aptconfig shell APT
::Architecture
21 testempty aptconfig shell APT
::Architecture ARCH
# incorrect order
22 testequal
"ARCH='amd64'" aptconfig shell ARCH APT
::Architecture
24 ROOTDIR
="$(readlink -f rootdir)"
25 testequal
"CONFIG='apt.conf'" aptconfig shell CONFIG Dir
::Etc
::main
26 testequal
"CONFIG='${ROOTDIR}/etc/apt/apt.conf'" aptconfig shell CONFIG Dir
::Etc
::main
/f
27 testequal
"CONFIG='etc/apt/'" aptconfig shell CONFIG Dir
::Etc
28 testequal
"CONFIG='${ROOTDIR}/etc/apt/'" aptconfig shell CONFIG Dir
::Etc
/ # old style
29 testequal
"CONFIG='${ROOTDIR}/etc/apt/'" aptconfig shell CONFIG Dir
::Etc
/d
31 testempty aptconfig dump
--no-empty --format='%v%n' APT
::Build
-Profiles
32 export DEB_BUILD_PROFILES
='nodoc stage1'
34 stage1' aptconfig dump
--no-empty --format='%v%n' APT
::Build
-Profiles
35 unset DEB_BUILD_PROFILES
36 testempty aptconfig dump
--no-empty --format='%v%n' APT
::Build
-Profiles