<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2025 at 11:07 AM Aaron Conole <<a href="mailto:aconole@redhat.com">aconole@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This commit adds preliminary support for developer driven FreeBSD testing<br>
via the Cirrus-CI cloud continuous integration system.<br>
<br>
NOTE: Currently, this does not successfully execute.  See the following<br>
build result:<br>
  <a href="https://cirrus-ci.com/task/5626189961756672" rel="noreferrer" target="_blank">https://cirrus-ci.com/task/5626189961756672</a><br>
<br>
Full Logs:<br>
  <a href="https://api.cirrus-ci.com/v1/task/5626189961756672/logs/check.log" rel="noreferrer" target="_blank">https://api.cirrus-ci.com/v1/task/5626189961756672/logs/check.log</a><br>
<br>
The tests themselves may need to be run as root.<br>
<br>
Signed-off-by: Aaron Conole <<a href="mailto:aconole@redhat.com" target="_blank">aconole@redhat.com</a>><br>
---<br>
 .ci/freebsd-build.sh |  5 +++++<br>
 .ci/freebsd-setup.sh |  3 +++<br>
 .cirrus.yml          | 33 +++++++++++++++++++++++++++++++++<br>
 MAINTAINERS          |  1 +<br>
 4 files changed, 42 insertions(+)<br>
 create mode 100755 .ci/freebsd-build.sh<br>
 create mode 100755 .ci/freebsd-setup.sh<br>
 create mode 100644 .cirrus.yml<br>
<br>
diff --git a/.ci/freebsd-build.sh b/.ci/freebsd-build.sh<br>
new file mode 100755<br>
index 0000000000..099f9fd448<br>
--- /dev/null<br>
+++ b/.ci/freebsd-build.sh<br>
@@ -0,0 +1,5 @@<br>
+#!/bin/sh<br>
+<br>
+cd build<br>
+ninja<br>
+meson install<br>
diff --git a/.ci/freebsd-setup.sh b/.ci/freebsd-setup.sh<br>
new file mode 100755<br>
index 0000000000..762a8383c3<br>
--- /dev/null<br>
+++ b/.ci/freebsd-setup.sh<br>
@@ -0,0 +1,3 @@<br>
+#!/bin/sh<br>
+<br>
+meson setup build<br>
diff --git a/.cirrus.yml b/.cirrus.yml<br>
new file mode 100644<br>
index 0000000000..727dcb14f4<br>
--- /dev/null<br>
+++ b/.cirrus.yml<br>
@@ -0,0 +1,33 @@<br>
+freebsd_build_task:<br>
+<br>
+  freebsd_instance:<br>
+    matrix:<br>
+      image_family: freebsd-15-0-snap<br>
+      image_family: freebsd-14-2-snap<br>
+    cpu: 4<br>
+    memory: 4G<br>
+<br>
+  env:<br>
+    DEPENDENCIES: git gcc wget openssl python3 meson pkgconf<br>
+    PY_DEPS:      pyelftools<br>
+    matrix:<br>
+      COMPILER: gcc<br>
+      COMPILER: clang<br>
+<br>
+  prepare_script:<br>
+    - sysctl -w kern.coredump=0<br>
+    - pkg update -f<br>
+    - pkg install -y ${DEPENDENCIES}<br>
+        $(pkg search -xq "^py3[0-9]+-(${PY_DEPS})-[0-9]+" | xargs)<br>
+    - mkdir -p /usr/src<br>
+    - git clone --depth 1 <a href="https://git.freebsd.org/src.git" rel="noreferrer" target="_blank">https://git.freebsd.org/src.git</a> /usr/src<br></blockquote><div><br></div><div>Sorry, do you mind explaining why this is needed? And should it be cloning to main or to the latest LTS tag? I think I am ignorant of what is required for your build process.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+<br>
+  configure_script:<br>
+    - ./.ci/freebsd-setup.sh<br>
+<br>
+  build_script:<br>
+    - ./.ci/freebsd-build.sh<br>
+<br>
+  check_script:<br>
+    - meson test -C build --suite fast-tests -t 3<br></blockquote><div><br></div><div>You might be interested in this thread: <a href="https://bugs.dpdk.org/show_bug.cgi?id=761">https://bugs.dpdk.org/show_bug.cgi?id=761</a></div><div><br></div><div>See Cody's comment from last April about unit tests being broken on FreeBSD 13.0 and 14.0. My recollection is that there is no volunteer to resolve these issues currently, which is why we are not targeting unit tests for FreeBSD at the Community Lab - only build tests.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+            || { cat ./build/meson-logs/testlog.txt; exit 1; }<br>
diff --git a/MAINTAINERS b/MAINTAINERS<br>
index b86cdd266b..ed1df17f3c 100644<br>
--- a/MAINTAINERS<br>
+++ b/MAINTAINERS<br>
@@ -142,6 +142,7 @@ M: Aaron Conole <<a href="mailto:aconole@redhat.com" target="_blank">aconole@redhat.com</a>><br>
 M: Michael Santana <<a href="mailto:maicolgabriel@hotmail.com" target="_blank">maicolgabriel@hotmail.com</a>><br>
 F: .github/workflows/build.yml<br>
 F: .ci/<br>
+F: .cirrus.yml<br>
<br>
 Driver information<br>
 M: Dmitry Kozlyuk <<a href="mailto:dmitry.kozliuk@gmail.com" target="_blank">dmitry.kozliuk@gmail.com</a>><br>
-- <br>
2.47.1<br>
<br></blockquote><div><br></div><div>Looks like it makes sense overall, thanks.</div><div><br></div><div>Reviewed-by: Patrick Robb <<a href="mailto:probb@iol.unh.edu">probb@iol.unh.edu</a>> </div></div></div>