Skip to contentSkip to conversation

Small testsuite for mmap.

PATCH New Edgar E. Iglesias 1 participant 1 message Feb 16, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Small testsuite for mmap.

Hello,

This patch adds a small test program to help verify mmap behaviour, at the moment it only does some very basic tests. Unfortunately, current qemu fails to pass. I'll send a patch for that in a moment.

Best regards,

Signature · 2 lines
Edgar E. Iglesias
Axis Communications AB
tests/Makefile +6 -0
index 1775be8..6000c73 100644
@@ -51,6 +51,12 @@ ifeq ($(ARCH),i386)
 	@if diff -u test-i386.ref test-i386.out ; then echo "Auto Test OK (no code copy)"; fi
 endif
 
+.PHONY: test-mmap
+test-mmap: test-mmap.c
+	$(CC) $(CFLAGS) -Wall -static -O2 $(LDFLAGS) -o $@ $<
+	$(QEMU) ./test-mmap
+	$(QEMU) -p 8192 ./test-mmap 8192
+
 # generic Linux and CPU test
 linux-test: linux-test.c
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm
tests/test-mmap.c new file +171 -0

171 lines not on this page · raw message