From f4b484b1ccfe92a610616ec927a6f63a6ebefc3c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 09 Sep 2012 15:21:41 -0400 Subject: Fix paths in tests. --- (limited to 'tests') 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 . +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 -- cgit v0.9.1