tazpkg view tests/test04 @ rev 898

Module 'get': fix temp dir; module 'find-depends': faster search, add debug messages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Dec 29 22:00:47 2015 +0200 (2015-12-29)
parents
children
line source
1 #!/bin/sh
2 #
3 . /lib/libtaz.sh
4 check_root
5 ROOT='/tmp/test'
7 title 'Test #04'
8 colorize 033 "$(longline "Remove package.")"
9 newline
11 ########
12 echo y | tazpkg --root=$ROOT -r nano
13 ########
15 installed="$(ls $ROOT/var/lib/tazpkg/installed)"
16 if [ -n "$installed" ]; then
17 colorize 31 "ERROR. Expected package 'nano' removed. Given: '$installed' Exit test"
18 exit 1
19 fi
21 footer "$(colorize 32 'Test #04 passed')"
22 exit 0