summaryrefslogtreecommitdiff
path: root/gpsfake.py
Commit message (Collapse)AuthorAgeFilesLines
* Move the framework for faking a GPS so it's a submodule of the gps package.Eric S. Raymond2009-12-171-530/+0
|
* Put Python extension modules under "gps.".Eric S. Raymond2009-12-151-6/+6
| | | | | | | | | The two Python extension modules used for our distribution test clients, gpslib and gpspacket, are now parts of an importable gps package. This change is needed so xgps2 (which is about to replace xgps) can depend only on being able to do "import gps". All regression tests pass.
* Remove unused method with a dangerous lockstep assumption.Eric S. Raymond2009-12-101-9/+0
|
* Make gpsfake.py use PACKET_SET properly. Eric S. Raymond2009-12-101-1/+2
| | | | | Not hugely useful yet since gps.py always sets it. All regression tests pass.
* Disable unnecessary logging, ix a typo.Eric S. Raymond2009-12-071-3/+7
|
* A gpsfake testload can now include magic comments inducing delays.Eric S. Raymond2009-12-061-0/+5
| | | | | (We'll use this to verify the gps_waiting() works as designed).
* Better description of new Python API. Eric S. Raymond2009-09-241-2/+3
| | | | | query() is really gone; add a resulting to-do item. Codebase splints clean, all regression tests pass.
* Fix a race condition in the test framework.Eric S. Raymond2009-08-261-4/+8
|
* Python interface needs to track that last change, too.Eric S. Raymond2009-03-271-3/+3
|
* Tightening up the timing on the regressions a bit doesn't break them.Eric S. Raymond2009-01-211-2/+2
|
* Another try at defeating regression-timing bug.Eric S. Raymond2009-01-181-2/+2
| | | | | | | | | | This turns out to be at least a triple-point failure. Previous changes reduced the frequency and made it less random, but it appears gpsd has an unavoidable race condition when feeding through PTYs that can lose the last input packet. Workaround: compare test output with both the checkfile and the checkfile with its last line removed.
* Documentation fix.Eric S. Raymond2009-01-181-4/+1
|
* Forcing each pty to drain before closing appears to be helpful.Eric S. Raymond2009-01-161-0/+5
|
* Increasing the close timeout to 3 appears to banish timing errors.Eric S. Raymond2009-01-161-3/+3
|
* Make gpsfake use the C packet-getter...Eric S. Raymond2009-01-121-145/+28
| | | | | ...so it will no longer need to have its own duplicate knowledge of packet types wired in.
* Instrument gpsfake, in an attempt to track down an apparent bug in this module.Eric S. Raymond2009-01-121-8/+10
|
* More instrumentation.Eric S. Raymond2009-01-121-2/+5
|
* Beef up instrumentation a little.Eric S. Raymond2009-01-121-2/+2
|
* bzed's buffering fix makes it possible to cut the write padding a lot.Eric S. Raymond2009-01-121-1/+1
|
* Add some instrumentation.Eric S. Raymond2009-01-111-0/+3
|
* Remove a layer of code that was unecessary... Eric S. Raymond2009-01-101-3/+2
| | | | ...attacking the timing problems with the regression tests.
* Fixing broken identation as '\t' != ' 'Bernd Zeimetz2008-12-311-11/+11
|
* Ignore comments in NMEA test loads.Eric S. Raymond2008-12-311-1/+3
|
* I hade WRITE_PAD set too low, alas.Eric S. Raymond2008-12-311-1/+1
| | | | This caused the check logs to be regenerated incorrectly.
* Backing down to Python 2.4...Eric S. Raymond2008-12-301-1/+1
| | | | | ...to evade a hang bug in gpdfake, seems to require that WRITE_PAD be raised again.
* The fix from 15 Jul ("Bugs can lurk indefinitely in the damnedest places.")...Eric S. Raymond2008-12-301-1/+1
| | | | | ...makes it possible to run the test suite with much less padding than before.
* teach gpsfake how to play back itrax logs too...Chris Kuethe2007-12-281-0/+17
|
* This change will make gpsfake less fussy about trailing \n on binary logs.Eric S. Raymond2007-12-281-1/+3
| | | | It should enable the UBX log(s) to be read.
* An attempt at ubx support in gpsfake.Eric S. Raymond2007-12-281-0/+14
|
* String typo fix in bzed's code.Eric S. Raymond2007-12-201-1/+1
|
* Better path handling for gpsfake (patch by bzed).Eric S. Raymond2007-12-191-1/+14
|
* Sanity-check the Python modules with pychecker.Eric S. Raymond2007-12-141-16/+16
|
* Improvements to the test machinery, and another test.Eric S. Raymond2007-12-131-7/+10
|
* Portability tweaks.Eric S. Raymond2007-12-101-8/+11
|
* Avoid the regression hang on OpenBSD.Eric S. Raymond2007-12-101-11/+15
|
* Replace tcflush(..., TCIFLUSH) with ioctl(..., FIONREAD, ...)/read()...Eric S. Raymond2007-12-101-2/+11
| | | | | ...in the Python monitor class, as OpenBSD ptys apparently don't honor TCIFLUSH. The symptom is that the regression tests hang.
* Add more write padding to banish some fluky test failures.Eric S. Raymond2007-12-101-2/+6
|
* Diego Burge's driver builds, but it messes up some regression tests...Eric S. Raymond2006-12-151-0/+12
| | | | ...(notably the TSIP ones). There's a conflict...
* Add a new regression test, speed up all existing regression tests.Eric S. Raymond2006-12-121-1/+1
|
* This patch solve the OpenBSD TIOCDRAIN problem.Eric S. Raymond2006-12-071-4/+6
| | | | All regression tests pass under Linux.
* Change gpsfake to flush data written from gpsd before each feed. Eric S. Raymond2006-12-071-1/+8
| | | | | This may avoid hangs on OpenBSD; seems tcdrain() can hang until somebody actually reads the data on that system.
* Reintroduce line buffering in gps.py.Eric S. Raymond2006-12-061-1/+5
| | | | | Make gpsfake.py do realistic delays so that neither the pty buffer nor gpsd's own internal buffer gerts spammed.
* Eliminate threading from gpsfake.py.Eric S. Raymond2006-12-061-151/+128
| | | | | | | | | The TestSession class now schedules events itself. As a bonus, the new code is simpler and doesn't require system-dependent primitives that have to be implemented with /proc or fuser. There actually still is a threaded mode, untested, for use with valgrind-audit. But gpsfake doesn't need it.
* Checkpoint of the incomplete and half-tested support for setting serial...Eric S. Raymond2006-12-051-4/+36
| | | | | ...parameters in a test load. I'm checking it in ths way because it's time to try eliminating threads from gpsfake.py. The bugs are just too severe.
* Attempt to avoid an occasional race condition in gpsfake.Eric S. Raymond2006-12-051-0/+6
|
* Work around a potential race condition...Eric S. Raymond2006-12-051-3/+4
| | | | | ...when gpsfake tries to read a PID file that the daemon is not finished writing yet.
* Have gpsfake set VMIN the same way serial.c does.Eric S. Raymond2006-12-051-0/+1
| | | | All regression tests pass.
* Modified the gpsfake.py code to set serial-device modes...Eric S. Raymond2006-12-051-10/+22
| | | | | | | ...so that it does the same things as serial.c (in fact it's a line-by-line translation). All regression tests pass.
* Fix a comment.Eric S. Raymond2006-12-051-1/+1
|
* lsof is nasty. fstat is the way to go.Chris Kuethe2006-12-051-2/+2
|