tazpkg view tests/test04 @ rev 955

modules/search: allow search file with dash at start: tazpkg -sf "-spi"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 22 00:02:54 2017 +0200 (2017-12-22)
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