pkgsrc-ng/devel/deforaos-libsystem/patches/patch-tests_tests.sh
2016-01-21 23:41:46 +01:00

26 lines
720 B
Bash

$NetBSD: patch-tests_tests.sh,v 1.3 2015/05/20 23:08:37 khorben Exp $
Avoid building the (experimental) Python binding.
Use LD_LIBRARY_PATH to find pre-installed libraries.
--- tests/tests.sh.orig 2015-05-10 22:00:47.000000000 +0000
+++ tests/tests.sh
@@ -42,7 +42,7 @@ _run()
echo -n "$test:" 1>&2
(echo
echo "Testing: $test" "$@"
- "$OBJDIR$test" "$@") 2>&1
+ env LD_LIBRARY_PATH="../src" "$OBJDIR$test" "$@") 2>&1
res=$?
if [ $res -ne 0 ]; then
echo "Test: $test$sep$@: FAIL (error $res)"
@@ -105,7 +105,7 @@ _test "includes"
_test "string"
_test "variable"
echo "Expected failures:" 1>&2
-_fail "python.sh"
+#_fail "python.sh"
if [ -n "$FAILED" ]; then
echo "Failed tests:$FAILED" 1>&2
exit 2