summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.in4
-rw-r--r--tests/common.sh6
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 5c03a37..401cbd8 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -29,5 +29,5 @@ TESTS =
test: $(TESTS)
$(TESTS):
- @printf ' SH tests/%s.sh\n' '$@'
- @DESTDIR='$(DESTDIR)' $(SH) 'tests/$@.sh'
+ @printf ' SH %s.sh\n' '$@'
+ @$(SH) '$@.sh'
diff --git a/tests/common.sh b/tests/common.sh
index 55334e6..991566f 100644
--- a/tests/common.sh
+++ b/tests/common.sh
@@ -17,9 +17,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+BUILDDIR="${PWD}/.."
+
# The "common" module is used by all library modules.
# We have to manually load the "common" module so we can use it in ob_use.
-. "${DESTDIR}/lib/common.sm"
+. "${BUILDDIR}/lib/common.sm"
ob_use()
{
@@ -31,7 +33,7 @@ ob_use()
return $(_ob_return 125)
fi
- _obu_module="${DESTDIR}/lib/${_obu_module}.sm"
+ _obu_module="${BUILDDIR}/lib/${_obu_module}.sm"
if [ -r "${_obu_module}" ]; then
. "${_obu_module}"
else