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