aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-05-24 22:52:52 +0200
committerLudovic Courtès <ludo@gnu.org>2013-05-24 22:52:52 +0200
commite55ec43d8b98fed6c51d536c000f4fba72641c53 (patch)
tree421f467a7617c3534e2319d80d596670fff3a8d6 /tests
parent264218a47ed8f80eb516ae6b960de686ab32c226 (diff)
downloadgnu-guix-e55ec43d8b98fed6c51d536c000f4fba72641c53.tar
gnu-guix-e55ec43d8b98fed6c51d536c000f4fba72641c53.tar.gz
build: Add `--target' option.
* guix/scripts/build.scm (derivations-from-package-expressions): Add `package-derivation' parameter. (show-help, %options): Add `--target'. (guix-build): Use `package-cross-derivation' when `--target' is passed. * tests/guix-build.sh: Add dry-run test with `--target'. * doc/guix.texi (Invoking guix build): Document `--target'.
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 721a7c6769..83de9f5285 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -51,6 +51,9 @@ then false; else true; fi
rm -f "$result"
+# Cross building.
+guix build coreutils --target=mips64el-linux-gnu --dry-run --no-substitutes
+
# Parsing package names and versions.
guix build -n time # PASS
guix build -n time-1.7 # PASS, version found