aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-07 16:34:50 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-07 16:34:50 +1200
commit20c671cf3bb77948280dc07c39dbbbbe8c7ab95c (patch)
treebcd0be7319113e649e40349ba8fae81b16eb44c9 /tools
parent981064292c06b428b6ed7067b12a6fc49e18f2b4 (diff)
downloadtrackermap-server-20c671cf3bb77948280dc07c39dbbbbe8c7ab95c.tar.gz
trackermap-server-20c671cf3bb77948280dc07c39dbbbbe8c7ab95c.tar.bz2
trackermap-server-20c671cf3bb77948280dc07c39dbbbbe8c7ab95c.zip
Update integration test script
Diffstat (limited to 'tools')
-rwxr-xr-xtools/test-integration.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/test-integration.py b/tools/test-integration.py
index cfecd15c1..be3f24a4d 100755
--- a/tools/test-integration.py
+++ b/tools/test-integration.py
@@ -107,15 +107,22 @@ devices = {
'123456' : add_device(cookie, '123456')
}
-print 'Total: %d' % len(messages)
+
+all = set(ports.keys())
+protocols = set(messages.keys())
+
+print 'Total: %d' % len(all)
+print 'Missing: %d' % len(all - protocols)
+print 'Covered: %d' % len(protocols)
+
+#if all - protocols:
+# print '\nMissing: %s\n' % repr(list((all - protocols)))
for protocol in messages:
send_message(ports[protocol], messages[protocol])
time.sleep(5)
-protocols = set(messages.keys())
-
for device in devices:
protocols -= set(get_protocols(cookie, devices[device]))