2222import logging # pylint: disable=unused-import
2323import unittest
2424
25- from helpers import aarch64 , centos8 , docker , rockylinux9 , ubuntu20 , ubuntu22 , ubuntu24 , x86_64
25+ from helpers import aarch64 , centos8 , docker , rockylinux9 , rockylinux10 , ubuntu20 , ubuntu22 , ubuntu24 , x86_64
2626
2727from hpccm .building_blocks .doca_ofed import doca_ofed
2828
@@ -38,7 +38,7 @@ def test_defaults_ubuntu20(self):
3838 """Default doca_ofed building block"""
3939 doca = doca_ofed ()
4040 self .assertMultiLineEqual (str (doca ),
41- r'''# DOCA OFED version 2.10 .0
41+ r'''# DOCA OFED version 3.2 .0
4242RUN apt-get update -y && \
4343 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
4444 ca-certificates \
@@ -48,7 +48,7 @@ def test_defaults_ubuntu20(self):
4848RUN mkdir -p /usr/share/keyrings && \
4949 rm -f /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
5050 wget -qO - https://linux.mellanox.com/public/repo/doca/GPG-KEY-Mellanox.pub | gpg --dearmor -o /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
51- echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/2.10 .0/ubuntu20.04/x86_64/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
51+ echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/3.2 .0/ubuntu20.04/x86_64/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
5252 apt-get update -y && \
5353 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
5454 ibverbs-providers \
@@ -70,7 +70,7 @@ def test_defaults_ubuntu22(self):
7070 """Default doca_ofed building block"""
7171 doca = doca_ofed ()
7272 self .assertMultiLineEqual (str (doca ),
73- r'''# DOCA OFED version 2.10 .0
73+ r'''# DOCA OFED version 3.2 .0
7474RUN apt-get update -y && \
7575 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
7676 ca-certificates \
@@ -80,7 +80,7 @@ def test_defaults_ubuntu22(self):
8080RUN mkdir -p /usr/share/keyrings && \
8181 rm -f /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
8282 wget -qO - https://linux.mellanox.com/public/repo/doca/GPG-KEY-Mellanox.pub | gpg --dearmor -o /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
83- echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/2.10 .0/ubuntu22.04/arm64-sbsa/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
83+ echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/3.2 .0/ubuntu22.04/arm64-sbsa/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
8484 apt-get update -y && \
8585 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8686 ibverbs-providers \
@@ -102,7 +102,7 @@ def test_defaults_ubuntu24(self):
102102 """Default doca_ofed building block"""
103103 doca = doca_ofed ()
104104 self .assertMultiLineEqual (str (doca ),
105- r'''# DOCA OFED version 2.10 .0
105+ r'''# DOCA OFED version 3.2 .0
106106RUN apt-get update -y && \
107107 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
108108 ca-certificates \
@@ -112,7 +112,7 @@ def test_defaults_ubuntu24(self):
112112RUN mkdir -p /usr/share/keyrings && \
113113 rm -f /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
114114 wget -qO - https://linux.mellanox.com/public/repo/doca/GPG-KEY-Mellanox.pub | gpg --dearmor -o /usr/share/keyrings/GPG-KEY-Mellanox.gpg && \
115- echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/2.10 .0/ubuntu24.04/x86_64/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
115+ echo "deb [signed-by=/usr/share/keyrings/GPG-KEY-Mellanox.gpg] https://linux.mellanox.com/public/repo/doca/3.2 .0/ubuntu24.04/x86_64/ ./" >> /etc/apt/sources.list.d/hpccm.list && \
116116 apt-get update -y && \
117117 DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
118118 ibverbs-providers \
@@ -134,15 +134,15 @@ def test_defaults_rockylinux9(self):
134134 """Default doca_ofed building block"""
135135 doca = doca_ofed ()
136136 self .assertMultiLineEqual (str (doca ),
137- r'''# DOCA OFED version 2.10 .0
137+ r'''# DOCA OFED version 3.2 .0
138138RUN yum install -y \
139139 ca-certificates \
140140 gnupg \
141141 wget && \
142142 rm -rf /var/cache/yum/*
143143RUN rpm --import https://linux.mellanox.com/public/repo/doca/GPG-KEY-Mellanox.pub && \
144144 yum install -y dnf-utils && \
145- yum-config-manager --add-repo https://linux.mellanox.com/public/repo/doca/2.10. 0/rhel9.2 /x86_64 && \
145+ yum-config-manager --add-repo https://linux.mellanox.com/public/repo/doca/3.2. 0/rhel9/x86_64 && \
146146 yum install -y \
147147 libibumad \
148148 libibverbs \
@@ -152,22 +152,46 @@ def test_defaults_rockylinux9(self):
152152 rdma-core-devel && \
153153 rm -rf /var/cache/yum/*''' )
154154
155+ @x86_64
156+ @rockylinux10
157+ @docker
158+ def test_defaults_rockylinux10 (self ):
159+ """Default doca_ofed building block"""
160+ doca = doca_ofed ()
161+ self .assertMultiLineEqual (str (doca ),
162+ r'''# DOCA OFED version 3.2.0
163+ RUN yum install -y \
164+ ca-certificates \
165+ gnupg \
166+ wget && \
167+ rm -rf /var/cache/yum/*
168+ RUN yum install -y dnf-utils && \
169+ yum-config-manager --add-repo https://linux.mellanox.com/public/repo/doca/3.2.0/rhel10/x86_64 && \
170+ yum install -y --nogpgcheck \
171+ libibumad \
172+ libibverbs \
173+ libibverbs-utils \
174+ librdmacm \
175+ rdma-core \
176+ rdma-core-devel && \
177+ rm -rf /var/cache/yum/*''' )
178+
155179 @x86_64
156180 @centos8
157181 @docker
158182 def test_defaults_rockylinux8 (self ):
159183 """Default doca_ofed building block"""
160184 doca = doca_ofed ()
161185 self .assertMultiLineEqual (str (doca ),
162- r'''# DOCA OFED version 2.10 .0
186+ r'''# DOCA OFED version 3.2 .0
163187RUN yum install -y \
164188 ca-certificates \
165189 gnupg \
166190 wget && \
167191 rm -rf /var/cache/yum/*
168192RUN rpm --import https://linux.mellanox.com/public/repo/doca/GPG-KEY-Mellanox.pub && \
169193 yum install -y dnf-utils && \
170- yum-config-manager --add-repo https://linux.mellanox.com/public/repo/doca/2.10. 0/rhel8.6 /x86_64 && \
194+ yum-config-manager --add-repo https://linux.mellanox.com/public/repo/doca/3.2. 0/rhel8/x86_64 && \
171195 yum install -y \
172196 libibumad \
173197 libibverbs \
0 commit comments