summaryrefslogtreecommitdiffstats
path: root/test/test-adapter
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-11-01 01:25:46 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-11-01 01:25:46 +0100
commit330092231a0223b254287b65bfaccb63adbd42d2 (patch)
tree0fab5167e6feef285ba91fbadd035cfb10f95182 /test/test-adapter
parent063167c27c3e2cf9ac647a617abf345451de0787 (diff)
Add new service test script and fix adapter script
Diffstat (limited to 'test/test-adapter')
-rwxr-xr-xtest/test-adapter13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test-adapter b/test/test-adapter
index 2ec8adef..44cd97bf 100755
--- a/test/test-adapter
+++ b/test/test-adapter
@@ -20,7 +20,6 @@ if (len(sys.argv) < 2):
print " requestmode <mode>"
print " discoverabletimeout [timeout]"
print " periodicdiscovery [on/off]"
- print " addservicerecord <file>"
sys.exit(1)
if (sys.argv[1] == "address"):
@@ -75,17 +74,5 @@ if (sys.argv[1] == "periodicdiscovery"):
time.sleep(120)
sys.exit(0)
-if (sys.argv[1] == "addservicerecord"):
- if (len(sys.argv) < 3):
- print "Need file parameter"
- else:
- f = open(sys.argv[2])
- record = f.read()
- f.close()
- handle = adapter.AddServiceRecord(record)
- print "0x%x" % (handle)
- time.sleep(120)
- sys.exit(0)
-
print "Unknown command"
sys.exit(1)