summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-04-28 14:42:24 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-04-28 14:42:24 +0200
commit7d62649bd30797f85379561d2c471a10d802bbac (patch)
treed61f88677688f2e4a8c5995ee987f1205ccc599e
parent360d54234f76a3cc478dcfcc52935dcfcbaead34 (diff)
tests: Let user specify a kernel to test
-rw-r--r--tests/user-qemu.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/user-qemu.mk b/tests/user-qemu.mk
index 3dd2e46c..e82e74e2 100644
--- a/tests/user-qemu.mk
+++ b/tests/user-qemu.mk
@@ -14,6 +14,9 @@
# along with the program ; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# Let user specify a kernel to test
+GNUMACH ?= gnumach
+
#
# MIG stubs generation for user-space tests
#
@@ -176,7 +179,7 @@ QEMU_BIN = qemu-system-x86_64
QEMU_OPTS += -cpu core2duo-v1
endif
-tests/test-%.iso: tests/module-% gnumach $(srcdir)/tests/grub.cfg.single.template
+tests/test-%.iso: tests/module-% $(GNUMACH) $(srcdir)/tests/grub.cfg.single.template
rm -rf $(builddir)/tests/isofiles-$*
mkdir -p $(builddir)/tests/isofiles-$*/boot/grub/
< $(srcdir)/tests/grub.cfg.single.template \
@@ -184,7 +187,7 @@ tests/test-%.iso: tests/module-% gnumach $(srcdir)/tests/grub.cfg.single.templat
-e "s/GNUMACHARGS/$(GNUMACH_ARGS)/g" \
-e "s/TEST_START_MARKER/$(TEST_START_MARKER)/g" \
>$(builddir)/tests/isofiles-$*/boot/grub/grub.cfg
- cp gnumach $< $(builddir)/tests/isofiles-$*/boot/
+ cp $(GNUMACH) $< $(builddir)/tests/isofiles-$*/boot/
grub-mkrescue -o $@ $(builddir)/tests/isofiles-$*
rm -rf $(builddir)/tests/isofiles-$*