[Ocfs2-test-devel] [PATCH 1/9] Ocfs2-test: Add Makefile for reflink tests on ocfs2.
Tristan Ye
tristan.ye at oracle.com
Fri Apr 3 01:51:58 PDT 2009
Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
---
programs/Makefile | 3 ++-
programs/reflink_tests/Makefile | 26 ++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 1 deletions(-)
create mode 100755 programs/reflink_tests/Makefile
diff --git a/programs/Makefile b/programs/Makefile
index 56b1e08..a0c22db 100644
--- a/programs/Makefile
+++ b/programs/Makefile
@@ -54,7 +54,8 @@ SUBDIRS = \
xattr_tests \
acl_tests \
quota_tests \
- inode_alloc_perf_tests
+ inode_alloc_perf_tests \
+ reflink_tests
ifdef OCFS2_TEST_DX_DIRS
SUBDIRS += dx_dirs_tests
diff --git a/programs/reflink_tests/Makefile b/programs/reflink_tests/Makefile
new file mode 100755
index 0000000..36d6fa9
--- /dev/null
+++ b/programs/reflink_tests/Makefile
@@ -0,0 +1,26 @@
+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