gnu: kxmlgui: Enable tests.
* gnu/packages/kde-frameworks.scm (kxmlgui): Use gexp. [arguments]: Enable all but 2 tests. Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
		
							parent
							
								
									27eb4944bb
								
							
						
					
					
						commit
						d92e4f59bb
					
				
					 1 changed files with 10 additions and 9 deletions
				
			
		| 
						 | 
					@ -3209,7 +3209,7 @@ the passwords on KDE work spaces.")
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     (list kconfig kconfigwidgets))
 | 
					     (list kconfig kconfigwidgets))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list extra-cmake-modules qttools-5))
 | 
					     (list extra-cmake-modules qttools-5 xorg-server-for-tests))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     (list attica
 | 
					     (list attica
 | 
				
			||||||
           kauth
 | 
					           kauth
 | 
				
			||||||
| 
						 | 
					@ -3226,14 +3226,15 @@ the passwords on KDE work spaces.")
 | 
				
			||||||
           qtbase-5
 | 
					           qtbase-5
 | 
				
			||||||
           sonnet))
 | 
					           sonnet))
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:tests? #f ; FIXME: 1/5 tests fail.
 | 
					     (list #:phases
 | 
				
			||||||
       #:phases
 | 
					       #~(modify-phases %standard-phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					         (replace 'check
 | 
				
			||||||
         (add-before 'check 'check-setup
 | 
					           (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
           (lambda _
 | 
					             (when tests?
 | 
				
			||||||
             (setenv "HOME" (getcwd))
 | 
					               (setenv "HOME" (getcwd))
 | 
				
			||||||
             ;; make Qt render "offscreen", required for tests
 | 
					               (setenv "QT_QPA_PLATFORM" "offscreen") ;; These tests fail
 | 
				
			||||||
             (setenv "QT_QPA_PLATFORM" "offscreen"))))))
 | 
					               (invoke "ctest" "-E"
 | 
				
			||||||
 | 
								   "(ktoolbar_unittest|kxmlgui_unittest)")))))))
 | 
				
			||||||
    (home-page "https://community.kde.org/Frameworks")
 | 
					    (home-page "https://community.kde.org/Frameworks")
 | 
				
			||||||
    (synopsis "Framework for managing menu and toolbar actions")
 | 
					    (synopsis "Framework for managing menu and toolbar actions")
 | 
				
			||||||
    (description "KXMLGUI provides a framework for managing menu and toolbar
 | 
					    (description "KXMLGUI provides a framework for managing menu and toolbar
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue