QTools 6.9.3
qutest_dsl.py
Go to the documentation of this file.
1 
52 
53 
54 VERSION = 693
55 
56 
79 def include(fname):
80 
81 
90 def test_file():
91 
92 
101 def test_dir():
102 
103 
120 def test(title, opt = 0):
121 
122 
146 def skip(nTests = 9999):
147 
148 
174 def expect(match):
175 
176 
212 def glb_filter(*args):
213 
214 
239 def loc_filter(*args):
240 
241 
259 def ao_filter(obj_id):
260 
261 
289 def current_obj(obj_kind, obj_id):
290 
291 
326 def query_curr(obj_kind):
327 
328 
345 def tick(tick_rate = 0):
346 
347 
364 
365 
382 
383 
395 
396 
411 def command(cmdId, param1 = 0, param2 = 0, param3 = 0):
412 
413 
430 def init(signal = 0, params = None):
431 
432 
447 def dispatch(signal, params = None):
448 
449 
464 def post(signal, params = None):
465 
466 
480 def publish(signal, params = None):
481 
482 
505 def probe(func, data):
506 
507 
524 def peek(offset, size, num):
525 
526 
542 def poke(offset, size, data):
543 
544 
561 def fill(offset, size, num, item = 0):
562 
563 
584 def pack(format, v1, v2, ...):
585 
586 
588 def on_reset():
589 
590 
592 def on_setup():
593 
594 
597 
def expect(match)
defines an expectation for the current test
Definition: qutest_dsl.py:174
def tick(tick_rate=0)
trigger system clock tick in the Target
Definition: qutest_dsl.py:345
def include(fname)
include python code in a test script
Definition: qutest_dsl.py:79
def expect_pause()
defines expectation for a Test Pause
Definition: qutest_dsl.py:363
def ao_filter(obj_id)
Updates the Local Filter for a given AO in the Target.
Definition: qutest_dsl.py:259
def publish(signal, params=None)
publish a given event to subscribers in the Target
Definition: qutest_dsl.py:480
def glb_filter(*args)
Send the QS Global Filter to the Target.
Definition: qutest_dsl.py:212
def poke(offset, size, data)
pokes data into the Target.
Definition: qutest_dsl.py:542
def fill(offset, size, num, item=0)
fills data into the Target.
Definition: qutest_dsl.py:561
def test(title, opt=0)
start a new test
Definition: qutest_dsl.py:120
def continue_test()
sends the CONTINUE packet to the Target to continue a test
Definition: qutest_dsl.py:394
def pack(format, v1, v2)
packs data into binary string to be sent to QSPY.
Definition: qutest_dsl.py:584
def query_curr(obj_kind)
query the current object in the Target
Definition: qutest_dsl.py:326
def expect_run()
defines expectation for calling QF_run()/QF::run()
Definition: qutest_dsl.py:381
def command(cmdId, param1=0, param2=0, param3=0)
executes a given command in the Target
Definition: qutest_dsl.py:411
def on_setup()
callback function invoked at the beginning of each test
Definition: qutest_dsl.py:592
def skip(nTests=9999)
skip the tests following this command.
Definition: qutest_dsl.py:146
def test_file()
get the test file name with path
Definition: qutest_dsl.py:90
def test_dir()
get the test directory (relative to the current directory)
Definition: qutest_dsl.py:101
def probe(func, data)
sends a Test-Probe to the Target
Definition: qutest_dsl.py:505
def init(signal=0, params=None)
take the top-most initial transition in the current SM object in the Target
Definition: qutest_dsl.py:430
def on_teardown()
callback function invoked at the end of each test
Definition: qutest_dsl.py:596
def on_reset()
callback function invoked after each Target reset
Definition: qutest_dsl.py:588
def post(signal, params=None)
post a given event to the current AO object in the Target
Definition: qutest_dsl.py:464
def loc_filter(*args)
Send the Local Filter to the Target.
Definition: qutest_dsl.py:239
def current_obj(obj_kind, obj_id)
Set the Current-Object in the Target.
Definition: qutest_dsl.py:289
def peek(offset, size, num)
peeks data in the Target
Definition: qutest_dsl.py:524
def dispatch(signal, params=None)
dispatch a given event in the current SM object in the Target
Definition: qutest_dsl.py:447