test/lua.sh
changeset 460 b8638c3c7eee
parent 352 4866573c6944
child 475 008c75a5e08d
     1.1 --- a/test/lua.sh	Thu Feb 05 22:43:29 2009 +0000
     1.2 +++ b/test/lua.sh	Wed Oct 22 12:09:47 2014 +0100
     1.3 @@ -1,4 +1,9 @@
     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_filesystem()
    1.11  {
    1.12      if [ ! -e "$RAZOR_ROOT$1" ]; then 
    1.13 @@ -16,10 +21,10 @@
    1.14      check_filesystem "$1"
    1.15  }
    1.16  export RAZOR_ROOT=`mktemp -dt` || exit 1
    1.17 -../src/razor init || exit 1
    1.18 +$razor init || exit 1
    1.19  export YUM_URL="file://localhost/`pwd`"
    1.20 -../src/razor import-yum || exit 1
    1.21 -../src/razor install filesystem || exit 1
    1.22 +$razor import-yum || exit 1
    1.23 +$razor install filesystem || exit 1
    1.24  check_file /etc
    1.25  check_file /usr/bin
    1.26  check_file /usr/lib