Skip to content

Commit

Permalink
Adjusted binary paths for macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 30, 2024
1 parent 793111f commit eb97510
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
jobs: ${{ needs.UnitTestingParams.outputs.python_jobs }}
apt: ghdl-mcode
brew: ghdl
ubuntu_before_script: which ghdl
macos_before_script: which ghdl
ubuntu_before_script: |
which ghdl
ghdl version
macos_before_script: |
which ghdl
ghdl version
# ubuntu_before_script: sudo install -m 755 tests/mock/ghdl /usr/local/bin
requirements: "-r tests/unit/requirements.txt"
unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
Expand Down
6 changes: 4 additions & 2 deletions tests/unit/GHDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
from pathlib import Path
from unittest import TestCase

from pyTooling.Platform import CurrentPlatform

from pyEDAA.CLITool.GHDL import GHDL
from . import Helper


class GHDLTestcases(TestCase, Helper):
_libraryDirectoryPath = Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl")).resolve()
_binaryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl")) / "../../bin").resolve()
_libraryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl" if not CurrentPlatform.IsNativeMacOS else "/opt/homebrew/lib/ghdl")) / "../").resolve()
_binaryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl" if not CurrentPlatform.IsNativeMacOS else "/opt/homebrew/lib/ghdl")) / "../../bin").resolve()


class CommonOptions(GHDLTestcases):
Expand Down

0 comments on commit eb97510

Please sign in to comment.