[kde-linux/os-autoinst-distri-kdelinux] utils: utils: add option to run test suite with encryption

Bhushan Shah <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a1169a6477fab1fde5b4396ac1cbf80e2b0b5eda by Bhushan Shah.
Committed on 20/07/2026 at 11:55.
Pushed by bshah into branch 'master'.

utils: add option to run test suite with encryption

Both jobs.sh and run_job.sh gains option to run the test cases with
full-disk encryption enabled

M  +13   -3    utils/jobs.sh
M  +5    -0    utils/run_job.sh

https://invent.kde.org/kde-linux/os-autoinst-distri-kdelinux/-/commit/a1169a6477fab1fde5b4396ac1cbf80e2b0b5eda

diff --git a/utils/jobs.sh b/utils/jobs.sh
index 530d3b7..78ce57a 100755
--- a/utils/jobs.sh
+++ b/utils/jobs.sh
@@ -11,9 +11,11 @@ if [[ -z "${CASEDIR:-}" ]]; then
 fi
 
 UPGRADE=0
+FDE=0
 while [[ $# -gt 0 ]]; do
     case "$1" in
         --upgrade) UPGRADE=1; shift ;;
+        --encrypt) FDE=1; shift ;;
         *) echo "[ERROR] Unknown argument: $1" >&2; exit 1 ;;
     esac
 done
@@ -144,6 +146,11 @@ else
     INSTALLED_FLAVOR=installed
 fi
 
+if [[ "$FDE" -eq 1 ]]; then
+    LIVE_FLAVOR+="-encrypted"
+    INSTALLED_FLAVOR+="-encrypted"
+fi
+
 # Put the whole flow in its own job group so each flow gets its own build overview,
 # and the dependency chain stays within one group. Mock doesn't have any groups, so don't set it here.
 GROUP=
@@ -164,7 +171,8 @@ run_job \
     --live "$INSTALL_LIVE" \
     --hdd "$DISK" \
     --sysext "$SYSEXT_IMG" \
-    --build "$VERSION"
+    --build "$VERSION" \
+    $( [[ "$FDE" -eq 1 ]] && echo "--encrypt" )
 
 if [[ "$UPGRADE" -eq 1 ]]; then
     run_job \
@@ -173,7 +181,8 @@ if [[ "$UPGRADE" -eq 1 ]]; then
         --hdd "$DISK" \
         --sysext "$SYSEXT_IMG" \
         --build "$VERSION" \
-        --upgrade
+        --upgrade \
+        $( [[ "$FDE" -eq 1 ]] && echo "--encrypt" )
 fi
 
 run_job \
@@ -181,7 +190,8 @@ run_job \
     --flavor "$INSTALLED_FLAVOR" \
     --hdd "$DISK" \
     --sysext "$SYSEXT_IMG" \
-    --build "$VERSION"
+    --build "$VERSION" \
+    $( [[ "$FDE" -eq 1 ]] && echo "--encrypt" )
 
 if [[ "$TESTS_FAILED" -ne 0 ]]; then
     echo "[ERROR] One or more jobs had failing tests." >&2
diff --git a/utils/run_job.sh b/utils/run_job.sh
index 2eb7b13..28a5380 100755
--- a/utils/run_job.sh
+++ b/utils/run_job.sh
@@ -57,6 +57,10 @@ while [[ $# -gt 0 ]]; do
             UPGRADE=1
             shift
             ;;
+        --encrypt)
+            FDE=1
+            shift
+            ;;
         *)
             echo "[ERROR] Unknown argument: $1" >&2
             exit 1
@@ -275,6 +279,7 @@ JOB_RESPONSE=$(openqa -X POST jobs \
     $( [[ -n "$LIVE" ]] && echo DO_INSTALL=1 ) \
     $( [[ -n "$LIVE" ]] && echo HDDSIZEGB=30 ) \
     $( [[ "$UPGRADE" -eq 1 ]] && echo DO_UPGRADE=1 ) \
+    $( [[ "$FDE" -eq 1 ]] && echo FDE_INSTALL=1 ) \
     BOOT_HDD_IMAGE=1 \
     BACKEND=qemu \
     UEFI=1 \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.