]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-apt-cli-show
correct architecture detection for 'rc' packages for purge
[apt.git] / test / integration / test-apt-cli-show
index 91cc9a3c0c162e4aa9fed4ef450ed13b7b386aef..930e591e091514a8568a3a4c26f9a10d31360c23 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"
@@ -30,3 +36,14 @@ APT-Sources: file:$APTARCHIVE/ unstable/main i386 Packages
 Description: Some description 
  That has multiple lines
 " apt show foo
+
+# this is the default, but disabled by the testcases
+testsuccess apt show foo -o Apt::Cmd::Disable-Script-Warning=0
+cp rootdir/tmp/testsuccess.output aptshow.output
+testsuccess grep '^WARNING: ' aptshow.output
+
+if [ "$(id -u)" != '0' ]; then
+       testsuccess apt install foo -s -o APT::Get::Show-User-Simulation-Note=1
+       cp rootdir/tmp/testsuccess.output aptshow.output
+       testsuccess grep '^NOTE: ' aptshow.output
+fi