tazpkg view tests/test02 @ 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 #02'
8 colorize 033 "$(longline "Install package without dependencies.")"
9 newline
11 ########
12 tazpkg --root=$ROOT --nodeps -gi nano
13 ########
15 installed="$(ls $ROOT/var/lib/tazpkg/installed)"
16 if [ "$installed" != 'nano' ]; then
17 colorize 31 "ERROR. Expected package 'nano' installed. Given: '$installed' Exit test"
18 exit 1
19 fi
21 footer "$(colorize 32 'Test #02 passed')"
22 exit 0