[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Running regression tests on Ubuntu 14.04
From: |
Gregory Fong |
Subject: |
Running regression tests on Ubuntu 14.04 |
Date: |
Wed, 29 Apr 2020 17:41:02 -0700 |
Hello,
I noticed that running the regression tests on Ubuntu 14.04 no longer
seems to work from top of current master branch. The following fixes
the issue for me, but it doesn't feel like the "correct" solution:
--------8<--------
$ git diff
diff --git a/gps/packet.py.in b/gps/packet.py.in
index fb4360b3f..77cd6ae24 100644
--- a/gps/packet.py.in
+++ b/gps/packet.py.in
@@ -44,7 +44,7 @@ _cwd = os.getcwd()
if 'gpsd' in _cwd.split('/'):
_path = _cwd + '/'
else:
- _path = ''
+ _path = './'
# _path = ['@libdir@']
try:
--------8<--------
I haven't looked deeply into it, but suspect what is happening is that
the way it's written currently is dependent on library search behavior
of newer Python versions, and that ctypes in Python 2.7.6 doesn't
include the current directory in the load path.
To test this hypothesis, I've tried a couple of things.
This works:
LD_LIBRARY_PATH=. ./regress-driver test/daemon/passthrough.log
This does not:
scons check
It fails with:
Failed to load the library: libgpsdpacket.so.27.0.0
scons: *** [python-versions] Error 1
scons: building terminated because of errors.
Best regards,
Gregory
- Running regression tests on Ubuntu 14.04,
Gregory Fong <=
- Re: Running regression tests on Ubuntu 14.04, Gary E. Miller, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, Gary E. Miller, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, Gregory Fong, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, Fred Wright, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, James Browning, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, Fred Wright, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04, John Ackermann, 2020/04/30
- Re: Running regression tests on Ubuntu 14.04, James Browning, 2020/04/30
- Re: Running regression tests on Ubuntu 14.04, Gary E. Miller, 2020/04/30
- Re: Running regression tests on Ubuntu 14.04, Gary E. Miller, 2020/04/30