Commit c486b3b4 authored by Natanael Copa's avatar Natanael Copa

allow override sharedir for testing

Aloow overrid sharedir with global ABUILD_SHAREDIR so we test the local
functions.sh instead of a system installed functions.sh
parent f3dc428e
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
......@@ -8,7 +8,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
abuild_path=$(readlink -f $0)
git=$(command -v git) || git=true
......
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
......@@ -3,7 +3,7 @@
program_version=@VERSION@
sysconfdir=@sysconfdir@
abuildrepo=/var/lib/buildlab/result
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
BUILD_BASE="build-base"
SUDO=${SUDO:-"sudo"}
......
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
......@@ -7,7 +7,7 @@
#
program_version=@VERSION@
sharedir=@sharedir@
sharedir=${ABUILD_SHAREDIR:-@sharedir@}
if ! [ -f "$sharedir/functions.sh" ]; then
echo "$sharedir/functions.sh: not found" >&2
......
setup() {
export ABUILD=../abuild
export ABUILD_SHAREDIR=$PWD/..
}
@test "help text" {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment