summaryrefslogtreecommitdiff
path: root/tests/pdtest
diff options
context:
space:
mode:
authorBert Vermeulen <bert@biot.com>2013-12-11 21:52:33 +0100
committerBert Vermeulen <bert@biot.com>2013-12-11 21:52:33 +0100
commitcaa4b2cc0cdb34570e0fe8e5a6dad05a2988cc89 (patch)
treec21b60db73f0fdf65dcb14bd954095e7cdad1246 /tests/pdtest
parent554a49f9df0ee8c57d7fae64515cf57d622b0511 (diff)
downloadlibsigrokdecode-caa4b2cc0cdb34570e0fe8e5a6dad05a2988cc89.tar.gz
libsigrokdecode-caa4b2cc0cdb34570e0fe8e5a6dad05a2988cc89.zip
pdtest: Use -dd to turn on SR/SRD debugging.
Diffstat (limited to 'tests/pdtest')
-rwxr-xr-xtests/pdtest6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/pdtest b/tests/pdtest
index ac51165..ef0c350 100755
--- a/tests/pdtest
+++ b/tests/pdtest
@@ -7,7 +7,7 @@ from tempfile import mkstemp
from subprocess import Popen, PIPE
from difflib import Differ
-DEBUG = False
+DEBUG = 0
VERBOSE = False
@@ -221,6 +221,8 @@ def run_tests(tests):
for tclist in tests:
for tc in tclist:
args = [cmd]
+ if DEBUG > 1:
+ args.append('-d')
for pd in tc['pdlist']:
args.extend(['-P', pd['name']])
for label, probe in pd['probes']:
@@ -358,7 +360,7 @@ report_dir = None
opts, args = getopt(sys.argv[1:], "dvarslRS:")
for opt, arg in opts:
if opt == '-d':
- DEBUG = True
+ DEBUG += 1
if opt == '-v':
VERBOSE = True
elif opt == '-a':