aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/audio.scm
blob: 7bf7d4ef1467efeb035c676e14db23ebe1de76ed (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
;;;
;;; 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 (gnu tests audio)
  #:use-module (gnu tests)
  #:use-module (gnu system)
  #:use-module (gnu system vm)
  #:use-module (gnu services)
  #:use-module (gnu services audio)
  #:use-module (gnu packages mpd)
  #:use-module (guix gexp)
  #:export (%test-mpd))

(define %mpd-os
  (simple-operating-system
   (service mpd-service-type)))

(define (run-mpd-test)
  "Run tests in %mpd-os, which has mpd running."
  (define os
    (marionette-operating-system
     %mpd-os
     #:imported-modules '((gnu services herd))))

  (define vm
    (virtual-machine os))

  (define test
    (with-imported-modules '((gnu build marionette))
      #~(begin
          (use-modules (srfi srfi-64)
                       (gnu build marionette))
          (define marionette
            (make-marionette (list #$vm)))

          (mkdir #$output)
          (chdir #$output)

          (test-begin "mpd")

          (test-assert "service is running"
            (marionette-eval
             '(begin
                (use-modules (gnu services herd))
                (start-service 'mpd))
             marionette))

          (test-assert "mpd listening"
            ;; Wait until mpd is actually listening before spawning 'mpc'.
            (wait-for-tcp-port 6600 marionette))

          (test-equal "mpc connect"
            0
            (marionette-eval
             '(system* #$(file-append mpd-mpc "/bin/mpc"))
             marionette))

          (test-end)
          (exit (= (test-runner-fail-count (test-runner-current)) 0)))))
  (gexp->derivation "mpd-test" test))

(define %test-mpd
  (system-test
   (name "mpd")
   (description "Test that the mpd can run and be connected to.")
   (value (run-mpd-test))))
id=85c503331683088a2f262ecadfe04851a2aee1a9'>gnu: libtcod: Remove trailing boolean....* gnu/packages/game-development.scm (libtcod): Remove trailing boolean. Signed-off-by: Ludovic Courtès <ludo@gnu.org> jgart 2022-02-14gnu: tiled: Update to 1.8.1....* gnu/packages/game-development.scm (tiled): Update to 1.8.1. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Jai Vetrivelan 2022-01-15gnu: python2-renpy: Update to 7.4.11....* gnu/packages/game-development.scm (python2-renpy): Update to 7.4.11. Liliana Marie Prikler 2022-01-15gnu: python2-pygame-sdl2: Update to renpy version 7.4.11....* gnu/packages/game-development.scm (python2-pygame-sdl2): Update to renpy version 7.4.11. Liliana Marie Prikler 2022-01-15gnu: renpy: Move renpy command to aux-files....* gnu/packages/aux-files/renpy/renpy.in: New file. * gnu/packages/game-development.scm (renpy)[install]: Use renpy.in with substitute*. * Makefile.am (AUX_FILES): Add it here. Liliana Marie Prikler 2022-01-15gnu: python2-renpy: Do not delete non-existing file....* gnu/packages/game-development.scm (python2-renpy)[build]: Don't delete renpy/__init__.pyc, it is no longer being built. Adjust comment accordingly. Liliana Marie Prikler 2022-01-07gnu: love: Update to 11.4....* gnu/packages/game-development.scm (love): Update to 11.4. [source]: Update upstream URL. Tobias Geerinckx-Rice 2022-01-06gnu: godot: Remove input labels....* gnu/packages/game-development.scm (godot)[inputs]: Remove input labels. [arguments]: Tweak accordingly. Tobias Geerinckx-Rice 2022-01-06gnu: godot: Update to 3.4.2....* gnu/packages/game-development.scm (godot): Update to 3.4.2. [arguments]: Don't explicitly return #t from phases. Tobias Geerinckx-Rice 2022-01-03gnu: openmw: Update to 0.47.0....* gnu/packages/game-development.scm (openmw): Update to 0.47.0. [arguments]: Add "-DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON" to configure-flags. [inputs]: Use new simplified format. Add new dependencies lz4 and recastnavigation. Signed-off-by: Leo Famulari <leo@famulari.name> Felix Gruber 2022-01-03gnu: bullet: Build with double precision arithmetics....* gnu/packages/game-development.scm (bullet)[arguments]: Add configure flag for double precision arithmetics. Signed-off-by: Leo Famulari <leo@famulari.name> Felix Gruber 2022-01-03gnu: Add recastnavigation....* gnu/packages/game-development.scm (recastnavigation): New variable. Signed-off-by: Leo Famulari <leo@famulari.name> Felix Gruber 2021-12-17gnu: Remove unneeded uses of custom GCC versions....* gnu/packages/bioinformatics.scm (libmaus2, biobambam2)[native-inputs]: Remove GCC-10. * gnu/packages/game-development.scm (libresprite, python-pyxel)[native-inputs]: Likewise. * gnu/packages/lua.scm (emilua)[native-inputs]: Likewise. * gnu/packages/radio.scm (sdr++)[native-inputs]: Likewise. * gnu/packages/wm.scm (fnott)[native-inputs]: Likewise. * gnu/packages/text-editors.scm (kakoune)[native-inputs]: Likewise. (scintilla)[native-inputs]: Remove GCC-9. * gnu/packages/build-tools.scm (bear)[native-inputs]: Likewise. * gnu/packages/cpp.scm (magic-enum)[native-inputs]: Likewise. * gnu/packages/games.scm (openttd)[native-inputs]: Likewise. (schiffbruch)[native-inputs]: Remove GCC-11. * gnu/packages/music.scm (liquidsfz, geonkick)[native-inputs]: Remove GCC-9. * gnu/packages/fcitx5.scm (fcitx5, libime, fcitx5-configtool)[native-inputs]: Likewise. * gnu/packages/wine.scm (dxvk32)[native-inputs]: Likewise. * gnu/packages/ftp.scm (libfilezilla)[native-inputs]: Remove GCC-8. * gnu/packages/image.scm (blurhash)[native-inputs]: Likewise. * gnu/packages/jami.scm (libring)[native-inputs]: Likewise. * gnu/packages/pdf.scm (xournalpp)[native-inputs]: Likewise. * gnu/packages/telegram.scm (webrtc-for-telegram-desktop, telegram-desktop)[native-inputs]: Likewise. Marius Bakke 2021-12-17gnu: grfcodec: Fix build with GCC 10....* gnu/packages/patches/grfcodec-gcc-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/game-development.scm (grfcodec)[source](patches): New field. [arguments]: Remove trailing #t. Marius Bakke 2021-12-13gnu: Further simplify package inputs....This is the result of running: ./pre-inst-env guix style --input-simplification=safe and manually undoing changes on a dozen of packages to reduce rebuilds (derivations for emacs, icecat, and libreoffice are unchanged.) Ludovic Courtès 2021-12-13gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-12-10Merge remote-tracking branch 'signed/master' into core-updatesMathieu Othacehe 2021-12-10gnu: godot: Update to 3.4....* gnu/packages/game-development.scm (godot): Update to 3.4. Signed-off-by: Leo Famulari <leo@famulari.name> Andy Tai 2021-12-05Merge remote-tracking branch 'origin/master' into core-updates-frozenRicardo Wurmus 2021-12-02Revert "gnu: godot: Update to 3.4."...This reverts commit dd4365efa1c6fb609de9bd7cd10f9c82e064aed4. We reverted this commit because it broke the operation of the only package in Guix that depends on Godot, SuperStarfighter: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=52233#20 Leo Famulari 2021-12-02gnu: godot: Update to 3.4....* gnu/packages/game-development.scm (godot): Update to 3.4. [source]: Add new bundled dependencies to the origin snippet. Signed-off-by: Leo Famulari <leo@famulari.name> Andy Tai 2021-12-01gnu: bullet: Update to 3.17....* gnu/packages/game-development.scm (bullet): Update to 3.17. [arguments]<#:configure-flags>: Disable access to third-party libs. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Andy Tai