Whamcloud - gitweb
libss: Fix "make check" test case to work portably
authorTheodore Ts'o <tytso@mit.edu>
Sun, 16 Dec 2007 03:09:48 +0000 (22:09 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 16 Dec 2007 03:09:48 +0000 (22:09 -0500)
The "make check" test in lib/ss would fail if '.' is not in the user's
PATH, and if the libss shared library had not yet been installed yet.

Addresses-Sourceforge-Bug: #1848974

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ss/Makefile.in

index 276acc3..aa4f94b 100644 (file)
@@ -170,7 +170,7 @@ test_ss: test_ss.o test_cmd.o $(LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR)
 
 check:: all test_ss
        @echo " RUN TEST test_ss"
-       @(test_ss -f $(srcdir)/test_script >& test_out; exit 0)
+       @(LD_LIBRARY_PATH=$(LIB) DYLD_LIBRARY_PATH=$(LIB) ./test_ss -f $(srcdir)/test_script >& test_out; exit 0)
        @if ! diff test_out $(srcdir)/test_script_expected > test.diff; then \
                echo "Regression test for ss library failed!"; exit 1 ; fi