[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: flightgear: Prepare to run test suite.
From: |
guix-commits |
Subject: |
08/08: gnu: flightgear: Prepare to run test suite. |
Date: |
Wed, 3 Nov 2021 18:12:31 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 19c38b2acc99644c4104c8526d2586b3ee67f5a7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Nov 3 23:56:01 2021 +0200
gnu: flightgear: Prepare to run test suite.
* gnu/packages/games.scm (flightgear)[arguments]: Add phase to build
test binary. Add phase to skip some failing tests. Move 'check phase to
after 'install-data.
---
gnu/packages/games.scm | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 7bab31f..eb3db37 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9331,11 +9331,25 @@ and also provides the base for the FlightGear Flight
Simulator.")
(string-append "-DFG_DATA_DIR="
(assoc-ref %outputs "out")
"/share/flightgear"))
- ;; TODO: test cannot be run because the "run_test_suite" executable
- ;; does not seem to be built.
+ ;; TODO: test suite segfaults.
#:tests? #f
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'skip-some-tests
+ (lambda _
+ (substitute* "test_suite/unit_tests/Instrumentation/test_gps.hxx"
+ (("CPPUNIT_TEST\\(testLongLegWestbound\\);" all)
+ (string-append "// " all))
+ (("CPPUNIT_TEST\\(testFinalLegCourse\\);" all)
+ (string-append "// " all)))))
+ (add-after 'build 'build-test-suite
+ (lambda* args
+ ((assoc-ref %standard-phases 'build)
+ #:make-flags (list "fgfs_test_suite"))))
+ ;; Test suite needs access to FGData so run it after 'install.
+ (delete 'check)
+ (add-after 'install-data 'check
+ (assoc-ref %standard-phases 'check))
(add-after 'install 'install-data
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((share (string-append (assoc-ref outputs "out")
"/share/flightgear")))
- branch master updated (a18fea5 -> 19c38b2), guix-commits, 2021/11/03
- 01/08: gnu: flightgear: Update to 2020.3.11., guix-commits, 2021/11/03
- 04/08: gnu: flightgear: Build with newer inputs., guix-commits, 2021/11/03
- 06/08: gnu: simgear: Remove bundled expat., guix-commits, 2021/11/03
- 08/08: gnu: flightgear: Prepare to run test suite.,
guix-commits <=
- 07/08: gnu: flightgear: Use system cppunit., guix-commits, 2021/11/03
- 03/08: gnu: simgear: Honor #:tests? flag., guix-commits, 2021/11/03
- 02/08: gnu: flightgear: Build with qt-build-system., guix-commits, 2021/11/03
- 05/08: gnu: Remove openscenegraph-3.4., guix-commits, 2021/11/03