[Ocfs2-test-devel] [PATCH 1/5] Ocfs2-tests:Add quota tests for ocfs2 v2.

Tristan Ye tristan.ye at oracle.com
Wed Nov 12 00:31:29 PST 2008


It's v2 patch for quota test with both single and multi-nodes tests.

Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
 programs/Makefile             |    3 ++-
 programs/quota_tests/Makefile |   23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)
 create mode 100644 programs/quota_tests/Makefile

diff --git a/programs/Makefile b/programs/Makefile
index ec399e9..85a9738 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -54,6 +54,7 @@ SUBDIRS =			\
 	untar_files		\
 	write_append_truncate	\
 	write_torture		\
-	xattr_tests
+	xattr_tests		\
+	quota_tests
 
 include $(TOPDIR)/Postamble.make
diff --git a/programs/quota_tests/Makefile b/programs/quota_tests/Makefile
new file mode 100644
index 0000000..e320323
--- /dev/null
+++ b/programs/quota_tests/Makefile
@@ -0,0 +1,23 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+TESTS = quota_multi_tests
+
+CC = $(MPICC)
+
+CFLAGS = -O2 -Wall -g $(O2DLM_CFLAGS) $(OCFS2_CFLAGS)
+
+SOURCES = quota_multi_tests.c quota.h
+OBJECTS = $(patsubst %.c,%.o,$(SOURCES))
+
+DIST_FILES = $(SOURCES) open_delete.py
+
+BIN_EXTRA = run_quota_multi_tests.py quota_tests.sh
+
+BIN_PROGRAMS = quota_multi_tests
+
+quota_multi_tests: $(OBJECTS)
+	$(LINK) $(OCFS2_LIBS)
+
+include $(TOPDIR)/Postamble.make
-- 
1.5.5




More information about the Ocfs2-test-devel mailing list