File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,4 @@ def pytest_configure(config):
41
41
config .addinivalue_line ("markers" ,"tg: A traffic generator" )
42
42
config .addinivalue_line ("markers" ,"qdma: Xilinx QDMA" )
43
43
config .addinivalue_line ("markers" ,"hsc: Xilinx HSC" )
44
+ config .addinivalue_line ("markers" ,"umi: Universal Memory Interface" )
Original file line number Diff line number Diff line change 8
8
'./example-rtl-axi4lite/example-rtl-axi4lite' ,
9
9
'./example-rtl-mixed/example-rtl-mixed' ]
10
10
11
+ # Add UMI example if available.
12
+ try :
13
+ testnames_umi = fnmatch .filter (os .listdir (os .path .dirname (__file__ ) +
14
+ "/example-rtl-umi/obj_dir/" ), 'example-rtl-umi' )
15
+ except Exception :
16
+ testnames_umi = []
17
+ pass
18
+
11
19
@pytest .mark .checker
12
20
@pytest .mark .tg
13
21
@pytest .mark .axi4
17
25
def test_axi_tg_tests (filename ):
18
26
path_exe = os .path .normpath (os .path .dirname (__file__ ) + '/' + filename )
19
27
assert (subprocess .call ([path_exe ]) == 0 )
28
+
29
+ @pytest .mark .parametrize ("filename" , testnames_umi )
30
+ def test_umi_example (filename ):
31
+ path_exe = os .path .normpath (os .path .dirname (__file__ ) + '/example-rtl-umi/obj_dir/' + filename )
32
+ assert (subprocess .call ([path_exe ]) == 0 )
Original file line number Diff line number Diff line change 59
59
"/traffic-generators/ccix/" ), '*-tg-test' )
60
60
tests_tg_ccix = ['./traffic-generators/ccix/{0}' .format (i ) for i in tg_ccix_tests ]
61
61
62
+ tg_umi_tests = fnmatch .filter (os .listdir (os .path .dirname (__file__ ) +
63
+ "/traffic-generators/umi/" ), 'test-umi-dw*[0-9]' )
64
+ tests_tg_umi = ['./traffic-generators/umi/{0}' .format (i ) for i in tg_umi_tests ]
65
+
62
66
hwb_axi_testnames = fnmatch .filter (os .listdir (os .path .dirname (__file__ ) + "/rtl-bridges/axi/" ), '*-test-pcie-master' )
63
67
hwb_axi_testnames += fnmatch .filter (os .listdir (os .path .dirname (__file__ ) + "/rtl-bridges/axi/" ), '*-test-pcie-slave' )
64
68
hwb_axi_testnames += fnmatch .filter (os .listdir (os .path .dirname (__file__ ) + "/rtl-bridges/axi/" ), 'test-slave-directed' )
@@ -169,6 +173,12 @@ def test_tg_ccix_tests(filename):
169
173
path_exe = os .path .normpath (os .path .dirname (__file__ ) + '/' + filename )
170
174
assert (subprocess .call ([path_exe ]) == 0 )
171
175
176
+ @pytest .mark .umi
177
+ @pytest .mark .parametrize ("filename" , tests_tg_umi )
178
+ def test_tg_umi_tests (filename ):
179
+ path_exe = os .path .normpath (os .path .dirname (__file__ ) + '/' + filename )
180
+ assert (subprocess .call ([path_exe ]) == 0 )
181
+
172
182
def get_ipxact_tests ():
173
183
ex_path = os .path .dirname (__file__ )
174
184
ex_path += '/../packages/ipxact/xilinx.com/examples/'
You can’t perform that action at this time.
0 commit comments