aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/store.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/store.scm b/tests/store.scm
index b5e0cb0eab..430027c33b 100644
--- a/tests/store.scm
+++ b/tests/store.scm
@@ -140,6 +140,33 @@
(equal? (valid-derivers %store o)
(list (derivation-file-name d))))))
+(test-assert "log-file, derivation"
+ (let* ((b (add-text-to-store %store "build" "echo $foo > $out" '()))
+ (s (add-to-store %store "bash" #t "sha256"
+ (search-bootstrap-binary "bash"
+ (%current-system))))
+ (d (derivation %store "the-thing"
+ s `("-e" ,b)
+ #:env-vars `(("foo" . ,(random-text)))
+ #:inputs `((,b) (,s)))))
+ (and (build-derivations %store (list d))
+ (file-exists? (pk (log-file %store (derivation-file-name d)))))))
+
+(test-assert "log-file, output file name"
+ (let* ((b (add-text-to-store %store "build" "echo $foo > $out" '()))
+ (s (add-to-store %store "bash" #t "sha256"
+ (search-bootstrap-binary "bash"
+ (%current-system))))
+ (d (derivation %store "the-thing"
+ s `("-e" ,b)
+ #:env-vars `(("foo" . ,(random-text)))
+ #:inputs `((,b) (,s))))
+ (o (derivation->output-path d)))
+ (and (build-derivations %store (list d))
+ (file-exists? (pk (log-file %store o)))
+ (string=? (log-file %store (derivation-file-name d))
+ (log-file %store o)))))
+
(test-assert "no substitutes"
(let* ((s (open-connection))
(d1 (package-derivation s %bootstrap-guile (%current-system)))
80ac1'>gnu: python-igraph: Update to 0.8.2.Tobias Geerinckx-Rice 2020-08-18gnu: igraph: Update to 0.8.2.Tobias Geerinckx-Rice 2020-07-16gnu: Use HTTPS for igraph.org.Tobias Geerinckx-Rice 2020-07-12gnu: Remove ".git" from "https://github/…/….git".Ludovic Courtès 2020-06-22gnu: python-plotly: Update to 4.8.1.Pierre Langlois 2020-06-13gnu: r-rgraphviz: Update to 2.32.0.Ricardo Wurmus 2020-03-30Merge branch 'master' into core-updatesMarius Bakke 2020-03-29gnu: igraph: Update to 0.8.1.Tobias Geerinckx-Rice 2020-03-27gnu: mscgen: Fix build with gd >= 2.3.0.Marius Bakke 2020-03-24gnu: r-igraph: Update to 1.2.5.Ricardo Wurmus 2020-03-04gnu: Update pypi.python.org home pages & use HTTPS.Tobias Geerinckx-Rice 2020-02-24gnu: python-igraph: Update to 0.8.0.Ricardo Wurmus 2020-02-24gnu: igraph: Update to 0.8.0.Ricardo Wurmus 2020-02-11gnu: Add mscgen.Alexander Krotov 2020-01-21gnu: Use HTTPS for bioconductor.org.Tobias Geerinckx-Rice 2019-12-15gnu: r-rgraphviz: Update to 2.30.0.Ricardo Wurmus 2019-12-04gnu: python-pandas: Move to (gnu packages python-science).Ricardo Wurmus 2019-11-28gnu: r-igraph: Update to 1.2.4.2.Ricardo Wurmus 2019-10-20gnu: Remove more GCC < 7 workarounds.Marius Bakke 2019-09-14gnu: r-diffusionmap: Update to 1.2.0.Ricardo Wurmus 2019-06-17gnu: Add rw.Andreas Enge 2019-06-17gnu: edge-addition-planarity-suite: Move to the (gnu packages graph) module.Andreas Enge 2019-05-16gnu: Add python-leidenalg.Ricardo Wurmus 2019-05-06gnu: r-rgraphviz: Update to 2.28.0.Ricardo Wurmus 2019-04-24gnu: r-igraph: Update to 1.2.4.1.Ricardo Wurmus 2019-04-02gnu: Add python-louvain.Ricardo Wurmus 2019-03-29gnu: python-faiss: Fix building on non-Intel architectures.Efraim Flashner 2019-03-29gnu: faiss: Fix building on non-Intel architectures.Efraim Flashner 2019-03-29gnu: Add python-faiss.Ricardo Wurmus 2019-03-29gnu: Add faiss.Ricardo Wurmus 2019-03-07gnu: r-igraph: Update to 1.2.4.Ricardo Wurmus