summaryrefslogtreecommitdiff
path: root/gpsfake
Commit message (Collapse)AuthorAgeFilesLines
* Makes gpsfake -T take -S into account.Fred Wright2016-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | This makes it possible to view the "slow" as well as the normal WRITE_PAD values with gpsfake -T, without having to look at the source code. It adds a new GetDelay() function to fake.py, which returns the proper delay value, taking into account both the possible environment variable and the "slow" option. This is now used for all hree uses of WRITE_PAD. Because the environment override is now part of the function, the WRITE_PAD constant is no longer modified by the environment value, but instead reflects the platform default. TESTED: Ran the full set of regression tests, with both default and acceptably shortened WRITE_PAD. Also verified that a zero value causes trouble (OSX), and that adding -S to the zero value makes it work. Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Fixes gpsfake -v to use stderr instead of stdout.Fred Wright2016-02-291-1/+1
| | | | | | | TESTED: Ran a quick gpsfake -v with >/dev/null, and observed output. Signed-off-by: Jon Schlueter <jon.schlueter@gmail.com>
* Add more startup delay in gpsfake, and explain why.Eric S. Raymond2016-02-091-1/+5
| | | | | Part of a the isync patch series from Michael Brown <mbrown@fensystems.co.uk>, which failed to apply properly and had to be hand-atched a bit.
* Change Python hashbang lines to invoke 'python2'Eric S. Raymond2015-07-191-1/+1
| | | | | | We've learned that Ubuntu 15.10 will have python3 as default. The ugly transition gas befun; our only recourse is to hape that all our deployment targets have 'pyton2' do the right thing. Works on 14.10.
* gpsfake: pylint cleanup. Regression tests (using gpsfake) pass.Eric S. Raymond2015-02-221-1/+1
|
* gpsfake code fell out of sync with documentation. Fix this.Eric S. Raymond2015-02-131-1/+1
| | | | All regression tests pass.
* pylint cleanup in gpsfake for superfluous-parensJon Schlueter2015-02-131-21/+21
| | | | in python you don't need parens around values for if elseif statements
* more pep8 cleanup in gpsfake for whitespaceJon Schlueter2015-02-131-3/+6
| | | | whitespace around operators and before function delcarations
* pep8 cleanup in gpsfakeJon Schlueter2015-02-131-1/+1
| | | | use "is None" instead of ""== None"
* Split up imports in gpsfake and remove unusedJon Schlueter2015-02-131-2/+10
| | | | random was imported but never used
* Revert "Significantly speed up testing."Eric S. Raymond2015-02-131-4/+7
| | | | It creates a race condition.
* Significantly speed up testing.Eric S. Raymond2015-02-131-7/+4
| | | | | | A delay in gpsfake is replaced by a watch for acknowledgment. All regression tests pass.
* Fix inexpplicably corrupted Python code.Eric S. Raymond2015-02-131-2/+2
|
* Don't allocate a private port when cycling logs for client testing.Eric S. Raymond2015-02-131-0/+4
| | | | All regression tests pass.
* Change the way EOF is injected in hopes of beating a *BSD timing problem.Eric S. Raymond2015-02-111-1/+1
| | | | All regression tests pass.
* CLOSE_DELAY is gone. Test source termination is now deterministic.Eric S. Raymond2015-02-091-1/+1
| | | | All regression tests pass.
* In the test framework, use the bind-to-port-0 trick to get a random unused port.Eric S. Raymond2015-02-021-13/+1
| | | | | | This makes the -f option of gpsfake obsolete, and it has been removed. All regression tests pass.
* Open ttys with CLOCAL, following a suggestion by Hal Murray.Eric S. Raymond2015-02-021-1/+1
| | | | | | Also, zero in on shorter delays in the regression tests. All regression tests pass.
* Use %.3f for WRITE_PAD, because 0.004 is a typical value.Greg Troxel2015-01-271-1/+1
|
* Fix an erroneous format literal.Eric S. Raymond2015-01-271-1/+1
|
* Print sys.platform and platform.platform().Greg Troxel2015-01-251-1/+1
| | | | | They are different! This code printed one, and the if statement in gps/fake.py used the other.
* Dump platform ID and delay parameters before doing test runs.Eric S. Raymond2015-01-251-2/+5
|
* Add slow=yes option for regression tests in an attempt to avoid flakeouts.Eric S. Raymond2014-08-241-3/+6
|
* Documentation and TODO tweaks.Eric S. Raymond2013-11-221-1/+1
|
* Simplify the build. No logic changes.Eric S. Raymond2013-11-191-1/+7
|
* More splint and pylint cleanups.Eric S. Raymond2013-11-151-5/+5
| | | | All regression tests pass with pps=tru or pps=false, PPS is live.
* Fix a small but fatal typo.All regression tests pass.Eric S. Raymond2013-11-051-1/+1
|
* Test machinery improvements. raw-regress is now only partially broken.Eric S. Raymond2013-11-051-0/+3
|
* Improve gpsfake debugging.Eric S. Raymond2013-11-031-1/+4
|
* Enhance gpsfake so it can be used to test TCP sources.Eric S. Raymond2013-09-291-2/+7
|
* Magic-number elimination. Document Beat Bolli's assumptions.Eric S. Raymond2012-05-171-1/+6
| | | | All regression tests pass.
* dvancing the twirly baton only each 11th line, the wholeGary E. Miller2012-05-171-2/+3
| | | | | regress-driver run is sped up by 7% when run over SSH. Patch by: Beat Bolli <bbolli@ewanet.ch>
* Minor bug fix: make gpsfake -h work as it should.Eric S. Raymond2011-11-141-4/+4
|
* gpsfake is now part of the pychecker set.Eric S. Raymond2011-08-251-5/+5
|
* gpsfake doesn't require the signal module, remove unneeded importEric S. Raymond2011-08-251-1/+1
|
* Add -f option to gpsfake, removing a non-ortogonality in the behavior of -1.Eric S. Raymond2011-04-041-0/+1
| | | | Patch concept due to Gleb Smirnoff.
* Add a gpsfake option to set the listening port.Eric S. Raymond2011-02-131-1/+3
|
* Catch and display regression errors from malformed JSON.Eric S. Raymond2011-01-291-0/+3
|
* Rip out grubby code from a previous attempt to fix the multipacket problem.Eric S. Raymond2010-06-041-1/+0
| | | | All regression tests pass.
* Dead-code removal.Eric S. Raymond2010-05-061-5/+1
|
* Implement a -u switch to force the test framework to use UDP, not ptys.Eric S. Raymond2010-05-041-2/+5
| | | | | | The good news is that rgression tests all pass with this case and -u off. The bad news is that they fail with -u on. It looks like the switch forces some other bug, previously masked, into the open.
* Typo fix.Eric S. Raymond2010-04-291-1/+1
|
* The gpsfake.py module can broadcacst on UDP rather than using a pty.Eric S. Raymond2010-04-251-1/+1
| | | | This is a step towards making UDP data sources work.
* Give gpsfake a way to prepare gpsd for graceful shutdown.Eric S. Raymond2010-04-201-0/+1
|
* Use setup.py to handle the Python shebangs.Bernd Zeimetz2010-04-201-0/+208
|
* Substitute $PYTHON instead of assuming 'python' is python. Greg Troxel2009-12-021-194/+0
| | | | Now 'make check' runs on NetbSD, and $(prefix)/bin/gpsfake works.
* The NMEA-dump flags is now properly separated from the raw flag. Eric S. Raymond2009-09-181-1/+1
| | | | | In new protocol, raw=1 dumps hex; NMEA dumping is separate. All regression tests psss.
* Fix a race condition in the test framework.Eric S. Raymond2009-08-261-2/+7
|
* This may fix the race window in the regression tests.Eric S. Raymond2009-08-261-2/+2
|
* Give gpsfake a proper main sequence.Eric S. Raymond2009-08-261-39/+41
|