Skip to content

Commit

Permalink
test: add wrapper around opticks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed May 8, 2024
1 parent 71e70c8 commit 0a79963
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:

- name: Run tests
run: |
docker run --rm ${{ env.IMAGE_NAME }}:${{ env.TAG }} bash -l -c 'HOME=$ESI_DIR opticks-full-prepare && HOME=$ESI_DIR opticks-t'
docker run --rm ${{ env.IMAGE_NAME }}:${{ env.TAG }} tests/test_opticks.sh
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cache-to: type=inline

- name: Run tests
run: docker run --rm ${{ env.IMAGE_NAME }}:latest bash -l -c 'HOME=$ESI_DIR opticks-full-prepare && HOME=$ESI_DIR opticks-t'
run: docker run --rm ${{ env.IMAGE_NAME }}:latest tests/test_opticks.sh

- name: Declare latest and push
run: docker push ${{ env.IMAGE_NAME }}:latest
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ WORKDIR $ESI_DIR
COPY epic epic
COPY opticks opticks
COPY .opticks .opticks
COPY tests tests
COPY NVIDIA-OptiX-SDK-7.6.0-linux64-x86_64.sh .

COPY <<-"EOF" /etc/profile.d/z20_opticks.sh
Expand Down
6 changes: 6 additions & 0 deletions tests/test_opticks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env -S bash -l

HOME=${HOME/\/root/$ESI_DIR}

opticks-full-prepare
opticks-t

0 comments on commit 0a79963

Please sign in to comment.