1.1 --- a/test/relocate.sh Thu Jan 22 22:54:45 2009 +0000
1.2 +++ b/test/relocate.sh Sat Jun 11 17:56:48 2016 +0100
1.3 @@ -1,7 +1,12 @@
1.4 #!/bin/sh
1.5 +if [ $# -gt 0 ]; then
1.6 + razor="$1"
1.7 +else
1.8 + razor=../src/razor
1.9 +fi
1.10 check_file()
1.11 {
1.12 - ../src/razor list-files | grep -x "$1" > /dev/null
1.13 + $razor list-files | grep -x "$1" > /dev/null
1.14 if [ $? -ne 0 ]; then
1.15 echo $1: Not in database >&2
1.16 exit 1
1.17 @@ -12,11 +17,11 @@
1.18 fi
1.19 }
1.20 export RAZOR_ROOT=`mktemp -dt` || exit 1
1.21 -../src/razor init || exit 1
1.22 +$razor init || exit 1
1.23 export YUM_URL="file://localhost/`pwd`"
1.24 -../src/razor import-yum || exit 1
1.25 -../src/razor install zap || exit 1
1.26 -../src/razor install --relocate /usr=/opt --relocate /etc=/opt/etc zsh || exit 1
1.27 +$razor import-yum || exit 1
1.28 +$razor install zap || exit 1
1.29 +$razor install --relocate /usr=/opt --relocate /etc=/opt/etc zsh || exit 1
1.30 check_file /etc/zsh.conf
1.31 check_file /usr/bin/zap
1.32 check_file /opt/bin/zip