|
15 | 15 | from subprocess import call |
16 | 16 | import sys |
17 | 17 | from vunit import ROOT |
| 18 | +from vunit.builtins import VHDL_PATH |
18 | 19 | from os import environ |
19 | 20 |
|
20 | 21 |
|
@@ -88,91 +89,91 @@ def test_vhdl_com_example_project(self): |
88 | 89 | self.check(join(ROOT, "examples", "vhdl", "com", "run.py")) |
89 | 90 |
|
90 | 91 | def test_array_vhdl_2008(self): |
91 | | - self.check(join(ROOT, "vhdl", "array", "run.py")) |
| 92 | + self.check(join(VHDL_PATH, "array", "run.py")) |
92 | 93 |
|
93 | 94 | def test_check_vhdl_2008(self): |
94 | | - self.check(join(ROOT, "vhdl", "check", "run.py")) |
| 95 | + self.check(join(VHDL_PATH, "check", "run.py")) |
95 | 96 |
|
96 | 97 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
97 | 98 | def test_check_vhdl_2002(self): |
98 | | - self.check(join(ROOT, "vhdl", "check", "run.py"), |
| 99 | + self.check(join(VHDL_PATH, "check", "run.py"), |
99 | 100 | vhdl_standard='2002') |
100 | 101 |
|
101 | 102 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
102 | 103 | def test_check_vhdl_93(self): |
103 | | - self.check(join(ROOT, "vhdl", "check", "run.py"), |
| 104 | + self.check(join(VHDL_PATH, "check", "run.py"), |
104 | 105 | vhdl_standard='93') |
105 | 106 |
|
106 | 107 | def test_logging_vhdl_2008(self): |
107 | | - self.check(join(ROOT, "vhdl", "logging", "run.py")) |
| 108 | + self.check(join(VHDL_PATH, "logging", "run.py")) |
108 | 109 |
|
109 | 110 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
110 | 111 | def test_logging_vhdl_2002(self): |
111 | | - self.check(join(ROOT, "vhdl", "logging", "run.py"), |
| 112 | + self.check(join(VHDL_PATH, "logging", "run.py"), |
112 | 113 | vhdl_standard='2002') |
113 | 114 |
|
114 | 115 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
115 | 116 | def test_logging_vhdl_93(self): |
116 | | - self.check(join(ROOT, "vhdl", "logging", "run.py"), |
| 117 | + self.check(join(VHDL_PATH, "logging", "run.py"), |
117 | 118 | vhdl_standard='93') |
118 | 119 |
|
119 | 120 | def test_run_vhdl_2008(self): |
120 | | - self.check(join(ROOT, "vhdl", "run", "run.py")) |
| 121 | + self.check(join(VHDL_PATH, "run", "run.py")) |
121 | 122 |
|
122 | 123 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
123 | 124 | def test_run_vhdl_2002(self): |
124 | | - self.check(join(ROOT, "vhdl", "run", "run.py"), |
| 125 | + self.check(join(VHDL_PATH, "run", "run.py"), |
125 | 126 | vhdl_standard='2002') |
126 | 127 |
|
127 | 128 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
128 | 129 | def test_run_vhdl_93(self): |
129 | | - self.check(join(ROOT, "vhdl", "run", "run.py"), |
| 130 | + self.check(join(VHDL_PATH, "run", "run.py"), |
130 | 131 | vhdl_standard='93') |
131 | 132 |
|
132 | 133 | def test_string_ops_vhdl_2008(self): |
133 | | - self.check(join(ROOT, "vhdl", "string_ops", "run.py")) |
| 134 | + self.check(join(VHDL_PATH, "string_ops", "run.py")) |
134 | 135 |
|
135 | 136 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
136 | 137 | def test_string_ops_vhdl_2002(self): |
137 | | - self.check(join(ROOT, "vhdl", "string_ops", "run.py"), |
| 138 | + self.check(join(VHDL_PATH, "string_ops", "run.py"), |
138 | 139 | vhdl_standard='2002') |
139 | 140 |
|
140 | 141 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
141 | 142 | def test_string_ops_vhdl_93(self): |
142 | | - self.check(join(ROOT, "vhdl", "string_ops", "run.py"), |
| 143 | + self.check(join(VHDL_PATH, "string_ops", "run.py"), |
143 | 144 | vhdl_standard='93') |
144 | 145 |
|
145 | 146 | def test_dictionary_vhdl_2008(self): |
146 | | - self.check(join(ROOT, "vhdl", "dictionary", "run.py")) |
| 147 | + self.check(join(VHDL_PATH, "dictionary", "run.py")) |
147 | 148 |
|
148 | 149 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
149 | 150 | def test_dictionary_vhdl_2002(self): |
150 | | - self.check(join(ROOT, "vhdl", "dictionary", "run.py"), |
| 151 | + self.check(join(VHDL_PATH, "dictionary", "run.py"), |
151 | 152 | vhdl_standard='2002') |
152 | 153 |
|
153 | 154 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
154 | 155 | def test_dictionary_vhdl_93(self): |
155 | | - self.check(join(ROOT, "vhdl", "dictionary", "run.py"), |
| 156 | + self.check(join(VHDL_PATH, "dictionary", "run.py"), |
156 | 157 | vhdl_standard='93') |
157 | 158 |
|
158 | 159 | def test_path_vhdl_2008(self): |
159 | | - self.check(join(ROOT, "vhdl", "path", "run.py")) |
| 160 | + self.check(join(VHDL_PATH, "path", "run.py")) |
160 | 161 |
|
161 | 162 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
162 | 163 | def test_path_vhdl_2002(self): |
163 | | - self.check(join(ROOT, "vhdl", "path", "run.py"), |
| 164 | + self.check(join(VHDL_PATH, "path", "run.py"), |
164 | 165 | vhdl_standard='2002') |
165 | 166 |
|
166 | 167 | @unittest.skipUnless(simulator_is("modelsim"), "Only 2008 support") |
167 | 168 | def test_path_vhdl_93(self): |
168 | | - self.check(join(ROOT, "vhdl", "path", "run.py"), |
| 169 | + self.check(join(VHDL_PATH, "path", "run.py"), |
169 | 170 | vhdl_standard='93') |
170 | 171 |
|
171 | 172 | def test_com_vhdl_2008(self): |
172 | | - self.check(join(ROOT, "vhdl", "com", "run.py")) |
| 173 | + self.check(join(VHDL_PATH, "com", "run.py")) |
173 | 174 |
|
174 | 175 | def test_com_debug_vhdl_2008(self): |
175 | | - self.check(join(ROOT, "vhdl", "com", "run.py"), |
| 176 | + self.check(join(VHDL_PATH, "com", "run.py"), |
176 | 177 | args=["--use-debug-codecs"]) |
177 | 178 |
|
178 | 179 | def test_vhdl_compile_order_project(self): |
|
0 commit comments