diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2016-06-26 17:02:23 +0200 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2016-06-26 17:02:23 +0200 |
commit | 5efdcb444139d6d9354c3aa740c3218beee75646 (patch) | |
tree | c531572848938be4cd9db7aa32af22a02c7e7d35 /bin | |
parent | 944f8b546776e20c90c57bb21a7cbc63d6e604da (diff) | |
download | cuirass-5efdcb444139d6d9354c3aa740c3218beee75646.tar cuirass-5efdcb444139d6d9354c3aa740c3218beee75646.tar.gz |
Add a '--database' command line argument.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cuirass.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/cuirass.in b/bin/cuirass.in index 3b34493..87dd0ad 100644 --- a/bin/cuirass.in +++ b/bin/cuirass.in @@ -21,7 +21,8 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" ;;; You should have received a copy of the GNU General Public License ;;; along with Cuirass. If not, see <http://www.gnu.org/licenses/>. -(use-modules (cuirass base) +(use-modules (cuirass config) + (cuirass base) (cuirass database) (cuirass job) (cuirass ui) @@ -34,6 +35,7 @@ exec ${GUILE:-@GUILE@} --no-auto-compile -e main -s "$0" "$@" Run Guix job from a git repository cloned in CACHEDIR. -f --use-file=FILE Use FILE which defines the job to evaluate + -D --database=DB Use DB to store build results. -I, --interval=N Wait N seconds between each evaluation -V, --version Display version -h, --help Display this help message") @@ -42,6 +44,7 @@ Run Guix job from a git repository cloned in CACHEDIR. (define %options `((file (single-char #\f) (value #t)) + (database (single-char #\f) (value #t)) (interval (single-char #\I) (value #t)) (version (single-char #\V) (value #f)) (help (single-char #\h) (value #f)))) @@ -109,7 +112,7 @@ DIR if required." (exit 0)) (else (let* ((specfile (option-ref opts 'file "tests/hello-subset.scm")) - (dbfile "tmp.db") + (dbfile (option-ref opts 'database %package-database)) (specs (primitive-load specfile)) (args (option-ref opts '() #f)) (cachedir (if (null? args) |