aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2019 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-scripts)
  #:use-module (guix scripts)
  #:use-module (guix tests)
  #:use-module ((guix scripts build)
                #:select (%standard-build-options))
  #:use-module (srfi srfi-64))

;; Test the (guix scripts) module.


(test-begin "scripts")

(test-equal "parse-command-line"
  '((argument . "bar") (argument . "foo")
    (cores . 10)                                  ;takes precedence
    (substitutes? . #f) (keep-failed? . #t)
    (max-jobs . 77) (cores . 42))

  (with-environment-variable "GUIX_BUILD_OPTIONS" "-c 42 -M 77"
    (parse-command-line '("--keep-failed" "--no-substitutes"
                          "--cores=10" "foo" "bar")
                        %standard-build-options
                        (list '()))))

(test-equal "parse-command-line and --no options"
  '((argument . "foo")
    (substitutes? . #f))                          ;takes precedence

  (with-environment-variable "GUIX_BUILD_OPTIONS" "--no-substitutes"
    (parse-command-line '("foo")
                        %standard-build-options
                        (list '((substitutes? . #t))))))

(test-end "scripts")

;;; Local Variables:
;;; eval: (put 'with-environment-variable 'scheme-indent-function 2)
;;; End:
tr> 2021-12-30gnu: Blender: Update to 3.0.0....* gnu/packages/graphics.scm (blender): Update to 3.0.0. [inputs]: Add the "lib" output of zstd. Replace tbb-2020 with tbb. Co-authored-by: Leo Famulari <leo@famulari.name> raingloom 2021-12-30gnu: OpenVDB: Update to 8.2.0....* gnu/packages/graphics.scm (openvdb): Update to 8.2.0. [inputs]: Replace tbb-2020 with tbb. Leo Famulari 2021-12-30gnu: Add alembic....* gnu/packages/graphics.scm (alembic): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Vinicius Monego 2021-12-30gnu: Add openxr....* gnu/packages/graphics.scm (openxr): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr> Vinicius Monego 2021-12-22gnu: openexr: Update to 3.1.3....* gnu/packages/graphics.scm (openexr): Update to 3.1.3. Signed-off-by: Leo Famulari <leo@famulari.name> Vinicius Monego 2021-12-13gnu: Remove superfluous "linux-libre-headers" inputs....This input is already propagated from glibc. * gnu/packages/chromium.scm (ungoogled-chromium)[inputs]: Remove LINUX-LIBRE-HEADERS-5.10. * gnu/packages/linux.scm (btrfs-progs)[native-inputs]: Likewise. * gnu/packages/accessibility.scm (brltty)[inputs]: Remove LINUX-LIBRE-HEADERS. * gnu/packages/graphics.scm (directfb)[inputs]: Likewise. * gnu/packages/gstreamer.scm (libdc1394)[inputs]: Likewise. * gnu/packages/linux.scm (python-evdev)[native-inputs]: Likewise. (bcc, bpftrace)[inputs]: Likewise. * gnu/packages/networking.scm (lksctp-tools)[inputs]: Likewise. * gnu/packages/video.scm (tslib)[inputs]: Likewise. * gnu/packages/web-browsers.scm (links)[native-inputs]: Likewise. * gnu/packages/cdrom.scm (cdrtools)[inputs]: Likewise. [arguments]: Adjust accordingly. * gnu/packages/lirc.scm (lirc)[inputs, arguments]: Likewise. * gnu/packages/vpn.scm (xl2tpd)[inputs, arguments]: Likewise. 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-11-29gnu: agg: Fix build....* gnu/packages/patches/agg-2.5-gcc8.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/graphics.scm (agg)[source]: Use it. Mathieu Othacehe 2021-11-25gnu: lib2geom: Skip faulty test on i686....* gnu/packages/graphics.scm (lib2geom)[arguments]: When 'target-x86-32?', add 'skip-faulty-test' phase. Ludovic Courtès 2021-11-21gnu: blender: Update to 2.93.6....* gnu/packages/graphics.scm (blender): Update to 2.93.6. Ludovic Courtès 2021-11-18gnu: Move eglexternalplatform and egl-wayland to (gnu packages xorg)....This is to avoid a module cycle between (gnu packages xorg) and (gnu packages graphics). * gnu/packages/graphics.scm (eglexternalplatform, egl-wayland): Move to... * gnu/packages/xorg.scm: ... this file. Remove trailing #t. Maxim Cournoyer 2021-11-11gnu: lib2geom: Update to 1.1....* gnu/packages/graphics.scm (lib2geom): Update to 1.1. [source]: Remove patches, modules and snippet fields. [phases]: Remove trailing #t. * gnu/packages/patches/lib2geom-fix-tests.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. Maxim Cournoyer 2021-11-08Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner 2021-11-04gnu: Remove openscenegraph-3.4....* gnu/packages/graphics.scm (openscenegraph-3.4): Remove variable. Efraim Flashner 2021-11-03Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner 2021-11-03gnu: pstoedit: Update to 3.77....* gnu/packages/graphics.scm (pstoedit): Update to 3.77. Tobias Geerinckx-Rice 2021-10-31Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner 2021-10-25gnu: OpenEXR 2: Move the snippet into a build phase....This snippet was just working around a quirk of the Guix build environment. * gnu/packages/graphics.scm (openexr-2)[origin]: Remove snippet. [arguments]: Add a 'patch-test-directory' phase. Leo Famulari 2021-10-25gnu: OpenEXR: Move the snippet into a build phase....This snippet was just working around a quirk of the Guix build environment. * gnu/packages/graphics.scm (openexr)[origin]: Remove snippet. [arguments]: Add a 'patch-test-directory' phase. Leo Famulari 2021-10-24gnu: blender: Use older TBB and update header variables....* gnu/packages/graphics.scm (blender)[inputs]: Replace tbb with tbb-2020. [arguments]: Don't set CPATH; set C_INCLUDE_PATH and CPLUS_INCLUDE_PATH instead. Ricardo Wurmus 2021-10-24gnu: openvdb: Use older version of TBB....* gnu/packages/graphics.scm (openvdb)[inputs]: Replace tbb with tbb-2020. Ricardo Wurmus 2021-10-23gnu: Add OpenEXR 3....* gnu/packages/graphics.scm (openexr): New variable. (openexr-2)[home-page]: Use home-page from openexr. [synopsis]: Use synopsis from openexr. [description]: Use description from openexr. [license]: Use license from openexr. Signed-off-by: Leo Famulari <leo@famulari.name> Vinicius Monego 2021-10-23gnu: Rename openexr to openexr-2....This is done so the OpenEXR package can be upgraded to version 3 in a later commit. * gnu/packages/graphics.scm (openexr): Rename to ... (openexr-2): ... new variable. (blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly. (ctl)[propagated-inputs]: Likewise. * gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise. * gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise. * gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise. * gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic, nip2)[inputs]: Likewise. * gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise. * gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise. * gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise. * gnu/packages/kde.scm (krita)[inputs]: Likewise. * gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise. Signed-off-by: Leo Famulari <leo@famulari.name> Vinicius Monego 2021-10-23gnu: Add imath....* gnu/packages/graphics.scm (imath): New variable. Signed-off-by: Leo Famulari <leo@famulari.name> Vinicius Monego 2021-10-19gnu: Add gr-framework....* gnu/packages/graphics.scm (gr-framework): New variable. Efraim Flashner 2021-10-12Merge remote-tracking branch 'origin/master' into core-updates-frozen.Mathieu Othacehe 2021-09-18gnu: goxel: Update to 0.10.8....* gnu/packages/graphics.scm (goxel): Update to 0.10.8. Tobias Geerinckx-Rice 2021-08-12Merge branch 'master' into core-updates-frozen... Conflicts: gnu/packages/algebra.scm gnu/packages/games.scm gnu/packages/golang.scm gnu/packages/kerberos.scm gnu/packages/mail.scm gnu/packages/python.scm gnu/packages/ruby.scm gnu/packages/scheme.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm Marius Bakke 2021-07-27gnu: OpenImageIO: Update to 2.2.11.1....* gnu/packages/graphics.scm (openimageio): Update to 2.2.11.1. [inputs]: Add libheif, for AV1 decoding support. Leo Famulari 2021-07-27gnu: IlmBase and OpenEXR: Update to 2.5.7....* gnu/packages/graphics.scm (ilmbase): Update to 2.5.7. Leo Famulari 2021-07-24gnu: Use 'search-input-directory' for the OpenEXR header directory....* gnu/packages/graphics.scm (blender): Use 'search-input-directory' when searching for "include/OpenEXR". (blender-2.79): Likewise. * gnu/packages/image-processing.scm (opencv): Likewise. * gnu/packages/image-viewers.scm (luminance-hdr): Likewise. * gnu/packages/photo.scm (darktable): Likewise. Ludovic Courtès 2021-07-24gnu: Simplify "Xvbf" invocation in pre-check phases....* gnu/packages/geo.scm (qgis)[arguments]: Simplify invocation of 'Xvfb' in 'check' phase, assuming 'Xvfb' is in $PATH. * gnu/packages/graphics.scm (opensubdiv)[arguments]: Likewise. * gnu/packages/java-graphics.scm (java-piccolo2d-extras)[arguments]: Likewise. * gnu/packages/kde-frameworks.scm (kcontacts)[arguments]: Likewise. (kdeclarative)[arguments]: Likewise. * gnu/packages/kde-multimedia.scm (elisa)[arguments]: Likewise. * gnu/packages/kde-plasma.scm (kscreenlocker)[arguments]: Likewise. * gnu/packages/radio.scm (gnuradio)[arguments]: Likewise. * gnu/packages/education.scm (gcompris-qt)[arguments]: Likewise. * gnu/packages/freedesktop.scm (weston)[arguments]: Likewise. Ludovic Courtès 2021-07-15gnu: agg: Fix typo in description....* gnu/packages/graphics.scm (agg)[description]: Add missing article and work around scalable vector graphics graphics. Tobias Geerinckx-Rice 2021-06-29gnu: egl-wayland: Update to 1.1.7....* gnu/packages/graphics.scm (egl-wayland): Update to 1.1.7. Tobias Geerinckx-Rice 2021-06-29gnu: cgal: Remove duplicate licence directory....* gnu/packages/graphics.scm (cgal)[arguments]: Set CGAL_INSTALL_DOC_DIR to match Guix's own default in #:configure-flags. Tobias Geerinckx-Rice 2021-06-29gnu: cgal: Update to 5.2.2....* gnu/packages/graphics.scm (cgal): Update to 5.2.2. Tobias Geerinckx-Rice 2021-06-18gnu: lib2geom: Update to commit b29d60e4....* gnu/packages/graphics.scm (lib2geom): Update to commit b29d60e49a58f4e8069544b44863b1a623e4ee59 (with inkscape 1.1 relased). Boris A. Dekshteyn 2021-06-14gnu: Rename qtbase to qtbase-5....This change was automated via the following command: $ git ls-files | xargs sed -i 's/,qtbase)/,qtbase-5)/g' $ git ls-files | xargs sed -i 's/inherit qtbase)/inherit qtbase-5)/g' $ git ls-files | xargs sed -i 's/package-version qtbase)/package-version qtbase-5)/g' $ git checkout etc # to clear some spurious changes This is done so the qtbase package can be upgraded to version 6 in the following commit. Maxim Cournoyer