Skip to content

Commit 48e22df

Browse files
rocm-devopsGerrit Code Review
authored andcommitted
Merge "[run_rocm_test] - Add Azure Linux support (#1146)" into release/rocm-rel-6.3
2 parents fc7b7fe + c2cd113 commit 48e22df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bin/run_rocm_test.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ if [ "$aomp" != 1 ]; then
184184
test_package=$(ls -lt /var/cache/zypp/packages/rocm/ | grep -Eo -m1 openmp-extras-tests.*)
185185
cp /var/cache/zypp/packages/rocm/"$test_package" $tmpdir
186186
extract_rpm $test_package
187+
elif [[ "$os_name" =~ "Microsoft Azure Linux" ]]; then
188+
dnf download --destdir=$tmpdir openmp-extras-tests
189+
test_package=$(ls -lt $tmpdir | grep -Eo -m1 openmp-extras-tests.*)
190+
extract_rpm $test_package
187191
else
188192
echo "Error: Could not determine operating system name."
189193
exit 1
@@ -321,10 +325,10 @@ function getversion(){
321325
osname=$(cat /etc/os-release | grep -e ^NAME=)
322326
# Regex to cover single/multi version installs for deb/rpm.
323327
ompextrasregex="openmp-extras-?[a-z]*-?\s*[0-9]+\.([0-9]+)\.([0-9]+)"
324-
rpmregex="Red Hat|CentOS|SLES|Oracle Linux Server"
328+
rpmregex="Red Hat|CentOS|SLES|Oracle Linux Server|Microsoft Azure Linux"
325329
echo $osname
326330
if [[ "$osname" =~ $rpmregex ]]; then
327-
echo "Red Hat/CentOS/SLES/Oracle found"
331+
echo "Red Hat/CentOS/SLES/Oracle/Microsoft Azure found"
328332
ompextraspkg=$(rpm -qa | grep openmp-extras | tail -1)
329333
elif [[ $osname =~ "Ubuntu" ]]; then
330334
echo "Ubuntu found"

0 commit comments

Comments
 (0)