aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (test-ipfs)
  #:use-module (guix ipfs)
  #:use-module ((guix utils) #:select (call-with-temporary-directory))
  #:use-module (guix tests)
  #:use-module (web uri)
  #:use-module (srfi srfi-64))

;; Test the (guix ipfs) module.

(define (ipfs-gateway-running?)
  "Return true if the IPFS gateway is running at %IPFS-BASE-URL."
  (let* ((uri    (string->uri (%ipfs-base-url)))
         (socket (socket AF_INET SOCK_STREAM 0)))
    (define connected?
      (catch 'system-error
        (lambda ()
          (format (current-error-port)
                  "probing IPFS gateway at localhost:~a...~%"
                  (uri-port uri))
          (connect socket AF_INET INADDR_LOOPBACK (uri-port uri))
          #t)
        (const #f)))

    (close-port socket)
    connected?))

(unless (ipfs-gateway-running?)
  (test-skip 1))

(test-assert "add-file-tree + restore-file-tree"
  (call-with-temporary-directory
   (lambda (directory)
     (let* ((source  (dirname (search-path %load-path "guix/base32.scm")))
            (target  (string-append directory "/r"))
            (content (pk 'content (add-file-tree source))))
       (restore-file-tree (content-name content) target)
       (file=? source target)))))
15:13 -0400'>2023-03-28gnu: gst-plugins-bad: Update to 1.22.1 and reinstate a few tests....* gnu/packages/gstreamer.scm (gst-plugins-bad): Update to 1.22.1. [arguments]: Use meson-0.63. Remove the disable-asfmux-test and reinstate the msdkh264enc, svthevcenc, dash_mpd and curlhttpsrc tests. Maxim Cournoyer 2023-03-28gnu: gst-plugins-good: Update to 1.22.1....* gnu/packages/gstreamer.scm (gst-plugins-good): Update to 1.22.1. [arguments]: Use meson-0.63. Maxim Cournoyer 2023-03-28gnu: gst-plugins-base: Update to 1.22.1....* gnu/packages/gstreamer.scm (gst-plugins-base): Update to 1.22.1. [arguments]: Use meson-0.63. Maxim Cournoyer 2023-03-28gnu: gstreamer-docs: Update to 1.22.1....* gnu/packages/gstreamer.scm (gstreamer-docs): Update to 1.22.1. Maxim Cournoyer 2023-03-28gnu: gstreamer: Update to 1.22.1....* gnu/packages/gstreamer.scm (gstreamer): Update to 1.22.1. [arguments]: Use meson-0.63. Maxim Cournoyer 2023-03-23Merge remote-tracking branch 'origin/master' into staging....With resolved conflicts in: gnu/packages/ibus.scm gnu/packages/image.scm gnu/packages/lisp.scm gnu/packages/virtualization.scm Maxim Cournoyer 2023-03-17gnu: ccextractor: Update to 0.94 and fix build....* gnu/packages/gstreamer.scm (ccextractor): Update to 0.94. [source]: Apply patches. Add FIXME comment. [build-system]: Switch to gnu-build-system. [arguments]: Delete #tests? argument. Delete trailing #t and use gexps. Adjust configure flags accordingly, removing WITH_SHARING (doesn't exist for Autoconf) and adding '--without-rust'. Override check phase. [native-inputs]: Remove labels. Remove python-wrapper and perl. [propagated-inputs]: Remove labels. Remove nanomsg and zlib. Replace leptonica with leptonica-1.80. replace tesseract-ocr with tesseract-ocr-4. * gnu/packages/patches/ccextractor-add-missing-header.patch: New file. * gnu/packages/patches/ccextractor-autoconf-tesseract.patch: Likewise. * gnu/packages/patches/ccextractor-fix-ocr.patch: Likewise. * gnu/local.mk (dist_patch_DATA): Register them. Maxim Cournoyer 2023-02-27gnu: Add gst-plugins-espeak....* gnu/packages/gstreamer.scm (gst-plugins-espeak): New variable. Ricardo Wurmus 2023-02-08Merge branch 'master' into staging....With conflicts resolved in: gnu/packages/version-control.scm Maxim Cournoyer 2023-02-08gnu: gstreamer: Do not reference Python....* gnu/packages/gstreamer.scm (gstreamer) [native-inputs]: Replace python-wrapper with python. [arguments]: List python in #:disallowed-references. Add a 'do-not-capture-python phase. Maxim Cournoyer 2023-01-19gnu: Fix home-page typos...* gnu/packages/accessibility.scm (espeakup): ttps -> https * gnu/packages/emacs-xyz.scm (emacs-soap-client): httpa -> https * gnu/packages/gstreamer.scm (esounds): Remove newline Signed-off-by: Ludovic Courtès <ludo@gnu.org> Morgan Smith 2022-12-13gnu: Add gst-plugins-good-qt....* gnu/packages/gstreamer.scm (gst-plugins-good-qt): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net> Martin Schmidt 2022-11-30gnu: gst-plugins-bad: Skip elements/camerabin test on riscv64-linux....* gnu/packages/gstreamer.scm (gst-plugins-bad)[arguments]: Skip the elements/camerabin test on riscv64-linux too. Efraim Flashner 2022-11-26gnu: gst-plugins-bad: Skip elements/camerabin test on some systems....It seems to frequently fail on i686-linux and aarch64-linux. * gnu/packages/gstreamer.scm (gst-plugins-bad)[arguments]: Skip the elements/camerabin test on i686-linux and aarch64-linux. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com> Christopher Baines 2022-10-16gnu: gst-plugins-bad: Build without faac....This is a follow-up to commit fe0ab5dbeacbd1b00a0b5bfeef6dafa82e0c037d. * gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Remove FAAC. Marius Bakke 2022-09-19gnu: svt-hevc: Limit to x86_64-linux....* gnu/packages/video.scm (svt-hevc)[supported-systems]: Remove i686-linux. Add comment. * gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Don't add svt-hevc when building for i686-linux. Efraim Flashner 2022-09-18gnu: gst-plugins-bad: Explicitly use OpenSSL@1.1....* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Change from OPENSSL to OPENSSL-1.1. Marius Bakke 2022-09-17gnu: gstreamer: Disable failing tests on i686 again....* gnu/packages/gstreamer.scm (gstreamer)[arguments]: Disable two tests on i686-linux. Marius Bakke 2022-09-03gnu: gst-plugins-bad: Use librsvg-for-system....* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Replace librsvg with librsvg-for-system. Efraim Flashner 2022-09-03gnu: gst-plugins-bad: Remove duplicate input....* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Remove duplicate architecture-specific input mediasdk. Efraim Flashner 2022-09-01gnu: gst-plugins-base: Skip more tests on some platforms....* gnu/packages/gstreamer.scm (gst-plugins-base)[arguments]: Extend the custom 'disable-problematic-tests phase to selectively remove some tests on certain architectures. Efraim Flashner 2022-09-01gnu: gst-plugins-base: Build with orc on all platforms....* gnu/packages/gstreamer.scm (gst-plugins-base)[propagated-inputs]: Build with orc on all platforms. Efraim Flashner 2022-08-27gnu: gst-plugins-base: Propagate gudev....This is a follow-up to commit f1e8cc6a9826f951fe95dc374b4db6fc8e25d981. * gnu/packages/gstreamer.scm (gst-plugins-base)[inputs]: Move LIBGUDEV ... [propagated-inputs]: ... here. Marius Bakke 2022-07-28gnu: gst-editing-services: Update FIXME comment....There are now 23 total tests in gst-editing-services. * gnu/packages/gstreamer.scm (gst-editing-services)[arguments]: Update FIXME. Liliana Marie Prikler 2022-07-28gnu: gst-python: Use new package style....* gnu/packages/gstreamer.scm (gst-python)[arguments]: Convert to list of G-Expressions. Liliana Marie Prikler 2022-07-28gnu: gst-editing-services: Use new package style....* gnu/packages/gstreamer.scm (gst-editing-services)[arguments]: Convert to list of G-Expressions. [native-inputs]: Drop labels. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-ugly: Use new package style....* gnu/packages/gstreamer.scm (gst-plugins-ugly)[arguments]: Convert to list of G-Expressions. [native-inputs]: Drop labels. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-bad: Use new package style....* gnu/packages/gstreamer.scm (gst-plugins-bad)[arguments]: Convert to list of G-Expressions. [native-inputs, inputs]: Drop labels. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-good: Use new package style....* gnu/packages/gstreamer.scm (gst-plugins-good)[arguments]: Convert to list of G-Expressions. [propagated-inputs, native-inputs]: Drop labels. [inputs]: Drop labels, also sort alphabetically. Liliana Marie Prikler 2022-07-28gnu: gstreamer: Use new package style....* gnu/packages/gstreamer.scm (gstreamer)[arguments]: Convert to list of G-Expressions. [native-inputs]: Drop labels. Liliana Marie Prikler 2022-07-28gnu: Add gst-plugins-bad-minimal....* gnu/packages/gstreamer.scm (gst-plugins-bad-minimal): New variable. Liliana Marie Prikler 2022-07-28gnu: gst-plugins/selection: Implement in terms of G-Expressions....* gnu/packages/gstreamer.scm (gst-plugins/selection)[#:configure-flags]: Use G-Expressions. [#:phases]: Likewise. Drop trailing #t. * gnu/packages/video.scm (pitivi)[inputs]: Adjust accordingly. Liliana Marie Prikler 2022-07-28gnu: python-gst: Update to 1.20.3....* gnu/packages/gstreamer.scm (python-gst): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gstreamer-docs: Update to 1.20.3....* gnu/packages/gstreamer.scm (gstreamer-docs): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gst-editing-services: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-editing-services): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gst-libav: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-libav): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-ugly: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-plugins-ugly): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-bad: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-plugins-bad): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-good: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-plugins-good): Update to 1.20.3. [source]<patches>: Remove “gst-plugins-good-fix-test.patch”. [arguments]<#:phases>: Add ‘absolutize-libsoup-library’ and ‘skip-failing-tests’. * gnu/packages/patches/gst-plugins-good-fix-test.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. Liliana Marie Prikler 2022-07-28gnu: gst-plugins-base: Update to 1.20.3....* gnu/packages/gstreamer.scm (gst-plugins-base): Update to 1.20.3. Liliana Marie Prikler 2022-07-28gnu: gstreamer: Update to 1.20.3....* gnu/packages/gstreamer.scm (gstreamer): Update to 1.20.3. [#:phases]: Drop ‘disable-some-tests’ and ‘disable-problematic-tests’. Liliana Marie Prikler 2022-07-28gnu: python-gst: Add upstream-name....* gnu/packages/gstreamer.scm (python-gst)[properties]: Add upstream-name. Liliana Marie Prikler 2022-07-18gnu: gst-plugins-bad: Limit inputs based on architecture....* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Only build with mediasdk and svt-hevc on supported architectures. Efraim Flashner 2022-04-19gnu: Fix input typoes....* gnu/packages/emulators.scm (nestopia-ue)[inputs]: Move ',' to its operand. * gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Same. Efraim Flashner 2022-04-05gnu: python-gst: Fix the concatenation of install path....Fixes a regression introduced in a5c2e7961c21ef8620ce4cfb3569109fbd694e1e. * gnu/packages/gstreamer.scm (python-gst): [arguments]: <configure-flags>: Add missing leading slash. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Zhu Zihao