]> git.saurik.com Git - apt.git/commitdiff
skip test if "apt" is not build
authorMichael Vogt <mvo@debian.org>
Sat, 22 Feb 2014 21:28:36 +0000 (22:28 +0100)
committerMichael Vogt <mvo@debian.org>
Sat, 22 Feb 2014 21:28:36 +0000 (22:28 +0100)
test/integration/test-apt-cli-list
test/integration/test-apt-cli-search
test/integration/test-apt-cli-show
test/integration/test-apt-cli-upgrade

index 47507aeb8d065e506c21dc8a4fb21bbd82aff668..47cfb624ae8132b080c67483c883e3cff8c50708 100755 (executable)
@@ -7,6 +7,12 @@ TESTDIR=$(readlink -f $(dirname $0))
 setupenvironment
 configarchitecture "i386"
 
+if [ ! -x ${BUILDDIRECTORY}/apt ]; then
+    msgmsg "No ${BUILDDIRECTORY}/apt"
+    msgskip 
+    exit 0
+fi
+
 insertpackage 'unstable' 'foo' 'all' '1.0'
 insertinstalledpackage 'bar' 'i386' '1.0'
 
index 979aff880de6077cd00c82a8d3632f6cca2e9c14..84650b366ea0ba9423b3aea11c65d53fc6b6d608 100755 (executable)
@@ -7,6 +7,12 @@ TESTDIR=$(readlink -f $(dirname $0))
 setupenvironment
 configarchitecture "i386"
 
+if [ ! -x ${BUILDDIRECTORY}/apt ]; then
+    msgmsg "No ${BUILDDIRECTORY}/apt"
+    msgskip 
+    exit 0
+fi
+
 DESCR='Some description that has a unusual word xxyyzz and aabbcc'
 DESCR2='Some other description with the unusual aabbcc only'
 insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
index 91cc9a3c0c162e4aa9fed4ef450ed13b7b386aef..4c8e134d6557896313bb676e5bb7593970d95912 100755 (executable)
@@ -7,6 +7,12 @@ TESTDIR=$(readlink -f $(dirname $0))
 setupenvironment
 configarchitecture "i386"
 
+if [ ! -x ${BUILDDIRECTORY}/apt ]; then
+    msgmsg "No ${BUILDDIRECTORY}/apt"
+    msgskip 
+    exit 0
+fi
+
 DESCR='Some description 
  That has multiple lines'
 insertpackage 'unstable' 'foo' 'all' '1.0' '' '' "$DESCR"
index 21ce6941339f2116d70abceac49bcf28de4fe9f0..b6ee2270b2653cdf627f8599e5ef69378b021cea 100755 (executable)
@@ -7,6 +7,13 @@ TESTDIR=$(readlink -f $(dirname $0))
 setupenvironment
 configarchitecture "i386"
 
+if [ ! -x ${BUILDDIRECTORY}/apt ]; then
+    msgmsg "No ${BUILDDIRECTORY}/apt"
+    msgskip 
+    exit 0
+fi
+
+
 insertpackage 'unstable' 'foo' 'all' '2.0' 'Depends: foo-new-dependency'
 insertpackage 'unstable' 'foo-new-dependency' 'all' '2.0'
 insertinstalledpackage 'foo' 'all' '1.0'