diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-10 22:46:11 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-10 22:46:11 +0200 |
commit | d10eed826ad80b3ca624146cb77524f18ac706c0 (patch) | |
tree | 0847818a0b74a4c70a8c5014f5aabd12c3fa4251 /test | |
parent | 9ae5f36e46584f1f24c2e8fdf30d2754f92caf3e (diff) |
Added tests for pkg remove
Diffstat (limited to 'test')
-rwxr-xr-x | test/main | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -71,6 +71,21 @@ repeat 2 { pkg update } +echo "# pkg remove (not installed/nonexistent)" +! pkg remove suckage +! pkg remove rb + +echo "# pkg remove (ok)" +pkg remove ra + +repeat 2 { + echo "# pkg list" + stringcmp "core" "$(pkg list local)" + stringcmp "ra\nrb\nrc" "$(pkg list not-installed)" + stringcmp "core\nra\nrb\nrc" "$(pkg list remote)" + pkg update +} + rm -rf $test_pdir $test_proot $test_home print -P '%F{green} test passed%F{default}' |