QTools  6.6.0
qutest_dsl.py
Go to the documentation of this file.
1 
14 
15 
16 VERSION = 637
17 
18 
33 def test(title, opt = 0):
34 
35 
58 def skip(nTests = 9999):
59 
60 
89 def expect(match):
90 
91 
125 def glb_filter(*args):
126 
127 
155 def loc_filter(obj_kind, obj_id):
156 
157 
187 def current_obj(obj_kind, obj_id):
188 
189 
220 def query_curr(obj_kind):
221 
222 
240 def tick(tick_rate = 0):
241 
242 
261 
262 
276 
277 
294 def command(cmdId, param1 = 0, param2 = 0, param3 = 0):
295 
296 
311 def init(signal = 0, params = None):
312 
313 
326 def dispatch(signal, params = None):
327 
328 
341 def post(signal, params = None):
342 
343 
355 def publish(signal, params = None):
356 
357 
378 def probe(func, data):
379 
380 
395 def peek(offset, size, num):
396 
397 
410 def poke(offset, size, data):
411 
412 
427 def fill(offset, size, num, item = 0):
428 
429 
448 def pack(format, v1, v2, ...):
449 
450 
452 def on_reset():
453 
454 
456 def on_setup():
457 
458 
461 
qutest_dsl.fill
def fill(offset, size, num, item=0)
fills data into the Target.
Definition: qutest_dsl.py:427
qutest_dsl.expect
def expect(match)
defines an expectation for the current test
Definition: qutest_dsl.py:89
qutest_dsl.skip
def skip(nTests=9999)
skip the tests following this command.
Definition: qutest_dsl.py:58
qutest_dsl.on_teardown
def on_teardown()
callback function invoked at the end of each test
Definition: qutest_dsl.py:460
qutest_dsl.peek
def peek(offset, size, num)
peeks data into the Target
Definition: qutest_dsl.py:395
qutest_dsl.on_reset
def on_reset()
callback function invoked after each Target reset
Definition: qutest_dsl.py:452
qutest_dsl.expect_pause
def expect_pause()
defines expectation for a Test Pause
Definition: qutest_dsl.py:260
qutest_dsl.query_curr
def query_curr(obj_kind)
query the current object in the Target
Definition: qutest_dsl.py:220
qutest_dsl.continue_test
def continue_test()
sends the CONTINUE packet to the Target to continue a test
Definition: qutest_dsl.py:275
qutest_dsl.init
def init(signal=0, params=None)
take the top-most initial transition in the current SM object in the Target
Definition: qutest_dsl.py:311
qutest_dsl.dispatch
def dispatch(signal, params=None)
dispatch a given event in the current SM object in the Target
Definition: qutest_dsl.py:326
qutest_dsl.publish
def publish(signal, params=None)
publish a given event to subscribers in the Target
Definition: qutest_dsl.py:355
qutest_dsl.loc_filter
def loc_filter(obj_kind, obj_id)
Set the Local Filter in the Target.
Definition: qutest_dsl.py:155
qutest_dsl.post
def post(signal, params=None)
post a given event to the current AO object in the Target
Definition: qutest_dsl.py:341
qutest_dsl.glb_filter
def glb_filter(*args)
Set the Global-Filter in the Target.
Definition: qutest_dsl.py:125
qutest_dsl.on_setup
def on_setup()
callback function invoked at the beginning of each test
Definition: qutest_dsl.py:456
qutest_dsl.pack
def pack(format, v1, v2)
packs data into binary string to be sent to QSPY.
Definition: qutest_dsl.py:448
qutest_dsl.probe
def probe(func, data)
sends a Test-Probe to the Target
Definition: qutest_dsl.py:378
qutest_dsl.poke
def poke(offset, size, data)
pokes data into the Target.
Definition: qutest_dsl.py:410
qutest_dsl.current_obj
def current_obj(obj_kind, obj_id)
Set the Current-Object in the Target.
Definition: qutest_dsl.py:187
qutest_dsl.command
def command(cmdId, param1=0, param2=0, param3=0)
executes a given command in the Target
Definition: qutest_dsl.py:294
qutest_dsl.tick
def tick(tick_rate=0)
trigger system clock tick in the Target
Definition: qutest_dsl.py:240
qutest_dsl.test
def test(title, opt=0)
start a new test
Definition: qutest_dsl.py:33