tazpkg diff tests/test03 @ rev 976

misc typos
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 09 12:03:43 2021 +0000 (2021-11-09)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/test03	Tue Nov 09 12:03:43 2021 +0000
     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