Skip to content

Commit

Permalink
Fixed paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 30, 2024
1 parent 10593ec commit ae54242
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/unit/GHDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ def test_AnalyzeFaultyFile(self) -> None:
tool = self._GetAnalyzer()
tool[tool.CommandAnalyze] = True
tool[tool.FlagLibrary] = "lib_Test"
tool[tool.OptionPaths] = (Path("project/designB/file_B1.vhdl"), )
tool[tool.OptionPaths] = (Path("tests/project/designB/file_B1.vhdl"), )

executable = self.getExecutablePath("ghdl", self._binaryDirectoryPath)
self.assertEqual(f"[\"{executable}\", \"analyze\", \"--std=08\", \"-fsynopsys\", \"-frelaxed\", \"-fexplicit\", \"--work=lib_Test\", \"--mb-comments\", \"project/designB/file_B1.vhdl\"]", repr(tool))
self.assertEqual(f"[\"{executable}\", \"analyze\", \"--std=08\", \"-fsynopsys\", \"-frelaxed\", \"-fexplicit\", \"--work=lib_Test\", \"--mb-comments\", \"tests/project/designB/file_B1.vhdl\"]", repr(tool))

tool.StartProcess()
for line in tool.GetLineReader():
Expand All @@ -125,12 +125,12 @@ def test_AnalyzeSingleFiles(self) -> None:
print()

libraryFiles = (
Path("project/lib/file_P1.vhdl"),
Path("project/lib/file_P2.vhdl"),
Path("tests/project/lib/file_P1.vhdl"),
Path("tests/project/lib/file_P2.vhdl"),
)
designFiles = (
Path("project/designA/file_A1.vhdl"),
Path("project/designA/file_A2.vhdl"),
Path("tests/project/designA/file_A1.vhdl"),
Path("tests/project/designA/file_A2.vhdl"),
)

analyzer = self._GetAnalyzer()
Expand Down Expand Up @@ -160,12 +160,12 @@ def test_AnalyzeMultipleFiles(self) -> None:
print()

libraryFiles = (
Path("project/lib/file_P1.vhdl"),
Path("project/lib/file_P2.vhdl"),
Path("tests/project/lib/file_P1.vhdl"),
Path("tests/project/lib/file_P2.vhdl"),
)
designFiles = (
Path("project/designA/file_A1.vhdl"),
Path("project/designA/file_A2.vhdl"),
Path("tests/project/designA/file_A1.vhdl"),
Path("tests/project/designA/file_A2.vhdl"),
)

analyzer = self._GetAnalyzer()
Expand Down

0 comments on commit ae54242

Please sign in to comment.