Browse Source

...

PYADPT-55
Volker Birk 6 years ago
parent
commit
1e65b5797b
  1. 7
      test/sync_handshake.py
  2. 10
      test/sync_test.py

7
test/sync_handshake.py

@ -5,6 +5,10 @@
this is being started once per device by sync_test.py
you can use this manually for debugging purposes
For debugging try:
$ cd $DEV && lldb python3 -- sync_handshake.py -e $DEV
"""
# Sync test 2.0
@ -53,8 +57,7 @@ if __name__=="__main__":
from optparse import OptionParser
optParser = OptionParser()
optParser.description = "For debugging try: $ cd $DEV && lldb python3 -- " \
+ "sync_handshake.py -e $DEV"
optParser.description = __doc__
optParser.add_option("-e", "--exec-for", action="store", type="string",
dest="exec_for", help="execute for name of simulated device")

10
test/sync_test.py

@ -1,5 +1,13 @@
# vim: set fileencoding=utf-8 :
"""test runner for sync tests
Start this with:
$ python3 sync_test.py
"""
# Sync test 2.0
# Copyleft 2018, 2019, p≡p foundation
@ -62,7 +70,7 @@ if __name__ == "__main__":
from optparse import OptionParser
optParser = OptionParser()
optParser.description = "test runner for sync tests"
optParser.description = __doc__
optParser.add_option("-c", "--clean", action="store_true", dest="clean",
help="remove all generated files")
options, args = optParser.parse_args()

Loading…
Cancel
Save