test/mult-install.sh
changeset 402 6ed7abe8e66b
parent 387 ef9237601f24
child 456 bae5adee8c8c
     1.1 --- a/test/mult-install.sh	Thu Oct 01 19:54:03 2009 +0100
     1.2 +++ b/test/mult-install.sh	Thu Aug 25 14:22:52 2011 +0100
     1.3 @@ -63,6 +63,14 @@
     1.4      fi
     1.5      fs_check_no_file $1
     1.6  }
     1.7 +check_install_count()
     1.8 +{
     1.9 +    count=`../src/razor list "$1" | wc -l`
    1.10 +    if [ "$count" != "$2" ]; then
    1.11 +	echo $1: Install count $count, should be $2 >&2
    1.12 +	exit 1
    1.13 +    fi
    1.14 +}
    1.15  export RAZOR_ROOT=`mktemp -dt` || exit 1
    1.16  ../src/razor init || exit 1
    1.17  export YUM_URL="file://localhost/`pwd`"
    1.18 @@ -71,5 +79,7 @@
    1.19  fs_check_file_contents /opt/bin/zip zip-1-1
    1.20  fs_check_file /opt/var/lib/zip/data.zap
    1.21  ../src/razor install --relocate /usr=/opt zip || exit 1
    1.22 +check_install_count zip 2
    1.23  ../src/razor install --relocate /usr=/opt zip || exit 1
    1.24 +check_install_count zip 3
    1.25  rm -rf "$RAZOR_ROOT"