tazpkg annotate tests/test02 @ rev 929

modules/install and modules/remove: auto-update /ets/filesystems for the FS Kernel modules
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 01 23:01:52 2017 +0200 (2017-01-01)
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 #02'
al@884 8 colorize 033 "$(longline "Install package without dependencies.")"
al@884 9 newline
al@884 10
al@884 11 ########
al@884 12 tazpkg --root=$ROOT --nodeps -gi nano
al@884 13 ########
al@884 14
al@884 15 installed="$(ls $ROOT/var/lib/tazpkg/installed)"
al@884 16 if [ "$installed" != 'nano' ]; then
al@884 17 colorize 31 "ERROR. Expected package 'nano' installed. Given: '$installed' Exit test"
al@884 18 exit 1
al@884 19 fi
al@884 20
al@884 21 footer "$(colorize 32 'Test #02 passed')"
al@884 22 exit 0