tazpkg view tests/test05 @ rev 884
Module 'check': fix to work with $root; start to add tests
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 05 16:14:14 2015 +0200 (2015-12-05) |
parents | |
children |
line source
1 #!/bin/sh
2 #
3 . /lib/libtaz.sh
4 check_root
5 ROOT='/tmp/test'
7 title 'Test #05'
8 colorize 033 "$(longline "Test equivalent package rule")"
9 newline
11 ########
12 tazpkg --root=$ROOT --nodeps -gi pam
13 tazpkg --root=$ROOT --nodeps -gi dropbear
14 tazpkg --root=$ROOT -l
15 ########
17 installeddropbear="$(ls $ROOT/var/lib/tazpkg/installed | fgrep dropbear)"
19 if [ "$installeddropbear" != 'dropbear-pam' ]; then
20 colorize 31 "ERROR. Expected package 'dropbear-pam' installed. Given: '$installeddropbear' Exit test"
21 exit 1
22 fi
24 footer "$(colorize 32 'Test #05 passed')"
25 exit 0