tazpkg diff tests/test03 @ rev 945
modules/install: equivalent_pkg(): fix for --cookmode and --local
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 26 16:18:57 2017 +0300 (2017-05-26) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/test03 Fri May 26 16:18:57 2017 +0300 1.3 @@ -0,0 +1,23 @@ 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 #03' 1.11 +colorize 033 "$(longline "Don't install already installed package without --forced option.")" 1.12 +newline 1.13 + 1.14 +######## 1.15 +tazpkg --root=$ROOT --nodeps -gi nano 2>&1 | tee /tmp/test1 1.16 +######## 1.17 + 1.18 +if ! fgrep -q -e '--forced' /tmp/test1; then 1.19 + colorize 31 "ERROR. TazPkg should write warning. Exit test" 1.20 + rm /tmp/test1 1.21 + exit 1 1.22 +fi 1.23 +rm /tmp/test1 1.24 + 1.25 +footer "$(colorize 32 'Test #03 passed')" 1.26 +exit 0