aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer/final.scm
blob: e1c62f5ce014bd86f105f74f2f45e19eea1c803e (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
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@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 installer final)
  #:use-module (gnu installer newt page)
  #:use-module (gnu installer steps)
  #:use-module (gnu installer utils)
  #:use-module (gnu services herd)
  #:use-module (guix build utils)
  #:export (install-system))

(define (install-system)
  "Start COW-STORE service on target directory and launch guix install command
in a subshell."
  (let ((install-command
         (format #f "guix system init ~a ~a"
                 (%installer-configuration-file)
                 (%installer-target-dir))))
    (mkdir-p (%installer-target-dir))
    (start-service 'cow-store (list (%installer-target-dir)))
    (false-if-exception (run-shell-command install-command))))
scm (run-system-tests): Use 'with-status-report'. Ludovic Courtès 2016-11-03tests: 'make check-system' prints the "build trace"....* build-aux/run-system-tests.scm (run-system-tests): Pass #:print-build-trace to 'set-build-options*'. Ludovic Courtès 2016-10-27tests: Use #:fallback? #t when building system tests....* build-aux/run-system-tests.scm (run-system-tests): Pass #:fallback? #t to 'set-build-options*'. Ludovic Courtès 2016-06-20build: 'make check-system' now honors $TESTS....* build-aux/run-system-tests.scm (run-system-tests)[tests]: Honor the 'TESTS' environment variable. Ludovic Courtès 2016-06-20tests: Add a mechanism to describe and discover system tests....* gnu/tests.scm (<system-test>): New record type. (write-system-test, test-modules, fold-system-tests) (all-system-tests): New procedures. * gnu/tests/base.scm (%test-basic-os): Turn into a <system-test>. * gnu/tests/install.scm (%test-installed-os): Likewise. * build-aux/run-system-tests.scm (%system-tests): Remove. (run-system-tests): Use 'all-system-tests'. Ludovic Courtès 2016-06-20tests: Add system installation test....* gnu/tests.scm (define-os-with-source): New macro. * gnu/tests/install.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * build-aux/run-system-tests.scm (%system-tests): Likewise. Ludovic Courtès 2016-05-04build: Add 'run-system-tests.scm'....This file was meant to be added as part of commit e9f693d06f94bd96488c3910dba6504f94a6b6f9. * build-aux/run-system-tests.scm: New file. * Makefile.am (EXTRA_DIST): Add it. Ludovic Courtès