diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-11-10 17:53:46 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-11-10 17:57:10 +0100 |
commit | ffde5699cd850b4780b0741f2b1c49bcda1a4898 (patch) | |
tree | 56b97dc543a3bcbdb4e93bd7f60c0e629cc8661a | |
parent | 51996f20c2bd5280050bad644eceff8ddcd57e9a (diff) | |
download | neard-ffde5699cd850b4780b0741f2b1c49bcda1a4898.tar.gz neard-ffde5699cd850b4780b0741f2b1c49bcda1a4898.tar.bz2 neard-ffde5699cd850b4780b0741f2b1c49bcda1a4898.zip |
test: Remove dump-record
This is replaced with test/test-tag dump
-rw-r--r-- | Makefile.am | 3 | ||||
-rwxr-xr-x | test/dump-record | 31 |
2 files changed, 1 insertions, 33 deletions
diff --git a/Makefile.am b/Makefile.am index 03468de..32a3e91 100644 --- a/Makefile.am +++ b/Makefile.am @@ -79,8 +79,7 @@ EXTRA_DIST = src/genbuiltin $(doc_files) dist_man_MANS = doc/neard.8 doc/neard.conf.5 doc/nfctool.1 test_scripts = test/test-adapter test/test-device \ - test/test-tag test/dump-record \ - test/monitor-near test/bt-handover \ + test/test-tag test/monitor-near test/bt-handover \ test/handover-agent test/phdc-simple-manager \ test/neardutils.py diff --git a/test/dump-record b/test/dump-record deleted file mode 100755 index b4db2af..0000000 --- a/test/dump-record +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python - -import sys -import dbus - -if len(sys.argv) < 2: - print "Usage: %s /org/neard/nfcN/tagT/recordR" % (sys.argv[0]) - sys.exit(1) - -def extract_list(list): - val = "[" - for i in list: - val += " " + str(i) - val += " ]" - return val - -bus = dbus.SystemBus() - -record = dbus.Interface(bus.get_object("org.neard", sys.argv[1]), - "org.neard.Record") - -properties = record.GetProperties() - -print "[ %s ]" % (sys.argv[1]) - -for key in properties.keys(): - if key in ["Representation"]: - val = unicode(properties[key]) - else: - val = str(properties[key]) - print " %s = %s" % (key, val) |