tools/tests: add xenstore testing framework
PATCH v2 1/1 tools/tests: add xenstore testing framework
Add tools/tests/xenstore for a framework to do tests of xenstore. The aim is to test for correctness and performance.
Add a test program containing some tests meant to be run against any xenstore implementation (xenstored, oxenstored, xenstore-stubdom).
It is using libxenstore for access to xenstore and supports multiple tests to be either selected all or individually. All tests are using /local/domain/<own-domid>/xenstore-test/<pid> as base for doing the tests. This allows multiple instances of the program to run in parallel.
---
V2: corrected read/write 3000 test table entries
coding style
remove xenstore-test node if empty at exit
--- .gitignore | 1 + tools/tests/Makefile | 1 + tools/tests/xenstore/Makefile | 27 +++ tools/tests/xenstore/xs-test.c | 536 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 565 insertions(+) create mode 100644 tools/tests/xenstore/Makefile create mode 100644 tools/tests/xenstore/xs-test.c
.gitignore +1 -0
@@ -212,6 +212,7 @@ tools/tests/x86_emulator/blowfish.h tools/tests/x86_emulator/test_x86_emulator tools/tests/x86_emulator/x86_emulate tools/tests/xen-access/xen-access +tools/tests/xenstore/xs-test tools/tests/regression/installed/* tools/tests/regression/build/* tools/tests/regression/downloads/*
tools/tests/Makefile +1 -0
@@ -12,6 +12,7 @@ SUBDIRS-y += regression endif SUBDIRS-$(CONFIG_X86) += x86_emulator SUBDIRS-y += xen-access +SUBDIRS-y += xenstore .PHONY: all clean install distclean all clean distclean: %: subdirs-%
tools/tests/xenstore/Makefile new file +27 -0
@@ -0,0 +1,27 @@ +XEN_ROOT=$(CURDIR)/../../.. +include $(XEN_ROOT)/tools/Rules.mk + +CFLAGS += -Werror + +CFLAGS += $(CFLAGS_libxenstore) + +TARGETS-y := xs-test +TARGETS := $(TARGETS-y) + +.PHONY: all +all: build + +.PHONY: build +build: $(TARGETS) + +.PHONY: clean +clean: + $(RM) *.o $(TARGETS) *~ $(DEPS) + +.PHONY: distclean +distclean: clean + +xs-test: xs-test.o Makefile + $(CC) -o $@ $< $(LDFLAGS) $(LDLIBS_libxenstore) + +-include $(DEPS)
tools/tests/xenstore/xs-test.c new file +536 -0
536 lines not on this page · raw message
Signature · 7 lines
2.10.2 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 6 lines · Juergen Gross
Add
tools/tests/xenstorefor a framework to do tests of xenstore. The aim is to test for correctness and performance.Add a test program containing some tests meant to be run against any xenstore implementation (xenstored, oxenstored, xenstore-stubdom).
Quoted 7 lines
It is using libxenstore for access to xenstore and supports multiple tests to be either selected all or individually. All tests are using /local/domain/<own-domid>/xenstore-test/<pid> as base for doing the tests. This allows multiple instances of the program to run in parallel.
Signed-off-by Juergen Gross <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel