[system/kio-snapshot] /: ci & autotests: produce junit xml reports

Bharadwaj Raju <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 70fc6913f08f3bb09f90caaa89932aed41633c96 by Bharadwaj Raju.
Committed on 29/07/2026 at 03:56.
Pushed by bharadwaj-raju into branch 'master'.

ci & autotests: produce junit xml reports

M  +4    -0    .gitlab-ci.yml
M  +2    -2    autotests/CMakeLists.txt
M  +5    -5    ci_build_test.sh

https://invent.kde.org/system/kio-snapshot/-/commit/70fc6913f08f3bb09f90caaa89932aed41633c96

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a8e4f3c..53d431f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -39,3 +39,7 @@ build_tests_kdelinux:
   script: ./ci_build_test.sh
   artifacts:
     untracked: false
+    when: always
+    access: all
+    paths:
+      - build/**/*-report.xml
diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt
index a161288..58d3f42 100644
--- a/autotests/CMakeLists.txt
+++ b/autotests/CMakeLists.txt
@@ -3,8 +3,8 @@
 
 add_executable(SnapshotWorkerTest test_snapshot_worker.cpp)
 target_link_libraries(SnapshotWorkerTest PRIVATE Qt6::Core Qt6::Test KF6::KIOCore KF6::Solid)
-add_test(NAME SnapshotWorkerTest COMMAND SnapshotWorkerTest)
+add_test(NAME SnapshotWorkerTest COMMAND SnapshotWorkerTest -o snapshot-worker-report.xml,junitxml)
 
 add_executable(FileSnapshotsWorkerTest test_filesnapshots_worker.cpp)
 target_link_libraries(FileSnapshotsWorkerTest PRIVATE Qt6::Core Qt6::Test KF6::KIOCore)
-add_test(NAME FileSnapshotsWorkerTest COMMAND FileSnapshotsWorkerTest)
+add_test(NAME FileSnapshotsWorkerTest COMMAND FileSnapshotsWorkerTest -o filesnapshots-worker-report.xml,junitxml)
diff --git a/ci_build_test.sh b/ci_build_test.sh
index 1e13937..bfb116c 100755
--- a/ci_build_test.sh
+++ b/ci_build_test.sh
@@ -9,10 +9,10 @@ sudo pacman --sync --refresh --noconfirm btrfs-progs kio solid ki18n cmake base-
 mkdir build
 cmake -B build -S . -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Debug
 cmake --build build
-SOURCEDIR=$PWD
-cd /tmp
-bash "$SOURCEDIR/autotests/prep_btrfs.sh"
-cd "$SOURCEDIR"
-export KIO_SNAPSHOT_TEST_MOUNTPOINT=/tmp/butter-tray
+mkdir fstmp
+cd fstmp
+bash ../autotests/prep_btrfs.sh
+cd ..
+export KIO_SNAPSHOT_TEST_MOUNTPOINT="$PWD/fstmp/butter-tray"
 export QT_LOGGING_RULES="default.debug=true"
 cmake --build build --target test
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.