Add facility to specify razor command when running tests.
This makes it easy to run under eg., valgrind as:
./details "libtool --mode=execute valgrind --leak-check=yes ../src/razor"
9 $razor list-files | grep -x "$1" > /dev/null
11 echo $1: Not in database >&2
14 if [ ! -e "$RAZOR_ROOT$1" ]; then
15 echo $1: Not in filesystem >&2
19 export RAZOR_ROOT=`mktemp -dt` || exit 1
21 export YUM_URL="file://localhost/`pwd`"
22 $razor import-yum || exit 1
23 $razor install zap || exit 1
24 $razor install --relocate /usr=/opt --relocate /etc=/opt/etc zsh || exit 1
25 check_file /etc/zsh.conf
26 check_file /usr/bin/zap
27 check_file /opt/bin/zip
28 check_file /opt/bin/zsh