summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/bmake-run-check-separately.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2025-12-07 07:01:41 +0100
committerRutherther <rutherther@ditigal.xyz>2026-01-25 21:17:48 +0100
commitf87c5073ea0d5a6b59151caccc878531eafb7bc4 (patch)
tree214313c6716e63518055c9a70f58285a7da96568 /gnu/packages/patches/bmake-run-check-separately.patch
parentd8ceb03b4bc3a81d348c0abcce3d9172f1461db0 (diff)
gnu: bmake: Run tests in check phase.
* gnu/packages/patches/bmake-run-check-separately.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/build-tools.scm (bmake)[source]: Use it. [arguments/<#:tests, #:test-target>: Set to enable tests. Change-Id: I7e270e1c74b475813cb9c623f2b8a37e1f09a0b9 Signed-off-by: Andreas Enge <andreas@enge.fr> Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu/packages/patches/bmake-run-check-separately.patch')
-rw-r--r--gnu/packages/patches/bmake-run-check-separately.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/patches/bmake-run-check-separately.patch b/gnu/packages/patches/bmake-run-check-separately.patch
new file mode 100644
index 00000000000..b2403928a89
--- /dev/null
+++ b/gnu/packages/patches/bmake-run-check-separately.patch
@@ -0,0 +1,26 @@
+By default tests are run on build and install. Normally, Guix
+tests are invoked separately in a check stage. To allow doing
+that this patch disable the automatic test invocations during build and
+install.
+
+diff -upr bmake.orig/boot-strap bmake/boot-strap
+--- bmake.orig/boot-strap 2024-03-15 11:26:18.664828810 +0100
++++ bmake/boot-strap 2024-03-15 11:27:12.081555010 +0100
+@@ -435,9 +435,6 @@ op_build() {
+ [ -s make-bootstrap.sh ] || op_configure
+ chmod 755 make-bootstrap.sh || exit 1
+ ./make-bootstrap.sh || exit 1
+- case "$op" in
+- build) rm -f tested; op_test;;
+- esac
+ }
+
+ op_test() {
+@@ -461,7 +458,6 @@ op_clean() {
+ }
+
+ op_install() {
+- op_test
+ case "$INSTALL_PREFIX,$INSTALL_BIN,$prefix" in
+ ,$HOST_TARGET/bin,*/$HOST_TARGET)
+ INSTALL_PREFIX=`dirname $prefix`