Add a test for relocations that are valid paths but would be invalid URIs if mis-interpreted
5 razor=`pwd`/../src/razor
9 (cd /tmp; $razor list-files) | grep -F -x "$1" > /dev/null
11 echo $1: Not in database >&2
12 (cd /tmp; $razor list-files) >&2
15 if [ ! -e "$tmpdir$1" ]; then
16 echo $1: Not in filesystem >&2
21 tmpdir=`mktemp --directory --tmpdir=/tmp` || exit 1
22 export RAZOR_ROOT="`echo $tmpdir | sed -e 's&/tmp/&file:&'`"
23 (cd /tmp; $razor init) || exit 1
24 export YUM_URL="file:`pwd`/base"
25 (cd /tmp; $razor import-yum) || exit 1
26 (cd /tmp; $razor install zap) || exit 1
27 (cd /tmp; $razor install --relocate /usr=/opt --relocate /etc=/opt/etc zsh) || exit 1
28 check_file /etc/zsh.conf
29 check_file /usr/bin/zap
30 check_file /opt/bin/zip
31 check_file /opt/bin/zsh