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

Tristan Ye tristan.ye at oracle.com
Mon Dec 22 16:59:56 PST 2008


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 100755 programs/quota_tests/Makefile

diff --git a/programs/Makefile b/programs/Makefile
index 9b5a856..e8016b3 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -52,7 +52,8 @@ SUBDIRS =			\
 	write_append_truncate	\
 	write_torture		\
 	xattr_tests		\
-	acl_tests
+	acl_tests		\
+	quota_tests
 
 ifdef OCFS2_TEST_ENABLE_THIRDPARTY
 SUBDIRS += bonnie dbench iozone postmark
diff --git a/programs/quota_tests/Makefile b/programs/quota_tests/Makefile
new file mode 100755
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