diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-25 15:04:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-25 15:04:32 +0000 |
commit | b67d76fe5e0674b9496eaa28066b944406f1c1f0 (patch) | |
tree | d27f5336ae2e13a2ec6b9d39a2fa1ceac47883fc /valgrind-audit | |
parent | 805825e3c7cf22f13cb89585639587520435c30a (diff) | |
download | gpsd-b67d76fe5e0674b9496eaa28066b944406f1c1f0.tar.gz |
Second generation of torture test.
Diffstat (limited to 'valgrind-audit')
-rwxr-xr-x | valgrind-audit | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/valgrind-audit b/valgrind-audit index dc9cbffd..08e1ad86 100755 --- a/valgrind-audit +++ b/valgrind-audit @@ -4,20 +4,24 @@ # import gpsfake +debuglevel=1 + invocation="valgrind --tool=memcheck --gen-suppressions=yes --leak-check=yes --suppressions=valgrind-suppressions" -test = gpsfake.TestSession(prefix=invocation, options="-D 3") +test = gpsfake.TestSession(prefix=invocation, options="-D %d" % debuglevel) try: - print "*** Add a GPS." + print "\n*** Test #1: Normal single-session behavior." + print "**** Add a GPS.\n" gps1 = test.gps_add("test/bu303-moving.log") - print "*** Add and remove a client." + print "\n**** Add and remove a client.\n" c1 = test.client_add("w\n") test.wait(3) test.client_remove(c1) - print "*** Remove a GPS." + print "\n**** Remove a GPS.\n" test.gps_remove(gps1) + print "*** Test #1 complete." finally: test.cleanup(); test.killall() |