~ruther/guix-local

ref: ff838e2ce64dccd79ad275d4fc314f7f0feb9947 guix-local/tests d---------
1b0a86dd — Ludovic Courtès 11 years ago
tests: Make sure --search="" works.

* tests/guix-package.sh: Move '-s' tests outside of the network-only
  section.  Make sure --search="" works.
5e6feee6 — Eric Bavier 11 years ago
guix: package: Fix recutils output for non-package inputs.

* guix/ui.scm (package->recutils)[dependencies]: Ignore non-package inputs.
* tests/guix-package.sh: New test.
3ce9aa44 — Ludovic Courtès 11 years ago
build: Fix typo in 'guix package --show' test.

* tests/guix-package.sh: Change "^Package:" to "^name:".
6c9e7b2b — Ludovic Courtès 11 years ago
build: Better reject systems where the shebang would be too long.

* tests/gexp.scm (shebang): Add "#!".
0a90af15 — Ludovic Courtès 11 years ago
monads: Add 'interned-file'.

* guix/monads.scm (interned-file): New procedure.
* tests/monads.scm ("interned-file"): New test.
* doc/guix.texi (The Store Monad): Document it.
2aa6efb0 — Cyril Roelandt 11 years ago
guix package: add a "show" option.

* doc/guix.texi: Update the documentation.
* guix/scripts/package.scm: Add a "show" option.
* tests/guix-package.sh: Add a test for the "show" option.
58f485cc — Ludovic Courtès 11 years ago
build: Fix typo that would lead to hitting the socket name length limit.

* tests/guix-register.sh: Remove redundant $new_store in $NIX_STATE_DIR,
  introduced in 689142cd ("guix-register: Add '--state-directory'
  parameter.")  Reported by Eric Bavier <ericbavier@gmail.com> and
  Alen Skondro <askondro@gmail.com>.
516e3b6f — Eric Bavier 11 years ago
guix: utils: Add fold-tree and fold-tree-leaves.

* guix/utils.scm (fold-tree, fold-tree-leaves): New functions.
* tests/utils.scm: Add tests for them.
689142cd — Ludovic Courtès 11 years ago
guix-register: Add '--state-directory' parameter.

* nix/guix-register/guix-register.cc (GUIX_OPT_STATE_DIRECTORY): New
  macro.
  (parse_opt): Honor it.
* tests/guix-register.sh: Add test with '--state-directory'.
* guix/store.scm (register-path): Add #:state-directory parameter.
a1906758 — Ludovic Courtès 11 years ago
records: Report unknown field names in inheriting forms.

* guix/records.scm (define-record-type*)[record-inheritance]: Check for
  unexpected field names.
* tests/records.scm ("define-record-type* with let* behavior"): Return
  #t, not *unspecified*.
  ("define-record-type* & inherit & extra initializers"): New test.
23e9a680 — Ludovic Courtès 11 years ago
records: Add tests for error cases.

* tests/records.scm (test-module): New procedure.
  ("define-record-type* & missing initializers",
  "define-record-type* & extra initializers"): New tests.
2cf0ea0d — Ludovic Courtès 11 years ago
gexp: Gracefully handle printing of gexps with spliced references.

* guix/gexp.scm (write-gexp): Wrap 'write' call in
  'false-if-exception'.
* tests/gexp.scm ("printer", "printer vs. ungexp-splicing"): New tests.
5d098459 — Ludovic Courtès 11 years ago
gexp: Resolve the default system at '>>=' time.

Partly fixes <http://bugs.gnu.org/18002>.
Reported by David Thompson <dthompson2@worcester.edu>.

* guix/gexp.scm (gexp->derivation): Change #:system to default #f.
  Use (%current-system) from within the 'mlet*'.
* tests/gexp.scm ("gexp->derivation, default system"): New test.
f62435e2 — Ludovic Courtès 11 years ago
monads: Fix 'mapm' so that effects happen from left to right.

* guix/monads.scm (mapm): Don't reverse LST, so that items are processed
  from left to right.  Bind the result of 'foldm' and reverse it.
* tests/monads.scm ("sequence"): Change 'frob' so it performs its side
  effect within an 'mlet' body.  Adjust call accordingly.
59c51be2 — Ludovic Courtès 11 years ago
build: Get the canonical $HOME name when testing 'guix package'.

* tests/guix-package.sh (HOME): Recompute using 'pwd -P'.
8ad49499 — Ludovic Courtès 11 years ago
build: Support running the test suite from a directory with symlinks.

Fixes <http://bugs.gnu.org/17935>.
Reported by Alex Kost <alezost@gmail.com>.

* test-env.in: Canonicalize $NIX_STORE_DIR, and remove
  $NIX_IGNORE_SYMLINK_STORE setting.
* tests/guix-register.sh: Likewise, canonicalize $new_store_dir and
  $new_store and leave $NIX_IGNORE_SYMLINK_STORE unchanged.
88371f0d — Ludovic Courtès 11 years ago
guix package: Do the right thing for '-p ~/.guix-profile'.

Fixes <http://bugs.gnu.org/17939>.
Reported by Taylan Ulrich Bayirli/Kammer <taylanbayirli@gmail.com>.

* guix/scripts/package.scm (canonicalize-profile): New procedure.
  (%options): Use it for --profile.
* tests/guix-package.sh: Add test.
c1202fb1 — Ludovic Courtès 11 years ago
guix {system,offload}: Improve reporting of syntax errors.

* guix/scripts/system.scm (read-operating-system) <catch handler>: Add
  case for 'syntax-error'.  Correct message for default case.
* guix/scripts/offload.scm (build-machines) <catch handler>: Add case
  for 'syntax-error'.
* tests/guix-system.sh: New file.
* Makefile.am (SH_TESTS): Add it.
278b6428 — Ludovic Courtès 11 years ago
tests: Use the C locale for 'guix package -s'.

* tests/guix-package.sh: Set LC_MESSAGES=C before the 'guix package -s'
  test.
7470df5d — Ludovic Courtès 11 years ago
Merge branch 'master' into core-updates
Next