tazpkg diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/test05 Wed Mar 30 01:52:24 2016 +0300 1.3 @@ -0,0 +1,25 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +. /lib/libtaz.sh 1.7 +check_root 1.8 +ROOT='/tmp/test' 1.9 + 1.10 +title 'Test #05' 1.11 +colorize 033 "$(longline "Test equivalent package rule")" 1.12 +newline 1.13 + 1.14 +######## 1.15 +tazpkg --root=$ROOT --nodeps -gi pam 1.16 +tazpkg --root=$ROOT --nodeps -gi dropbear 1.17 +tazpkg --root=$ROOT -l 1.18 +######## 1.19 + 1.20 +installeddropbear="$(ls $ROOT/var/lib/tazpkg/installed | fgrep dropbear)" 1.21 + 1.22 +if [ "$installeddropbear" != 'dropbear-pam' ]; then 1.23 + colorize 31 "ERROR. Expected package 'dropbear-pam' installed. Given: '$installeddropbear' Exit test" 1.24 + exit 1 1.25 +fi 1.26 + 1.27 +footer "$(colorize 32 'Test #05 passed')" 1.28 +exit 0