aboutsummaryrefslogtreecommitdiff
path: root/tests/guix-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/guix-build.sh')
-rw-r--r--tests/guix-build.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/guix-build.sh b/tests/guix-build.sh
index 3d2de092b1..86e41e2927 100644
--- a/tests/guix-build.sh
+++ b/tests/guix-build.sh
@@ -77,6 +77,16 @@ module_dir="t-guix-build-$$"
mkdir "$module_dir"
trap "rm -rf $module_dir" EXIT
+# Check error reporting for '-f'.
+cat > "$module_dir/foo.scm" <<EOF
+(use-modules (guix))
+) ;extra closing paren
+EOF
+! guix build -f "$module_dir/foo.scm" 2> "$module_dir/stderr"
+grep "read error" "$module_dir/stderr"
+rm "$module_dir/stderr" "$module_dir/foo.scm"
+
+# Check 'GUIX_PACKAGE_PATH' & co.
cat > "$module_dir/foo.scm"<<EOF
(define-module (foo)
#:use-module (guix tests)
ref='/guix/commit/etc/completion?id=17f76b209ceca9972dcd375d2a0f869abc6d1f26'>bash completion: Append to $COMPREPLY where possible....Tobias Geerinckx-Rice 2021-10-03bash completion: Consolidate similar $command ‘if’ branches....Tobias Geerinckx-Rice 2021-08-28zsh completion: Add missing commands and arguments....Noah Evans 2021-06-16bash_completion: Complete options for ‘guix environment’....Tobias Geerinckx-Rice 2021-06-16bash completion: Complete options for the right command....Tobias Geerinckx-Rice 2021-06-16bash completion: Really support subcommands....Tobias Geerinckx-Rice 2021-04-20import: Remove Nix importer....Ludovic Courtès 2021-02-17scripts: system: Remove 'vm-image' command....Mathieu Othacehe 2020-12-04bash completion: Complete file names after '-f' and '-l'....Ludovic Courtès