guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: terminology: Run test suite.


From: guix-commits
Subject: 02/02: gnu: terminology: Run test suite.
Date: Sun, 7 Apr 2019 03:49:46 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 32c055fd32059cbe0ab6f94eb3ef3a8c7e49dc92
Author: Efraim Flashner <address@hidden>
Date:   Sun Apr 7 10:48:49 2019 +0300

    gnu: terminology: Run test suite.
    
    * gnu/packages/enlightenment.scm (terminology)[arguments]: Add
    configure-flag to build the test binary.  Use custom 'check phase.  Add
    phase to remove test binary.
---
 gnu/packages/enlightenment.scm | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/enlightenment.scm b/gnu/packages/enlightenment.scm
index e162b20..790be1a 100644
--- a/gnu/packages/enlightenment.scm
+++ b/gnu/packages/enlightenment.scm
@@ -204,11 +204,24 @@ removable devices or support for multimedia.")
                   #t))))
     (build-system meson-build-system)
     (arguments
-     '(#:phases
+     `(#:configure-flags '("-Dtests=true")
+       #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'set-home-directory
            ;; FATAL: Cannot create run dir '/homeless-shelter/.run' - errno=2
-           (lambda _ (setenv "HOME" "/tmp") #t)))))
+           (lambda _ (setenv "HOME" "/tmp") #t))
+         (replace 'check
+           (lambda _
+             (with-directory-excursion
+               (string-append "../" ,name "-" ,version "/tests")
+               (invoke "sh" "run_tests.sh" "--verbose"
+                       "-t" "../../build/src/bin/tytest"))))
+         (add-after 'install 'remove-test-binary
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; This file is not meant to be installed.
+             (delete-file (string-append (assoc-ref outputs "out")
+                                         "/bin/tytest"))
+             #t)))))
     (native-inputs
      `(("gettext" ,gettext-minimal)
        ("perl" ,perl)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]