X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b2db070b7b633e03674c0ae8765025c29a4d4490..61db48241f2d46697a291bfedaf398a1ca9a70e3:/test/integration/test-bug-747261-arch-specific-conflicts diff --git a/test/integration/test-bug-747261-arch-specific-conflicts b/test/integration/test-bug-747261-arch-specific-conflicts index bfb2d089f..e1370433f 100755 --- a/test/integration/test-bug-747261-arch-specific-conflicts +++ b/test/integration/test-bug-747261-arch-specific-conflicts @@ -1,11 +1,21 @@ #!/bin/sh set -e -TESTDIR=$(readlink -f $(dirname $0)) -. $TESTDIR/framework +TESTDIR="$(readlink -f "$(dirname "$0")")" +. "$TESTDIR/framework" setupenvironment configarchitecture 'amd64' 'sparc' 'armel' +insertinstalledpackage 'foobar' 'armel' '1' +msgtest 'Check that dpkg supports' 'arch-specific dependencies' +if ! dpkgcheckbuilddeps -d 'foobar:armel' /dev/null 2>/dev/null >/dev/null; then + dpkgcheckbuilddeps -d 'foobar:armel' /dev/null || true + msgskip + exit 0 +else + msgpass +fi + buildsimplenativepackage 'libc6' 'amd64,sparc,armel' '1' 'stable' 'Multi-Arch: same' buildsimplenativepackage 'libc6-i386' 'amd64' '1' 'stable' 'Conflicts: libc6:sparc'