]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-590041-prefer-non-virtual-packages
add a testcase for support of various build-dependency types
[apt.git] / test / integration / test-bug-590041-prefer-non-virtual-packages
index 3bd7d436ecbc95927dee47fcb51302d4c847c7d0..1b1e3aa4f283bce2c2e2ff64986f7e2831f27c27 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
 set -e
 
-. $(readlink -f $(dirname $0))/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
 configarchitecture 'i386' 'armel'
 
@@ -38,14 +39,14 @@ Section: oldlibs
 Size: 44168
 "
 
-cat <<-EOF >aptarchive/Packages
+cat >aptarchive/Packages <<EOF
 $pkglibc6
 $pkglibdb1
 EOF
 
 setupaptarchive
 
-testshowvirtual libc6:i386
+testnopackage libc6:i386
 testsuccessequal "$pkglibc6" aptcache show libc6:armel
 testsuccessequal "$pkglibc6" aptcache show libc6
 testsuccessequal "$pkglibdb1" aptcache show libdb1:i386