X-Git-Url: https://git.hcoop.net/jackhill/guix/guix.git/blobdiff_plain/2cdfe13deaf3d959e1ecb3a207cdbc28985e0e79..7ca97fae366b5ac8324a774d8aa09c2a36348666:/tests/guix-build.sh diff --git a/tests/guix-build.sh b/tests/guix-build.sh index a72ce0911d..e1ec560641 100644 --- a/tests/guix-build.sh +++ b/tests/guix-build.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2012, 2013, 2014 Ludovic Courtès +# Copyright © 2012, 2013, 2014, 2016 Ludovic Courtès # # This file is part of GNU Guix. # @@ -26,9 +26,9 @@ guix build --version if guix build -e +; then false; else true; fi -# Should fail because this is a source-less package. -if guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S -then false; else true; fi +# Source-less packages are accepted; they just return nothing. +guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S +test "`guix build -e '(@ (gnu packages bootstrap) %bootstrap-glibc)' -S`" = "" # Should pass. guix build -e '(@@ (gnu packages bootstrap) %bootstrap-guile)' | \ @@ -43,6 +43,7 @@ trap "rm -rf $module_dir" EXIT cat > "$module_dir/foo.scm"< "$module_dir/foo.scm"< "$module_dir/package.scm"< "$module_dir/proc.scm"<derivation "test" + (gexp (mkdir (ungexp output))))) +EOF +guix build --file="$module_dir/proc.scm" --dry-run + +# Building from a gexp file. +cat > "$module_dir/gexp.scm"<