summary refs log tree commit diff
path: root/gnu/packages/android.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@scratchpost.org>2018-05-10 01:27:01 +0200
committerDanny Milosavljevic <dannym@scratchpost.org>2018-05-10 01:27:01 +0200
commite55e6d30f5aea01ce96edd27c97b73a71b07b627 (patch)
treea9575cfcaef9d5edc3a2ed52fc4a0c8e72187e83 /gnu/packages/android.scm
parent52bdbaf2d32bb159a3613d1120be3792ab1e3691 (diff)
downloadguix-e55e6d30f5aea01ce96edd27c97b73a71b07b627.tar.gz
gnu: android-libziparchive: Enable tests.
* gnu/packages/android.scm (android-libziparchive)[arguments]: Enable tests.
<#:phases>[setenv]: New phase.
[native-inputs]: Add android-libbase, android-libutils, android-liblog.
Diffstat (limited to 'gnu/packages/android.scm')
-rw-r--r--gnu/packages/android.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 7aad719135..82f6f5360e 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -270,13 +270,16 @@ various Android core host applications.")
     (source (android-platform-system-core version))
     (build-system android-ndk-build-system)
     (arguments
-     `(#:tests? #f ; TODO.
-       #:make-flags '("CFLAGS=-Wno-error"
+     `(#:make-flags '("CFLAGS=-Wno-error"
                       "CXXFLAGS=-fpermissive -Wno-error -std=gnu++11")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'enter-source
            (lambda _ (chdir "libziparchive") #t))
+         (add-before 'check 'setenv
+           (lambda _
+             (setenv "ziparchive_tests_host_PARAMS" "--test_data_dir=testdata")
+             #t))
          (add-after 'install 'install-headers
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
@@ -285,6 +288,10 @@ various Android core host applications.")
                #t))))))
     (inputs
      `(("zlib" ,zlib)))
+    (native-inputs
+     `(("android-libbase" ,android-libbase)
+       ("android-libutils" ,android-libutils)
+       ("android-liblog" ,android-liblog)))
     (home-page "https://developer.android.com/")
     (synopsis "Android platform ZIP library")
     (description "@code{android-libziparchive} is a library in common use by the