diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-11-09 21:38:53 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-11-18 02:41:20 +0100 |
commit | 081c9d442a6d39fb9bc419fe3ce697cc791cb844 (patch) | |
tree | 52505e06aa24b79cbec7215dd1c0ef5305050eff /test/integration/test-apt-cli-show | |
parent | 546dbfc82ad9ff0308b365bca3731a1118b1d251 (diff) |
various small additional tests and testcases
Usually they don't provide a lot in terms of what they test, but they
help in covering many lines from strictly anecdotal commands (stats,
moo) and error messages, so that stuff which really needs to be tested,
but isn't is better visible in coverage reports.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-cli-show')
-rwxr-xr-x | test/integration/test-apt-cli-show | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/integration/test-apt-cli-show b/test/integration/test-apt-cli-show index 4c8e134d6..930e591e0 100755 --- a/test/integration/test-apt-cli-show +++ b/test/integration/test-apt-cli-show @@ -36,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 |