gnu: mrustc: Enable tests.

* gnu/packages/rust.scm (mrustc)[arguments]: Add #:test-target.
<#:phases>[install]: Don't install test output.
This commit is contained in:
Danny Milosavljevic 2018-09-19 12:18:26 +02:00
parent 1cfcb841ed
commit 4a90fcf9e7
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -200,7 +200,7 @@ (define-public mrustc
("rustc"
,(rust-source "1.19.0" "0l8c14qsf42rmkqy92ahij4vf356dbyspxcips1aswpvad81y8qm"))))
(arguments
`(#:tests? #f
`(#:test-target "local_tests"
#:make-flags (list (string-append "LLVM_CONFIG="
(assoc-ref %build-inputs "llvm")
"/bin/llvm-config"))
@ -250,6 +250,7 @@ (define-public mrustc
(gcc (assoc-ref inputs "gcc")))
;; These files are not reproducible.
(for-each delete-file (find-files "output" "\\.txt$"))
(delete-file-recursively "output/local_tests")
(mkdir-p lib)
(copy-recursively "output" lib/rust)
(mkdir-p bin)