summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-07-13 18:59:30 +0200
committerMathieu Lirzin <mthl@gnu.org>2016-07-14 17:44:23 +0200
commit1a542e4d1bdf66366ad935be5be70a3f2252a776 (patch)
tree4b204cfc6d122a605364acb4ae81ec46e163e84c /tests
parent3efe57e0ca5b805cf74cf1efdcbb93e10d72a7e1 (diff)
downloadcuirass-1a542e4d1bdf66366ad935be5be70a3f2252a776.tar
cuirass-1a542e4d1bdf66366ad935be5be70a3f2252a776.tar.gz
Remove redundancies in the specification examples.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-jobs.scm29
-rw-r--r--tests/hello-subset.scm44
2 files changed, 36 insertions, 37 deletions
diff --git a/tests/guix-jobs.scm b/tests/guix-jobs.scm
index 470305f..862cff7 100644
--- a/tests/guix-jobs.scm
+++ b/tests/guix-jobs.scm
@@ -1,5 +1,4 @@
-;;;; guix-jobs.scm - job specification test for Guix.
-;;;
+;;; guix-jobs.scm -- job specification test for Guix
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
;;;
;;; This file is part of Cuirass.
@@ -22,15 +21,17 @@
;; However for testing purpose use local gnu-system.scm instead.
(string-append (dirname (current-filename)) "/" file))
-`(((#:name . "guix")
- (#:url . "git://git.savannah.gnu.org/guix.git")
- (#:load-path . ".")
- (#:branch . "master")
- (#:file . ,(local-file "gnu-system.scm"))
- (#:proc . hydra-jobs))
- ((#:name . "guix")
- (#:url . "git://git.savannah.gnu.org/guix.git")
- (#:load-path . ".")
- (#:tag . "v0.10.0")
- (#:file . ,(local-file "gnu-system.scm"))
- (#:proc . hydra-jobs)))
+(define job-base
+ `((#:name . "guix")
+ (#:url . "git://git.savannah.gnu.org/guix.git")
+ (#:load-path . ".")
+ (#:file . ,(local-file "gnu-system.scm"))
+ (#:proc . hydra-jobs)))
+
+(define guix-master
+ (acons #:branch "master" job-base))
+
+(define guix-0.10
+ (acons #:tag "v0.10.0" job-base))
+
+(list guix-master guix-0.10)
diff --git a/tests/hello-subset.scm b/tests/hello-subset.scm
index 76136ef..60764fc 100644
--- a/tests/hello-subset.scm
+++ b/tests/hello-subset.scm
@@ -1,5 +1,4 @@
-;;;; hello-subset.scm - job specification test for hello subset.
-;;;
+;;; hello-subset.scm -- job specification test for hello subset
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
;;;
;;; This file is part of Cuirass.
@@ -22,24 +21,23 @@
;; However for testing purpose use local gnu-system.scm instead.
(string-append (dirname (current-filename)) "/" file))
-`(((#:name . "guix")
- (#:url . "git://git.savannah.gnu.org/guix.git")
- (#:load-path . ".")
- (#:branch . "master")
- (#:file . ,(local-file "gnu-system.scm"))
- (#:proc . hydra-jobs)
- (#:arguments (subset . "hello")))
- ((#:name . "guix")
- (#:url . "git://git.savannah.gnu.org/guix.git")
- (#:load-path . ".")
- (#:branch . "core-updates")
- (#:file . ,(local-file "gnu-system.scm"))
- (#:proc . hydra-jobs)
- (#:arguments (subset . "hello")))
- ((#:name . "guix")
- (#:url . "git://git.savannah.gnu.org/guix.git")
- (#:load-path . ".")
- (#:tag . "v0.9.0")
- (#:file . ,(local-file "gnu-system.scm"))
- (#:proc . hydra-jobs)
- (#:arguments (subset . "hello"))))
+(define job-base
+ `((#:name . "guix")
+ (#:url . "git://git.savannah.gnu.org/guix.git")
+ (#:load-path . ".")
+ (#:file . ,(local-file "gnu-system.scm"))
+ (#:proc . hydra-jobs)
+ (#:arguments (subset . "hello"))))
+
+(define guix-master
+ (acons #:branch "master" job-base))
+
+(define guix-core-updates
+ (acons #:branch "core-updates" job-base))
+
+(define guix-0.10
+ (acons #:tag "v0.10.0" job-base))
+
+(list guix-master
+ guix-core-updates
+ guix-0.10)