@@ -364,17 +364,19 @@ jobs:
364364 xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" cmake --build build --target all
365365 cd build
366366 mkdir -p Testing/Temporary
367- echo "Running tests with minimal output..."
368- xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./OpenCryptUITest -v2 | tee Testing/Temporary/LastTest.log
367+ chmod +x run_tests.sh
368+ echo "Running tests with filtered output..."
369+ xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./run_tests.sh -v2 | tee Testing/Temporary/LastTest.log
369370
370371 - name : Run tests (macOS)
371372 if : matrix.os == 'macos-latest'
372373 run : |
373374 cmake --build build --target all
374375 cd build
375376 mkdir -p Testing/Temporary
376- echo "Running tests with minimal output..."
377- ./OpenCryptUITest -v2 | tee Testing/Temporary/LastTest.log
377+ chmod +x run_tests.sh
378+ echo "Running tests with filtered output..."
379+ ./run_tests.sh -v2 | tee Testing/Temporary/LastTest.log
378380
379381 - name : Run tests (Windows)
380382 if : matrix.os == 'windows-latest'
@@ -383,13 +385,25 @@ jobs:
383385 cmake --build build --target all
384386 cd build
385387 mkdir -p Testing/Temporary
386- echo "Running tests with minimal output..."
388+ echo "Running tests with filtered output..."
387389 export QT_QPA_PLATFORM=minimal
388390
389391 if [ -f "./OpenCryptUITest.exe" ]; then
390392 chmod +x ./OpenCryptUITest.exe
391- # Use -v2 instead of -v4, as -v4 is not a valid option for QtTest
392- ./OpenCryptUITest.exe -v2 | tee Testing/Temporary/LastTest.log
393+ # Create a Windows-specific run_tests.bat script
394+ cat > run_tests.bat << EOF
395+ @echo off
396+ : : Set Qt logging rules to disable Qt internal categories
397+ set QT_LOGGING_RULES=qt.*=false
398+ set QT_MESSAGE_PATTERN=[%{type}] %{message}
399+
400+ : : Run the test with filtering
401+ .\OpenCryptUITest.exe %*
402+ EOF
403+ chmod +x run_tests.bat
404+
405+ # Run the tests using our script
406+ ./run_tests.bat -v2 | tee Testing/Temporary/LastTest.log
393407 else
394408 echo "ERROR : OpenCryptUITest.exe not found!" | tee Testing/Temporary/LastTest.log
395409 echo "Directory contents : $(ls -la)" | tee -a Testing/Temporary/LastTest.log
0 commit comments