summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'master' into core-updatesMark H Weaver2018-05-282-10/+5
|\| |
| * | system: Remove uses of the 'title' field of <file-system>.Ludovic Courtès2018-05-282-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/system/install.scm (installation-os): Remove uses of the 'title' field of 'file-system'; use 'file-system-label' as appropriate. * gnu/system/vm.scm (system-disk-image, system-qemu-image): Likewise. * gnu/tests.scm (%simple-os): Likewise. * gnu/tests/install.scm (%minimal-os, %minimal-extlinux-os) (%minimal-os-on-vda, %separate-home-os, %separate-store-os) (%raid-root-os, %encrypted-root-os, %btrfs-root-os): Likewise. * gnu/build/shepherd.scm (default-mounts)[tmpfs]: Likewise. * tests/guix-system.sh: Likewise. * tests/system.scm (%root-fs): Likewise. ("operating-system-boot-mapped-devices, implicit dependency"): Likewise.
* | | Merge branch 'master' into core-updatesMark H Weaver2018-05-241-1/+29
|\| |
| * | records: Insert record type ABI checks in constructors.Ludovic Courtès2018-05-231-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/records.scm (print-record-abi-mismatch-error): New procedure. <top level>: Add 'set-exception-printer!' call. (current-abi-identifier, abi-check): New procedures. (make-syntactic-constructor): Add #:abi-cookie parameter. Insert calls to 'abi-check'. (define-record-type*)[compute-abi-cookie]: New procedure. Use it and emit a definition of the 'current-abi-identifier' for TYPE. * tests/records.scm ("ABI checks"): New test.
* | | Merge branch 'master' into core-updatesMark H Weaver2018-05-213-6/+13
|\| |
| * | uuid: 'uuid' returns #f when 'string->uuid' returns #f.Ludovic Courtès2018-05-191-1/+8
| | | | | | | | | | | | | | | | | | * gnu/system/uuid.scm (uuid): When STR is not a literal, return #f when 'string->uuid' returns #f. * tests/uuid.scm ("uuid, dynamic value"): New test.
| * | tests: Skip 'tests/guix-pack.sh' when networking is missing.Ludovic Courtès2018-05-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | The test could fail because "static-binaries.tar.xz" is missing, for instance. * tests/guix-pack.sh: Require a network connection to be on the safe side. This reverts part of 47a60325ca650e8fc1a291c8655b4297f4de8deb.
| * | tests: Adjust to new "unbound variable" messages.Ludovic Courtès2018-05-191-2/+2
| | | | | | | | | | | | | | | | | | This is a followup to 2d2f98efb36db3f003d950a004806234962b4f4d. * tests/guix-system.sh: Adjust regexps to match "error:".
* | | Merge branch 'master' into core-updatesMark H Weaver2018-05-175-11/+84
|\| |
| * | utils: Add 'version-prefix?'.Ludovic Courtès2018-05-131-0/+6
| | | | | | | | | | | | | | | * guix/utils.scm (version-prefix?): New procedure. * tests/utils.scm ("version-prefix?"): New test.
| * | pack: Add '--relocatable'.Ludovic Courtès2018-05-101-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/aux-files/run-in-namespace.c: New file. * Makefile.am (AUX_FILES): Add it. * guix/scripts/pack.scm (<c-compiler>): New record type. (c-compiler, bootstrap-c-compiler, c-compiler-compiler): New procedures. (self-contained-tarball): Use 'relative-file-name' for the SOURCE -> TARGET symlink. (docker-image): Add 'defmod' to please Geiser. (wrapped-package, map-manifest-entries): New procedures. (%options, show-help): Add --relocatable. (guix-pack): Honor it.
| * | profiles: Optionally use relative file names for symlink targets.Ludovic Courtès2018-05-101-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/build/union.scm (symlink-relative): New procedure. * guix/build/profiles.scm: Re-export it. (build-profile): Add #:symlink and pass it to 'union-build'. * guix/profiles.scm (profile-derivation): Add #:relative-symlinks?. Pass #:symlink to 'build-profile'. * tests/profiles.scm ("profile-derivation relative symlinks, one entry") ("profile-derivation relative symlinks, two entries"): New tests.
| * | union: Add 'relative-file-name'.Ludovic Courtès2018-05-102-1/+19
| | | | | | | | | | | | | | | | | | * guix/build/union.scm (%not-slash): New variable. (relative-file-name): New procedure. * tests/union.scm (test-relative-file-name): New macro and tests.
| * | guix: Separate the package name and version with "@", not "-".Chris Marusich2018-05-082-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/packages.scm (package-full-name): By default, use "@" to separate the package name and package version. Add an optional delimiter argument so that there is still a way to explicitly use a different delimiter. * gnu/packages/commencement.scm (gcc-boot0) <unpack-gmp&co>: Adjust accordingly. * tests/graph.scm: Adjust accordingly. * tests/profiles.scm: Adjust accordingly. * NEWS: Mention the change. Fixes: <https://bugs.gnu.org/31088>. Reported by Pierre Neidhardt <ambrevar@gmail.com>.
* | | Merge branch 'master' into core-updatesMark H Weaver2018-05-081-4/+16
|\| |
| * | pack: Fix handling of '-e'.Ludovic Courtès2018-05-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a regression introduced in aad16cc1965ab3488449c262455eb29b15c77e95. Reported by Julien Lepiller. * guix/scripts/pack.scm (guix-pack)[manifest-from-args]: In 'match-lambda', add clause for single packages. * tests/guix-pack.sh: Add test for '-e'.
| * | pack: Honor package transformation options.Ludovic Courtès2018-05-071-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Previously they would silently be ignored. * guix/scripts/pack.scm (guix-pack)[manifest-from-args]: Add 'store' parameter. Call 'options->transformation' and use it. Move 'with-store' and 'parameterize' around the 'let'. * tests/guix-pack.sh: Add test using '--with-source'.
| * | pack: Adjust test to cope with GC'd profiles.Ludovic Courtès2018-05-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | Previous "test -x opt/gnu/bin/guile" would fail if the store item "opt/gnu/bin" points to had been GC'd. * tests/guix-pack.sh: Replace "test -x" with "test -L" to deal with store items that have been reclaimed.
* | | Merge branch 'master' into core-updatesMarius Bakke2018-05-061-1/+20
|\| |
| * | guix build: Nicely report unbound variables with hints.Ludovic Courtès2018-05-041-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/ui.scm (print-unbound-variable-error): Add "error:" to the message. (report-unbound-variable-error): New procedure, with code formerly in 'report-load-error'. (report-load-error): Use it. (call-with-unbound-variable-handling): New procedure. (with-unbound-variable-handling): New macro. * guix/scripts/build.scm (options->derivations): Wrap body in 'with-unbound-variable-handling'. * tests/guix-build.sh (GUIX_PACKAGE_PATH): Add test.
* | | Merge branch 'master' into core-updatesMark H Weaver2018-04-301-1/+2
|\| | | |/ |/|
| * guix system: search: Display default Shepherd service names.Ludovic Courtès2018-04-301-1/+2
| | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/29707>. Reported by Clément Lassieur <clement@lassieur.org>. * guix/scripts/system/search.scm (service-type-default-shepherd-services) (service-type-shepherd-names): New procedures. (service-type->recutils): Use it. * tests/guix-system.sh: Add test.
* | Merge branch 'master' into core-updatesMark H Weaver2018-04-211-0/+14
|\|
| * guix-daemon: Disable garbage collection for remote connections.Roel Janssen2018-04-191-0/+14
| | | | | | | | | | | | | | | | * nix/nix-daemon/nix-daemon.cc (isRemoteConnection): New variable. (performOp): For wopCollectGarbage, throw an error when isRemoteConnection is set. (acceptConnection): Set isRemoteConnection when connection is not AF_UNIX. * tests/guix-daemon.sh: Add a test for the new behavior.
* | Merge branch 'master' into core-updatesMark H Weaver2018-04-111-2/+21
|\|
| * gexp: 'scheme-file' can splice expressions.Ludovic Courtès2018-04-111-2/+21
| | | | | | | | | | | | | | | | | | | | * guix/gexp.scm (<scheme-file>)[splice?]: New field. (scheme-file): Add #:splice? and pass it to '%scheme-file'. (scheme-file-compiler): Pass SPLICE? to 'gexp->file'. (gexp->file): Add #:splice? and honor it. * tests/gexp.scm ("gexp->file + #:splice?"): New test. ("gexp->derivation & with-imported-module & computed module"): Use #:splice? #t.
* | Merge branch 'master' into core-updatesMark H Weaver2018-04-103-3/+57
|\|
| * union: Allow callers to choose the collision resolution policy.Ludovic Courtès2018-04-081-1/+41
| | | | | | | | | | | | | | * guix/build/union.scm (warn-about-collision): New procedure. (union-build): Add #:resolve-collision. [resolve-collisions]: Call it. * tests/union.scm ("union-build collision first & last"): New test.
| * tests: Skip 'pivot-root' test on Ubuntu's 4.4 kernels.Ludovic Courtès2018-04-081-2/+8
| | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/25476>. Reported by Paul Garlick <pgarlick@tourbillion-technology.com> and Maria Sidorova <hydromasha@gmail.com>. * tests/syscalls.scm ("pivot-root"): Skip on known-bad Ubuntu kernels.
| * guix package: Add '--allow-collisions'.Ludovic Courtès2018-03-311-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/30830>. Suggested by Ricardo Wurmus <rekado@elephly.net>. * guix/scripts/package.scm (build-and-use-profile): Add #:allow-collisions? and pass it to 'profile-derivation'. (show-help, %options): Add '--allow-collisions'. (manifest-action, process-actions): Pass #:allow-collisions? to 'build-and-use-profile'. * tests/guix-package.sh: Add collision test. * doc/guix.texi (Invoking guix package): Document '--allow-collisions'.
* | Merge branch 'master' into core-updatesMarius Bakke2018-03-296-4/+192
|\|
| * guix gc: Add '--derivers'.Ludovic Courtès2018-03-271-1/+4
| | | | | | | | | | | | | | * guix/scripts/gc.scm (show-help, %options): Add '--derivers'. (guix-gc): Handle 'list-derivers'. * tests/guix-gc.sh: Add test. * doc/guix.texi (Invoking guix gc): Document it.
| * graph: Add "module" node type.Ludovic Courtès2018-03-271-1/+19
| | | | | | | | | | | | | | | | | | | | * guix/scripts/graph.scm (module-from-package) (source-module-dependencies*): New procedures. (%module-node-type): New variable. (%node-types): Add it. * guix/modules.scm (source-module-dependencies): Export. * tests/graph.scm ("module graph"): New test. * doc/guix.texi (Invoking guix graph): Document it.
| * tests: Add tests for "guix system disk-image" et al.Chris Marusich2018-03-241-0/+17
| | | | | | | | | | | | * tests/guix-system.sh: Add test cases that exercise (1) all of the example files in gnu/system/examples, and (2) all of the "image" creation commands: vm, vm-image, disk-image, and docker-image.
| * tests: Add tests for "guix pack".Chris Marusich2018-03-241-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * guix/scripts/pack.scm (bootstrap-xz): New variable. (%options) <--bootstrap>: New option. (show-help): Document the new --bootstrap option. (guix-pack): When --bootstrap is specified, use the bootstrap Guile, tar, and xz to build the pack, and do not use any profile hooks or locales. * doc/guix.texi (Invoking guix pull): Document the new --bootstrap option. * tests/guix-pack.sh: New file. * Makefile.am (SH_TESTS): Add guix-pack.sh. * gnu/packages/package-management.scm (guix) <inputs>: Add util-linux.
| * gexp: 'program-file' has a new #:module-path parameter.Ludovic Courtès2018-03-231-0/+27
| | | | | | | | | | | | | | | | * guix/gexp.scm (<program-file>): Add 'path' field. (program-file): Add #:module-path parameter and honor it. (program-file-compiler): Honor the 'path' field. * tests/gexp.scm ("program-file #:module-path"): New test. * doc/guix.texi (G-Expressions): Update.
| * gexp: 'gexp->script' and 'gexp->file' have a new #:module-path parameter.Ludovic Courtès2018-03-231-1/+33
| | | | | | | | | | | | | | | | * guix/gexp.scm (load-path-expression): Add 'path' optional parameter. (gexp->script): Add #:module-path and honor it. (gexp->file): Likewise. * tests/gexp.scm ("gexp->script #:module-path"): New test. * doc/guix.texi (G-Expressions): Update accordingly.
| * publish: Always build a new derivation for the "/log/NAME" test.Ludovic Courtès2018-03-221-1/+1
| | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/30868>. Reported by Martin Castillo <castilma@uni-bremen.de>. * tests/publish.scm ("/log/NAME"): Use #$(random-text) in the builder.
| * publish: Add test for non-GET queries.Ludovic Courtès2018-03-221-0/+8
| | | | | | | | * tests/publish.scm ("non-GET query"): New test.
* | tests: Use invoke and return #t from all builders.Mark H Weaver2018-03-272-29/+54
|/ | | | | | | | | * tests/packages.scm ("package-source-derivation, snippet", "trivial") ("trivial with local file as input", "trivial with source") ("trivial with system-dependent input", "trivial with #:allowed-references") ("--search-paths with pattern", "--search-paths with single-item search path") ("replacement also grafted"): In the builders, raise an exception on errors and otherwise return #t. Use invoke.
* glob: Add an extra glob pattern compilation stage.Ludovic Courtès2018-03-181-6/+6
| | | | | | | | | | | | | * guix/glob.scm (compile-glob-pattern): Rename to... (string->sglob): ... this. (compile-sglob, string->compiled-sglob): New procedures. (glob-match?): Replace '?, 'range, and 'set with a single clause. * tests/glob.scm (test-compile-glob-pattern): Rename to... (test-string->sglob): ... this. Adjust accordingly. (test-glob-match): Use 'string->compiled-sglob' instead of 'compile-glob-pattern'. * gnu/build/linux-modules.scm (read-module-aliases): Use 'string->compiled-sglob' instead of 'compile-glob-pattern'.
* glob: Support square brackets in patterns.Ludovic Courtès2018-03-181-28/+39
| | | | | | | | | | | * guix/glob.scm (wildcard-indices): Remove. (parse-bracket): New procedure. (compile-glob-pattern): Rewrite. Support square brackets for sets and ranges. (glob-match?): Support sets and ranges. * tests/glob.scm (test-compile-glob-pattern) (test-glob-match): New macros. Use them to rewrite the existing tests, and add new tests.
* tests: elpa: Don't actually download files.Ludovic Courtès2018-03-181-18/+25
| | | | * tests/elpa.scm (eval-test-with-elpa): Mock 'url-fetch'.
* import: elpa: Adjust test for HTTPS URLs.Ludovic Courtès2018-03-181-1/+1
| | | | | | This is a followup to 44dd3d579db3aa467e41d0b431029e46cae8e12d. * tests/elpa.scm (eval-test-with-elpa): Use https.
* tests: Do not assume the bootstrap guile tarball is available locally.Ludovic Courtès2018-03-151-17/+2
| | | | | | | | | Fixes <https://bugs.gnu.org/30824>. Reported by Chris Marusich <cmmarusich@gmail.com>. * tests/packages.scm ("package-source-derivation, snippet"): Use 'bootstrap-guile-origin' instead of assuming the bootstrap guile tarball is available locally.
* gnu: time: Update to 1.9.Efraim Flashner2018-03-131-1/+1
| | | | | * gnu/packages/time.scm (time): Update to 1.9. * tests/guix-build.sh: Update time package to 1.9.
* hash: Add 'sha1'.Ludovic Courtès2018-03-081-0/+8
| | | | | | | | * guix/hash.scm (GCRY_MD_SHA1): New macro. (bytevector-hash): New procedure. (sha256): Express in terms of 'bytevector-hash'. (sha1): New procedure. * tests/hash.scm ("sha1, empty", "sha1, hello"): New tests.
* Add (guix glob).Ludovic Courtès2018-03-021-0/+58
| | | | | | * guix/glob.scm, tests/glob.scm: New files. * Makefile.am (MODULES): Add guix/glob.scm. (SCM_TESTS): Add tests/glob.scm.
* environment: Add --user.Mike Gerwitz2018-03-021-0/+11
| | | | | | | | | | | | | | | | | | This change allows overriding the home directory of all filesystem mappings to help hide the identity of the calling user in a container. * doc/guix.texi (Invoking guix environment)[--container]: Mention --user. [--user]: Add item. * guix/scripts/environment.scm (show-help): Add --user. (%options): Add --user. (launch-environment/container) Add 'user' parameter. Update doc. Override 'user-mappings' using 'override-user-mappings'. Consider override for chdir. (mock-passwd, user-override-home, overrid-euser-dir): New procedures. (guix-environment): Disallow --user without --container. Provide user to 'launch-environment/container'. * tests/guix-environment.sh: Add user test. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* environment: Add --link-profile.Mike Gerwitz2018-03-021-0/+14
| | | | | | | | | | | | | | | | | | | | | This change is motivated by attempts to run programs (like GNU IceCat) within containers. The 'fontconfig' program, for example, is configured explicitly to check ~/.guix-profile for additional fonts. There were no existing container tests in 'tests/guix-environment.sh', but I added one anyway for this change. * doc/guix.texi (Invoking guix environment): Add '--link-profile'. * guix/scripts/environment.scm (show-help): Add '--link-profile'. (%options): Add 'link-profile' as '#\P', assigned to 'link-profile?'. (link-environment): New procedure. (launch-environment/container): Use it when 'link-profile?'. [link-profile?]: New parameter. (guix-environment): Leave when '--link-prof' but not '--container'. Add '#:link-profile?' argument to 'launch-environment/container' application. * tests/guix-environment-container.sh: New '--link-profile' test. Signed-off-by: Ludovic Courtès <ludo@gnu.org>