Skip to content

Commit

Permalink
Using GHDL_PREFIX.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Aug 3, 2024
1 parent 10ca572 commit 7fdca8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,32 @@ jobs:
ubuntu_before_script: |
which ghdl
ghdl version
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl >> $GITHUB_ENV"
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl" >> $GITHUB_ENV
ls -lAh $(which ghdl)/../..
macos_before_script: |
which ghdl
ghdl version
echo $(brew --prefix llvm@15)
export DYLD_LIBRARY_PATH=$(brew --prefix llvm@15)/lib
echo -$DYLD_LIBRARY_PATH-
echo "DYLD_LIBRARY_PATH=$(brew --prefix llvm@15)/lib" >> $GITHUB_ENV
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl >> $GITHUB_ENV"
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl" >> $GITHUB_ENV
echo "----"
ls $(brew --prefix llvm@15)/lib
mingw64_before_script: |
which ghdl
ghdl version
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl >> $GITHUB_ENV"
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl" >> $GITHUB_ENV
ls -lAh $(which ghdl)/../../lib
ucrt64_before_script: |
which ghdl
ghdl version
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl >> $GITHUB_ENV"
echo "GHDL_PREFIX=$(which ghdl)/../../lib/ghdl" >> $GITHUB_ENV
ls -lAh $(which ghdl)/../../lib
# 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
5 changes: 1 addition & 4 deletions tests/unit/GHDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,12 @@
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" 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()
_binaryDirectoryPath = (Path(os_getenv("GHDL_PREFIX", default="/usr/lib/ghdl")) / "../../bin").resolve()


class CommonOptions(GHDLTestcases):
Expand Down

0 comments on commit 7fdca8a

Please sign in to comment.