tazpkg annotate 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
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 #03'
al@884 8 colorize 033 "$(longline "Don't install already installed package without --forced option.")"
al@884 9 newline
al@884 10
al@884 11 ########
al@884 12 tazpkg --root=$ROOT --nodeps -gi nano 2>&1 | tee /tmp/test1
al@884 13 ########
al@884 14
al@884 15 if ! fgrep -q -e '--forced' /tmp/test1; then
al@884 16 colorize 31 "ERROR. TazPkg should write warning. Exit test"
al@884 17 rm /tmp/test1
al@884 18 exit 1
al@884 19 fi
al@884 20 rm /tmp/test1
al@884 21
al@884 22 footer "$(colorize 32 'Test #03 passed')"
al@884 23 exit 0