summaryrefslogtreecommitdiff
path: root/unit-tests/opt-debug-jobs.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2020-11-07 19:39:21 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2020-11-07 19:39:21 +0000
commit302da1a3d35c15cb29d76e0a939f8bcb13f7ad80 (patch)
treec2146dca82d530521c4d2cc46a95c26964311a2c /unit-tests/opt-debug-jobs.mk
parent6bbc783f48498b808e19db4441299dc7d85a278b (diff)
downloadsrc-test2-302da1a3d35c15cb29d76e0a939f8bcb13f7ad80.tar.gz
src-test2-302da1a3d35c15cb29d76e0a939f8bcb13f7ad80.zip
Import bmake-20201101vendor/NetBSD/bmake/20201101
Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py
Notes
Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=367460 svn path=/vendor/NetBSD/bmake/20201101/; revision=367461; tag=vendor/NetBSD/bmake/20201101
Diffstat (limited to 'unit-tests/opt-debug-jobs.mk')
-rw-r--r--unit-tests/opt-debug-jobs.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/unit-tests/opt-debug-jobs.mk b/unit-tests/opt-debug-jobs.mk
new file mode 100644
index 000000000000..fb65d4f3356c
--- /dev/null
+++ b/unit-tests/opt-debug-jobs.mk
@@ -0,0 +1,26 @@
+# $NetBSD: opt-debug-jobs.mk,v 1.4 2020/10/05 19:27:48 rillig Exp $
+#
+# Tests for the -dj command line option, which adds debug logging about
+# running jobs in multiple shells.
+
+.MAKEFLAGS: -dj
+
+# Run in parallel mode since the debug logging is more interesting there
+# than in compat mode.
+.MAKEFLAGS: -j1
+
+all:
+ # Only the actual command is logged.
+ # To see the evaluation of the variable expressions, use -dv.
+ : ${:Uexpanded} expression
+
+ # Undefined variables expand to empty strings.
+ # Multiple spaces are preserved in the command, as they might be
+ # significant.
+ : ${UNDEF} variable
+
+ # In the debug output, single quotes are not escaped, even though
+ # the whole command is enclosed in single quotes as well.
+ # This allows to copy and paste the whole command, without having
+ # to unescape anything.
+ : 'single' and "double" quotes