[Ocfs2-test-devel] [PATCH 1/9] Ocfs2-test: Add Makefile for reflink tests on ocfs2.
Tristan Ye
tristan.ye at oracle.com
Fri Mar 20 01:24:50 PDT 2009
Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
programs/Makefile | 3 ++-
programs/reflink_tests/Makefile | 25 +++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletions(-)
create mode 100755 programs/reflink_tests/Makefile
diff --git a/programs/Makefile b/programs/Makefile
index 4f588ce..a7ec642 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -55,7 +55,8 @@ SUBDIRS = \
acl_tests \
quota_tests \
inode_alloc_perf_tests \
- dx_dirs_tests
+ dx_dirs_tests \
+ reflink_tests
ifdef OCFS2_TEST_ENABLE_THIRDPARTY
SUBDIRS += bonnie dbench iozone postmark
diff --git a/programs/reflink_tests/Makefile b/programs/reflink_tests/Makefile
new file mode 100755
index 0000000..0aa0d1a
--- /dev/null
+++ b/programs/reflink_tests/Makefile
@@ -0,0 +1,25 @@
+TOPDIR = ../..
+
+include $(TOPDIR)/Preamble.make
+
+TESTS = reflink_tests
+
+CFLAGS = -O2 -Wall -g $(OCFS2_CFLAGS)
+
+MPI_LINK = $(MPICC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+SOURCES = reflink_test.h xattr_test.h reflink_test_utils.c xattr_test_utils.c reflink_test.c multi_reflink_test.c
+
+DIST_FILES = $(SOURCES) reflink_test_run.sh multi_reflink_test_run.sh
+
+BIN_EXTRA = reflink_test_run.sh multi_reflink_test_run.sh
+
+BIN_PROGRAMS = reflink_test multi_reflink_test
+
+reflink_test: reflink_test.c reflink_test_utils.c xattr_test_utils.c xattr_test.h reflink_test.h
+ $(LINK) $(OCFS2_LIBS)
+
+multi_reflink_test: multi_reflink_test.c reflink_test_utils.c xattr_test_utils.c xattr_test.h reflink_test.h
+ $(MPI_LINK) $(OCFS2_LIBS)
+
+include $(TOPDIR)/Postamble.make
--
1.5.5
More information about the Ocfs2-test-devel
mailing list