Skip to content

Commit

Permalink
Merge pull request #2 from bdice/fix-tests
Browse files Browse the repository at this point in the history
Fix libnvjitlink tests.
  • Loading branch information
adibbley authored Apr 11, 2023
2 parents 2cca6a3 + 8f56121 commit 312d269
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@ source:
sha256: cae74b6790174b283d892bb20e1ff91bff13c8a2a8486de4f417e09675469372 # [win]

build:
number: 0
number: 1
skip: true # [osx]

test:
commands:
- test -L $PREFIX/lib/libnvJitLink.so.{{ version.split(".")[0] }} # [linux]
- test -L $PREFIX/lib/libnvJitLink.so.{{ version }} # [linux]
- test -L $PREFIX/targets/{{ target_name }}/lib/libnvJitLink.so.{{ version.split(".")[0] }} # [linux]
- test -f $PREFIX/targets/{{ target_name }}/lib/libnvJitLink.so.{{ version }} # [linux]
- if not exist %LIBRARY_BIN%\nvJitLink*.dll exit 1 # [win]

outputs:
- name: libnvjitlink
files:
Expand All @@ -45,13 +53,7 @@ outputs:
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
run_constrained:
- arm-variant * {{ arm_variant_type }} # [aarch64]
test:
commands:
- test -L $PREFIX/lib/libnvJitLink.so.{{ version }} # [linux]
- test -L $PREFIX/lib/libnvJitLink.so.{{ version.split(".")[0] }} # [linux]
- test -L $PREFIX/targets/{{ target_name }}/lib/libnvJitLink.so.{{ version }} # [linux]
- test -f $PREFIX/targets/{{ target_name }}/lib/libnvJitLink.so.{{ version.split(".")[0] }} # [linux]
- if not exist %LIBRARY_BIN%\nvJitLink*.dll exit 1 # [win]
# Tests are defined at the top level, due to package/output name conflicts.
about:
home: https://developer.nvidia.com/cuda-toolkit
license_file: LICENSE
Expand Down

0 comments on commit 312d269

Please sign in to comment.