tazpkg annotate tests/test05 @ rev 903
Tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 30 01:52:24 2016 +0300 (2016-03-30) |
parents | |
children |
rev | line source |
---|---|
al@884 | 1 #!/bin/sh |
al@884 | 2 # |
al@884 | 3 . /lib/libtaz.sh |
al@884 | 4 check_root |
al@884 | 5 ROOT='/tmp/test' |
al@884 | 6 |
al@884 | 7 title 'Test #05' |
al@884 | 8 colorize 033 "$(longline "Test equivalent package rule")" |
al@884 | 9 newline |
al@884 | 10 |
al@884 | 11 ######## |
al@884 | 12 tazpkg --root=$ROOT --nodeps -gi pam |
al@884 | 13 tazpkg --root=$ROOT --nodeps -gi dropbear |
al@884 | 14 tazpkg --root=$ROOT -l |
al@884 | 15 ######## |
al@884 | 16 |
al@884 | 17 installeddropbear="$(ls $ROOT/var/lib/tazpkg/installed | fgrep dropbear)" |
al@884 | 18 |
al@884 | 19 if [ "$installeddropbear" != 'dropbear-pam' ]; then |
al@884 | 20 colorize 31 "ERROR. Expected package 'dropbear-pam' installed. Given: '$installeddropbear' Exit test" |
al@884 | 21 exit 1 |
al@884 | 22 fi |
al@884 | 23 |
al@884 | 24 footer "$(colorize 32 'Test #05 passed')" |
al@884 | 25 exit 0 |