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:
gnu: lightdm: Apply patch to fix a problem with VNC integration....* gnu/packages/patches/lightdm-vncserver-check.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/display-managers.scm (lightdm): Apply it. Maxim Cournoyer 2022-08-28gnu: lightdm-gtk-greeter: Adjust --enable-at-spi-command value....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [configure-flags]: Add the '--launch-immediately' option to the at-spi-bus-launcher to match what is used in the source. Maxim Cournoyer 2022-08-28gnu: lightdm-gtk-greeter: Adjust default config file path....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [phases]{customize-default-config-path}: New phase. Maxim Cournoyer 2022-08-28gnu: lightdm-gtk-greeter: Enable libklavier support....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [configure-flags]: Add '--with-libxklavier'. [inputs]: Add libxklavier. Maxim Cournoyer 2022-08-28gnu: lightdm-gtk-greeter: Use the glib-or-gtk-wrap phase as-is....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [configure-flags]: Install binaries to bin/, so the wrap phase of glib-or-gtk handles them. [phases]{wrap-program}: Delete. {custom-wrap}: New phase, wrapping the wrapper with a few extra environment variables. Maxim Cournoyer 2022-08-28gnu: lightdm-gtk-greeter: Add GDK_PIXBUF_MODULE_FILE to wrapper....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [build-system]: Use glib-or-gtk-build-system. [phases]{wrap-program}: Add GDK_PIXBUF_MODULE_FILE to wrapper. [inputs]: Add librsvg. Maxim Cournoyer 2022-08-05gnu: lightdm: Add bash-minimal as an input....Suggested by 'guix lint'. * gnu/packages/display-managers.scm (lightdm)[inputs]: Add BASH-MINIMAL. Replace COREUTILS by COREUTILS-MINIMAL. Ludovic Courtès 2022-08-03gnu: lightdm-gtk-greeter: Set XCURSOR_PATH in wrapper....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [phases]{wrap-program}: Set XCURSOR_PATH to the current system share/icons. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> L p R n d n 2022-08-03gnu: lightdm-gtk-greeter: Disable indicator services....* gnu/packages/display-managers.scm (lightdm-gtk-greeter) [configure-flags]: Add '--disable-indicator-services-command'. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> L p R n d n 2022-08-03gnu: lightdm-gtk-greeter: Use gexps and new style inputs....* gnu/packages/display-managers.scm (lightdm-gtk-greeter)[arguments]: Use gexps. [configure-flags]: Use search-input-file. [phases]{fix-.desktop-file}: Likewise. {wrap-program}: Use search-input-file and this-package-input. [inputs]: Use new style. Add glib. Maxim Cournoyer 2022-08-03gnu: lightdm: Update to 1.32.0....* gnu/packages/display-managers.scm (lightdm): Update to 1.32.0. Maxim Cournoyer 2022-08-03gnu: lightdm: Enable XDMCP support....* gnu/packages/display-managers.scm (lightdm)[inputs]: Add libxdmcp. Maxim Cournoyer 2022-08-03gnu: lightdm: Build AccountsService files....* gnu/packages/display-managers.scm (lightdm) [native-inputs]: Add accountsservice. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com> L p R n d n 2022-08-03gnu: lightdm: Install documentation....* gnu/packages/display-managers.scm (lightdm) [configure-flags]: Add --enable-gtk-doc. Maxim Cournoyer 2022-07-31gnu: qttools: Rename to qttools-5....Automated with: git grep -l qttools | xargs sed 's/\bqttools\b/\0-5/g' -i git checkout NEWS Maxim Cournoyer 2022-07-31gnu: qtquickcontrols2: Rename to qtquickcontrols2-5....Automated via: git grep -l qtquickcontrols2 | xargs sed 's/\bqtquickcontrols2\b/\0-5/g' -i git checkout NEWS Maxim Cournoyer 2022-07-31gnu: qtquickcontrols: Rename to qtquickcontrols-5....Automated via: git grep -l qtquickcontrols | xargs sed 's/\bqtquickcontrols\b/\0-5/g' -i git checkout NEWS Maxim Cournoyer 2022-07-31gnu: qtdeclarative: Rename to qtdeclarative-5....Automated via the following commands: git grep -l '\bqtdeclarative\b' | xargs sed -E 's/qtdeclarative/\0-5/g' -i git checkout NEWS Maxim Cournoyer 2022-07-31gnu: qtsvg: Rename variable to qtsvg-5....This is in preparation of the qtsvg update to version 6. This change was automated via the following command: git grep -l '\bqtsvg\b' | xargs sed 's/qtsvg/qtsvg-5/g' -i Maxim Cournoyer 2022-06-08gnu: lightdm: Fix build....This is a follow-up to commit 26876b66001a1dc45ee6d05015fddd7f5a88676e, migrate the package from Python 2 to Python 3 (but left some commented inputs for tests, breaking the build). * gnu/packages/display-managers.scm (lightdm)[native-inputs]: Un-comment python-wrapper and python-pygobject. Maxim Cournoyer 2022-05-31gnu: lightdm: Update to 1.30.0-0.b7fc321....* gnu/packages/display-managers.scm (lightdm): Update to 1.30.0-0.b7fc321. [source]: Use git. [configure-flags]: Add CFLAGS=-Wno-error=missing-prototypes. [phases]: Delete trailing #t. {fix-paths}: Use search-input-file. [inputs]: Add coreutils. [native-inputs]: Use new style. Replace python-2 by python-wrapper and python2-pygobject by python-pygobject. Add autoconf, automake, gtk-doc, libtool, which and yelp-tools. Maxim Cournoyer