summaryrefslogtreecommitdiff
path: root/test_packet.c
Commit message (Collapse)AuthorAgeFilesLines
* SPDXify the licerse references.Eric S. Raymond2018-03-081-1/+1
|
* test_packet: fix format %2zi -> %2ti.Gary E. Miller2017-07-261-3/+3
| | | | Subtracting two pointers is a ptr_diff_t, not a size_t.
* Autodetect and configure Spectratime iSync deviceMichael Brown2016-02-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Spectratime iSync devices comprise a u-blox 6 attached to a separate iSync microcontroller which drives a rubidium oscillator. The oscillator status messages may appear in the middle of the underlying GPS messages; these are handled via the "stashed partial message" support. This patch modifies the u-blox driver's parse_input() method to delegate NMEA messages to generic_parse_input() rather than nmea_parse(). This is done to allow the iSync trigger string to be detected after reactivation despite the "stickiness" of the u-blox driver. The initial delay time in gpsfake is extended from 1.0 seconds to 1.4 seconds to allow for the additional two 200ms delays introduced by the calls to gpsd_set_speed() in isync_detect(). The iSync driver legitimately uses both a probe_detect() method and a trigger string. The guard against such drivers is therefore removed from test_packet.c. The regression test data includes one artificially induced packet collision (where an oscillator status message appears in the middle of a GPS message), since this corner case is difficult to trigger deliberately in normal operation. Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
* Add support for stashed partial messagesMichael Brown2016-02-091-0/+14
| | | | | | | | | | The Spectratime iSync GRClok and LNRClok devices generate NMEA-format status packets, which report the status of the GPS-disciplined rubidium oscillator. These packets are inserted randomly into the middle of packets from the embedded u-Blox GPS. Add support for a stash buffer, used to hold the initial portion of interrupted NMEA packets.
* Retire splint from our set of static analyzers.Eric S. Raymond2015-03-301-14/+3
| | | | | | | | | | | | | | | | | | | The proximate cause was that we've been seing emission of error messages that were randomly and disturbingly variable across different environments - notably Raspbian and Gentoo splint gave nontrivially different results than Ubuntu 14.10 splint. And this was *not* due to Ubuntu patches! A pristine splint built from the 3.1.2 tarball on Ubuntu didn't match the Raspbian and Gentoo results either. But this has been coming for a while. Easy access to more modern static analyzers such as coverity, scan-build and cppcheck has been decreasing the utility of splint, which is unmaintained and somewhat buggy and not easy to use. Only file not cleaned is ppsthread.c, because Gary has been working on it during this cleanup. All regression tests pass. PPS observed live on GR601-W.
* fixing broken scons minimal=on test_packetJon Schlueter2015-03-251-2/+2
| | | | Missing guard on RECONFIGURE_ENABLE
* splint/cppcheck cleanuo after the gpsd_report change.Eric S. Raymond2014-08-271-3/+5
| | | | All regression tests pass.
* Reverse linkage of gpsd_report() is abolished. All regression tests pass.Eric S. Raymond2014-08-271-17/+0
| | | | Some cleanup and testing is still required.
* Introduce struct errout_t to encapsulate error-reporting hooks.Eric S. Raymond2014-08-271-16/+16
| | | | | | A major step towards eliminating reverse linkage. All regression tests pass.
* Follow throughon a previous name change. No logic changes.Eric S. Raymond2014-08-271-2/+2
| | | | All regression tests pass.
* Structure member name change: packet -> lexer. No logic changes.Eric S. Raymond2014-08-271-2/+2
| | | | All regression tests pass.
* Eliminate reverse linkage of gpsd_write. All regression tests pass.Eric S. Raymond2014-08-261-8/+0
|
* splint cleanup. Regression tests pass and PPS live-tests correctly.Eric S. Raymond2013-10-291-2/+2
|
* Cleanup fixes. There was a typo in the last change to the Zodiac driver.Eric S. Raymond2013-10-261-1/+0
| | | | All regression tests pass.
* More efficiebt sticky-flagging.Eric S. Raymond2013-10-151-2/+2
|
* First cut at salience test.Eric S. Raymond2013-10-151-9/+16
|
* Enrich the driver method listing. Shorten an overly long name.Eric S. Raymond2013-10-121-0/+6
|
* Add the driver method consistency check to normal tests.Eric S. Raymond2013-10-121-1/+21
|
* Remove some driver methods that should not have been included.Eric S. Raymond2013-10-121-0/+12
|
* Add a driver property lister to test_packet.c.Eric S. Raymond2013-10-121-1/+29
|
* We can now monitor low-level string sends through gpsmon.Eric S. Raymond2013-10-041-0/+8
| | | | Now we'll know exactly what's being sent on a UBX mode change.
* Change gpsd_report to no longer use a global. All regression tests pass.Eric S. Raymond2013-09-291-2/+2
| | | | | | | | This is a large, ugly change. But without it we can't troubleshoot the ICP/IP-source initialization bug properly - colliding definitions of gpsd_report() were interfering with error reporting early in gpsd runs. More cleanup work remains to be done, but at least this is working.
* Nuke trailing whitespace in C source.Eric S. Raymond2012-09-071-42/+42
|
* Replace exit({0,1}) with exit(EXIT_{SUCCESS,FAILURE})Eric S. Raymond2012-09-071-2/+2
| | | | Note there are some exit(2) instances we bneed to decide what to do with.
* Elimination of gpsd_hexdump_level.Eric S. Raymond2011-06-171-0/+2
| | | | The few gpsd_hexdump() calls left have explicit guards.
* Dead code removal. (This has been replaced by the -e option.)Eric S. Raymond2011-03-041-18/+1
|
* Be more specific in two cites.Eric S. Raymond2011-03-031-2/+2
|
* Bug fixes for RTCM3 decoding. All regression tests pass.Eric S. Raymond2011-03-021-1/+17
| | | | | And the first actually successful decode of a known-good RTCM3 packet, a type 1029.
* Sigh, seems a flush is required.Eric S. Raymond2011-03-021-0/+1
|
* Add a feature and a minor fix to the packet-sniffer tester.Eric S. Raymond2011-03-021-2/+6
|
* More deheader testing. All regression tests pass.Eric S. Raymond2011-01-131-1/+0
|
* More deheader testing.Eric S. Raymond2011-01-121-1/+5
|
* Unused-header removals by deheader. All regression tests pass.Eric S. Raymond2010-12-011-5/+0
|
* Reindent. All regression tests pass.Eric S. Raymond2010-04-261-7/+8
| | | | | Most of the bulk of this one is the xgpsspeed code, which was not formerly incldecd in reindenting.
* Add a regression test for correct behavior on EOF with empty buffer.Eric S. Raymond2010-04-181-7/+49
|
* Reindent the test programs. All regression tests pass.Eric S. Raymond2010-04-141-19/+26
|
* Ensure that the ISGPS state is always reinitialized on each packet_test() call.Eric S. Raymond2010-03-311-2/+0
| | | | All regression tests pass.
* Factor out a little function to initiaslize the packet tester properly.Eric S. Raymond2010-03-311-0/+1
|
* Vanish away Id and Rev $ keywords, git won't expand them to anything useful.Eric S. Raymond2010-03-131-2/+1
|
* Eliminate more Subversion tracks...Eric S. Raymond2010-03-131-4/+1
| | | | ...converting where appropriate to git references.
* Copyright stamps everywhere. No code changes.Eric S. Raymond2010-03-111-1/+5
|
* Include the whole config file in gpsd.h.Eric S. Raymond2009-11-201-1/+1
| | | | | | | That is, instead of sectioning out two little config defines and putting them in. This makes gpsd.h self-copntained (e.g. in case it gets installed as a library header) and means we can get rid of most inclusions of it.
* repository beautification, part 2:Chris Kuethe2009-03-021-0/+301
rename the test programs to test_$(subsystem).c