aboutsummaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authoredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-01 22:23:17 +0000
committeredgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>2008-03-01 22:23:17 +0000
commite1ffb0f18f01dfedbff344bfeaf85ef9bd2084c4 (patch)
tree906b9b34c64104fa728152d5f8a081ef189571d0 /tests/Makefile
parentbebb39d461c137617556b65ced2db3d5bc33b4f6 (diff)
downloadqemu-e1ffb0f18f01dfedbff344bfeaf85ef9bd2084c4.zip
qemu-e1ffb0f18f01dfedbff344bfeaf85ef9bd2084c4.tar.gz
qemu-e1ffb0f18f01dfedbff344bfeaf85ef9bd2084c4.tar.bz2
Add a tests for user-mode mmap
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4006 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 1775be8..7f19fde 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -51,6 +51,15 @@ 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 $@ $<
+ -./test-mmap
+ -$(QEMU) ./test-mmap
+ -$(QEMU) -p 8192 ./test-mmap 8192
+ -$(QEMU) -p 16384 ./test-mmap 16384
+ -$(QEMU) -p 32768 ./test-mmap 32768
+
# generic Linux and CPU test
linux-test: linux-test.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm