Set libva driver path in env on sles15 (#40)

* Set libva driver path in env on sles15

* Refactor runTestCommand logic

[ROCm/rocjpeg commit: c3d07f42a0]
This commit is contained in:
Sam Wu
2024-07-16 11:30:17 -06:00
committed by GitHub
parent edc41923b4
commit 4eb157f81b
+3
View File
@@ -26,17 +26,20 @@ def runCompileCommand(platform, project, jobName, boolean debug=false, boolean s
def runTestCommand (platform, project) {
String libLocation = ''
String libvaDriverPath = ""
if (platform.jenkinsLabel.contains('rhel')) {
libLocation = ':/usr/local/lib'
}
else if (platform.jenkinsLabel.contains('sles')) {
libLocation = ':/usr/local/lib'
libvaDriverPath = "export LIBVA_DRIVERS_PATH=/opt/amdgpu/lib64/dri"
}
def command = """#!/usr/bin/env bash
set -ex
export HOME=/home/jenkins
${libvaDriverPath}
echo make test
cd ${project.paths.project_build_prefix}/build/release
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/rocm/lib${libLocation} make test ARGS="-VV --rerun-failed --output-on-failure"