]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-612958-use-dpkg-multiarch-config
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'i386'
10 msgtest 'Test architecture handling success' "$1 with
$2"
12 aptconfig dump --no-empty --format='%V%n' APT::Architectures > archs.conf
13 testsuccess --nomsg grep "^
$2\$
" archs.conf
17 msgtest 'Test architecture handling failure' "$1 with
$2"
19 aptconfig dump --no-empty --format='%V%n' APT::Architectures > archs.conf
20 testfailure --nomsg grep "^
$2\$
" archs.conf
23 testpass 'no config' 'i386'
24 testfail 'no config' 'amd64'
25 testfail 'no config' 'armel'
27 CONFFILE=rootdir/etc/apt/apt.conf.d/99multiarch
28 echo '#clear APT::Architectures;' >> $CONFFILE
29 echo 'APT::Architectures:: "i386
";' >> $CONFFILE
30 echo 'APT::Architectures:: "amd64
";' >> $CONFFILE
32 testpass 'apt config' 'i386'
33 testpass 'apt config' 'amd64'
34 testfail 'apt config' 'armel'
36 echo 'APT::Architectures:: "armel
";' >> $CONFFILE
38 testpass 'apt config' 'armel'
42 echo '#clear APT::Architectures;' >> $CONFFILE
43 echo 'APT::Architectures "i386
,amd64
";' >> $CONFFILE
45 testpass 'apt config' 'i386'
46 testpass 'apt config' 'amd64'
47 testfail 'apt config' 'armel'
51 echo '#clear APT::Architectures;' >> $CONFFILE
52 echo 'Dir::Bin::dpkg ".
/dpkg
-printer";' >> $CONFFILE
55 echo "amd64
"' > ./dpkg-printer
56 chmod +x ./dpkg-printer
58 testpass 'dpkg config' 'i386'
59 testpass 'dpkg config' 'amd64'
60 testfail 'dpkg config' 'armel'
63 echo "amd64 armel
"' > ./dpkg-printer
65 testpass 'dpkg config' 'i386'
66 testpass 'dpkg config' 'amd64'
67 testpass 'dpkg config' 'armel'
71 armel
"' > ./dpkg-printer
73 testpass 'dpkg config' 'i386'
74 testpass 'dpkg config' 'amd64'
75 testpass 'dpkg config' 'armel'
79 i386
"' > ./dpkg-printer
81 testpass 'dpkg config' 'i386'
82 testpass 'dpkg config' 'amd64'
83 testfail 'dpkg config' 'armel'