aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 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-sets)
  #:use-module (guix sets)
  #:use-module (srfi srfi-1)
  #:use-module (srfi srfi-26)
  #:use-module (srfi srfi-64))


(test-begin "sets")

(test-assert "set-contains?"
  (let* ((lst (iota 123))
         (set (list->set lst)))
    (and (every (cut set-contains? set <>)
                lst)
         (not (set-contains? set -1)))))

(test-assert "set->list"
  (let* ((lst (iota 123))
         (set (list->set lst)))
    (lset= = lst (set->list set))))

(test-assert "set-union"
  (let* ((a  (list 'a))
         (b  (list 'b))
         (s1 (setq a))
         (s2 (setq b))
         (s3 (set-union s1 s2)))
    (and (set-contains? s3 a)
         (set-contains? s3 b))))

(test-end)
td>2019-01-20gnu: csound: Update to 6.12.0....* gnu/packages/audio.scm (csound): Update to 6.12.0. Tobias Geerinckx-Rice 2019-01-16gnu: Move dbm databases to new module....* gnu/packages/databases.scm (gdbm, bdb, bdb-5.3): Move from here... * gnu/packages/dbm.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/audio.scm, gnu/packages/avahi.scm, gnu/packages/backup.scm, gnu/packages/cobol.scm, gnu/packages/cyrus-sasl.scm, gnu/packages/databases.scm, gnu/packages/finance.scm, gnu/packages/game-development.scm, gnu/packages/gnome.scm, gnu/packages/guile.scm, gnu/packages/ibus.scm, gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/mail.scm, gnu/packages/man.scm, gnu/packages/nvi.scm, gnu/packages/openldap.scm, gnu/packages/package-management.scm, gnu/packages/php.scm, gnu/packages/pulseaudio.scm, gnu/packages/python.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/sawfish.scm: Update module references. Ricardo Wurmus 2019-01-15gnu: Separate Python core packages from the rest....* gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references. Ricardo Wurmus 2019-01-13gnu: fluidsynth: Update to 2.0.3....* gnu/packages/audio.scm (fluidsynth): Update to 2.0.3. Marius Bakke 2018-12-24gnu: ardour: Sort inputs and native-inputs....* gnu/packages/audio.scm (ardour)[inputs]: Sort alphabetically. [native-inputs]: Same. Brendan Tildesley 2018-12-24gnu: ardour: Add libusb input....* gnu/packages/audio.scm (ardour): [inputs]: add libusb. Brendan Tildesley 2018-12-24gnu: ardour: Add a phase to install Freedesktop files....* gnu/packages/audio.scm (ardour): [arguments]: - Correct comment about --freedesktop flag. - Adjust pretty printing for consistency. - Add 'install-free-desktop-files phase to actually install the files that were build. Fixes bug#33585 reported by baconicsynergy. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Brendan Tildesley 2018-12-09gnu: supercollider: Update to 3.10.0....* gnu/packages/audio.scm (supercollider): Update to 3.10.0. [arguments]<#:phases>[disable-broken-tests]: Modify. Danny Milosavljevic 2018-12-08gnu: patchage: Fix build....Fixes <https://bugs.gnu.org/33677>. * gnu/packages/audio.scm (patchage)[arguments]: Use Python 2. Ricardo Wurmus 2018-12-08gnu: supercollider: Fix build....Fixes <https://bugs.gnu.org/33674>. * gnu/packages/audio.scm (supercollider)[arguments]: Add phase to fix build with Boost 1.68. [inputs]: Replace boost with boost-cxx14. Ricardo Wurmus 2018-12-08gnu: qsynth: Update to 0.5.4....* gnu/packages/audio.scm (qsynth): Update to 0.5.4. Ricardo Wurmus 2018-12-08gnu: qjackctl: Update 0.5.5....* gnu/packages/audio.scm (qjackctl): Update to 0.5.5. Signed-off-by: 宋文武 <iyzsong@member.fsf.org> Amar Singh 2018-11-29Merge branch 'master' into core-updatesMarius Bakke 2018-11-26gnu: Add libopenshot-audio....* gnu/packages/audio.scm (libopenshot-audio): New variable. Eric Bavier 2018-11-24Merge branch 'master' into core-updatesMarius Bakke 2018-11-22gnu: jalv: Build with python-2....* gnu/packages/audio.scm (jalv)[arguments]: Build with python-2. Efraim Flashner 2018-11-22gnu: supercollider: Update to 3.9.3....* gnu/packages/audio.scm (supercollider): Update to 3.9.3. Nicolas Goaziou 2018-11-21Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner 2018-11-20gnu: autotalent: Simplify 'license'....* gnu/packages/audio.scm (autotalent)[license]: Remove unnecessary 'list'. Ludovic Courtès 2018-11-20Merge branch 'master' into core-updatesMarius Bakke 2018-11-20gnu: fluidsynth: Update to 2.0.2....* gnu/packages/audio.scm (fluidsynth): Update to 2.0.2. Marius Bakke 2018-11-19gnu: Add autotalent....* gnu/packages/audio.scm (autotalent): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Thorsten Wilms 2018-11-18gnu: Add libfdk 'FDK AAC' library....* gnu/packages/audio.scm (libfdk): New variable. Leo Famulari 2018-11-17llvm: Build with RTTI by default....Increases size of llvm@6 by 2.5MiB (2.5%), but saves building specialized llvm's with rtti enabled for packages that require RTTI when linking with the llvm libraries. * gnu/packages/llvm.scm (llvm-3.8-with-rtti): Remove variable. (llvm)[arguments]: Add '-DLLVM_REQUIRES_RTTI=1' to #:configure-flags. * gnu/packages/audio.scm (faust-2)[native-inputs]: 'llvm-3.8-with-rtti' -> 'llvm-3.8'. Eric Bavier 2018-11-16gnu: Add caps-plugins-lv2....* gnu/packages/audio.scm (caps-plugins-lv2): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Thorsten Wilms 2018-11-14gnu: audio: Return #t from all phases....* gnu/packages/audio.scm (clalsadrv, jack-2, libsbsms, zita-convolver) (zita-resampler, zita-alsa-pcmi, gsm, cava): Return #t from all phases. (ladspa): Use 'modify-phases'. Return #t from all phases. Mark H Weaver 2018-11-14Merge branch 'master' into core-updatesMarius Bakke 2018-11-11gnu: faust-2: Update to 2.5.23....* gnu/packages/audio.scm (faust-2): Update to 2.5.23. [native-inputs]: Replace llvm-with-rtti with llvm-3.8-with-rtti. * gnu/packages/llvm.scm (llvm-with-rtti): Rename this variable... (llvm-3.8-with-rtti): ...to this variable; inherit from llvm-3.8. Ricardo Wurmus 2018-11-10gnu: rtmidi: Remove custom bootstrap phase....* gnu/packages/audio.scm (rtmidi)[arguments]: Remove autoconf phase. Ricardo Wurmus 2018-11-10gnu: portaudio: Remove custom bootstrap phase....* gnu/packages/audio.scm (portaudio)[arguments]: Remove autoreconf phase. Ricardo Wurmus 2018-11-10gnu: cava: Fetch sources from git....* gnu/packages/audio.scm (cava)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: cli-visualizer: Fetch sources from git....* gnu/packages/audio.scm (cli-visualizer)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: dcadec: Fetch sources from git....* gnu/packages/audio.scm (dcadec)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: cuetools: Fetch sources from git....* gnu/packages/audio.scm (cuetools)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: xjackfreak: Fetch sources from git....* gnu/packages/audio.scm (xjackfreak)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: rsound: Fetch sources from git....* gnu/packages/audio.scm (rsound)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: rtmidi: Fetch sources from git....* gnu/packages/audio.scm (rtmidi)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: infamous-plugins: Fetch sources from git....* gnu/packages/audio.scm (infamous-plugins)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: swh-plugins-lv2: Fetch sources from git....* gnu/packages/audio.scm (swh-plugins-lv2)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: csound: Fetch sources from git....* gnu/packages/audio.scm (csound)[source]: Fetch from git. Ricardo Wurmus 2018-11-10gnu: lvtk: Fetch sources from git....* gnu/packages/audio.scm (lvtk)[source]: Fetch from git. Ricardo Wurmus 2018-11-05Merge branch 'master' into core-updatesMarius Bakke 2018-10-23gnu: suil: Use python2 for building....* gnu/packages/audio.scm (suil)[arguments]: Set #:python. Marius Bakke 2018-10-23gnu: bs1770gain: Update to 0.5.1....* gnu/packages/audio.scm (bs1770gain): Update to 0.5.1. Tobias Geerinckx-Rice 2018-10-21Merge branch 'master' into core-updatesMarius Bakke 2018-10-21gnu: fluidsynth: Update to 2.0.1....* gnu/packages/audio.scm (fluidsynth): Update to 2.0.1. (fluidsynth-1): New public variable. * gnu/packages/games.scm (gzdoom)[inputs]: Change FLUIDSYNTH to FLUIDSYNTH-1. * gnu/packages/music.scm (lmms)[inputs]: Likewise. Marius Bakke 2018-10-21gnu: openal: Update to 1.19.1....* gnu/packages/audio.scm (openal): Update to 1.19.1. Marius Bakke