File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ if [ "$aomp" != 1 ]; then
184
184
test_package=$( ls -lt /var/cache/zypp/packages/rocm/ | grep -Eo -m1 openmp-extras-tests.* )
185
185
cp /var/cache/zypp/packages/rocm/" $test_package " $tmpdir
186
186
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
187
191
else
188
192
echo " Error: Could not determine operating system name."
189
193
exit 1
@@ -321,10 +325,10 @@ function getversion(){
321
325
osname=$( cat /etc/os-release | grep -e ^NAME=)
322
326
# Regex to cover single/multi version installs for deb/rpm.
323
327
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 "
325
329
echo $osname
326
330
if [[ " $osname " =~ $rpmregex ]]; then
327
- echo " Red Hat/CentOS/SLES/Oracle found"
331
+ echo " Red Hat/CentOS/SLES/Oracle/Microsoft Azure found"
328
332
ompextraspkg=$( rpm -qa | grep openmp-extras | tail -1)
329
333
elif [[ $osname =~ " Ubuntu" ]]; then
330
334
echo " Ubuntu found"
You can’t perform that action at this time.
0 commit comments