[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Running regression tests on Ubuntu 14.04
From: |
Gary E. Miller |
Subject: |
Re: Running regression tests on Ubuntu 14.04 |
Date: |
Wed, 29 Apr 2020 18:01:42 -0700 |
Yo Gregory!
On Wed, 29 Apr 2020 17:41:02 -0700
Gregory Fong <address@hidden> wrote:
> Hello,
Long time no chat. Welcome back.
I agree with your patch, and analysis.
The packet.py is very new, never been in a released version. It is part
of the move to pure python, so not well tested yet.
Patch applied to git head. Please test.
James did the new pure python. I'll ask his opinion.
The gpsd python 2 support is going to be very hard to maintain, but
I'll try as long as I can, and get good help like yours.
>
> 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
>
RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
address@hidden Tel:+1 541 382 8588
Veritas liberabit vos. -- Quid est veritas?
"If you can't measure it, you can't improve it." - Lord Kelvin
pgpfeCTYqGVTv.pgp
Description: OpenPGP digital signature
- Running regression tests on Ubuntu 14.04, Gregory Fong, 2020/04/29
- Re: Running regression tests on Ubuntu 14.04,
Gary E. Miller <=
- 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
Re: Running regression tests on Ubuntu 14.04, John Ackermann N8UR, 2020/04/29