diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-08-23 19:18:01 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-08-23 22:33:04 +0200 |
commit | c1bc358f293b97c9575f6195c3e7a119b05199ce (patch) | |
tree | 2e75aafa414fe066598ca4f9f1b1b7eb4250c238 /tests/monads.scm | |
parent | 90a063f4ca4e538df669103a7ffdd211e45f63d6 (diff) | |
download | guix-c1bc358f293b97c9575f6195c3e7a119b05199ce.tar guix-c1bc358f293b97c9575f6195c3e7a119b05199ce.tar.gz |
Factorize test suite support in (guix tests).
* guix/tests.scm: New file.
* Makefile.am (noinst_DATA): New variable.
(GOBJECTS): Add guix/tests.go.
* tests/builders.scm (%store): Use 'open-connection-for-tests'
from (guix tests).
* tests/derivations.scm: Likewise.
* tests/monads.scm: Likewise.
* tests/packages.scm: Likewise.
* tests/profiles.scm: Likewise.
* tests/union.scm: Likewise.
* tests/gexp.scm: Likewise.
(guile-for-build): Remove. Use (%guile-for-build) instead.
* tests/nar.scm (make-random-bytevector, %seed, random-text): Remove.
(populate-file): Change 'make-random-bytevector' to 'random-bytevector'.
Use (guix tests).
* tests/store.scm (%seed, random-text): Remove.
Use (guix tests).
Diffstat (limited to 'tests/monads.scm')
-rw-r--r-- | tests/monads.scm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/monads.scm b/tests/monads.scm index b814b0f7c5..b31cabdb54 100644 --- a/tests/monads.scm +++ b/tests/monads.scm @@ -17,6 +17,7 @@ ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (test-monads) + #:use-module (guix tests) #:use-module (guix store) #:use-module (guix monads) #:use-module (guix derivations) @@ -34,10 +35,7 @@ ;; Test the (guix store) module. (define %store - (open-connection)) - -;; Make sure we build everything by ourselves. -(set-build-options %store #:use-substitutes? #f) + (open-connection-for-tests)) (define %monads (list %identity-monad %store-monad)) |