From d10eed826ad80b3ca624146cb77524f18ac706c0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 10 Apr 2009 22:46:11 +0200 Subject: Added tests for pkg remove --- test/main | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/main b/test/main index 0938970..6f7766c 100755 --- a/test/main +++ b/test/main @@ -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}' -- cgit v1.2.3