[Ocfs2-test-devel] [PATCH 01/13] Ocfs2-test: Add Makefile for reflink tests on ocfs2.

Sunil Mushran sunil.mushran at oracle.com
Wed Nov 11 14:13:54 PST 2009


Acked-by: Sunil Mushran <sunil.mushran at oracle.com>

This is for the entire series.

Tristan Ye wrote:
> Signed-off-by: Tristan Ye <tristan.ye at oracle.com>
> ---
>  programs/Makefile               |    3 +-
>  programs/reflink_tests/Makefile |   58 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 60 insertions(+), 1 deletions(-)
>  create mode 100755 programs/reflink_tests/Makefile
>
> diff --git a/programs/Makefile b/programs/Makefile
> index eca5a84..b5f9858 100644
> --- a/programs/Makefile
> +++ b/programs/Makefile
> @@ -55,7 +55,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..d2f2110
> --- /dev/null
> +++ b/programs/reflink_tests/Makefile
> @@ -0,0 +1,58 @@
> +TOPDIR = ../..
> +
> +include $(TOPDIR)/Preamble.make
> +
> +TESTS = reflink_tests
> +
> +CFLAGS = -O2 -Wall -g $(OCFS2_CFLAGS)
> +
> +CFLAGS += $(EXTRA_CFLAGS)
> +
> +ifdef NO_REFLINK
> +CFLAGS += -DNO_REFLINK
> +endif
> +
> +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 	\
> +	compat_reflink.c
> +
> +SINGLE_SOURCES =		\
> +	reflink_test.c		\
> +	reflink_test_utils.c	\
> +	xattr_test_utils.c	\
> +	xattr_test.h		\
> +	reflink_test.h
> +
> +MULTI_SOURCES =			\
> +	multi_reflink_test.c	\
> +	reflink_test_utils.c	\
> +	xattr_test_utils.c	\
> +	xattr_test.h		\
> +	reflink_test.h
> +
> +ifdef NO_REFLINK
> +SINGLE_SOURCES += compat_reflink.c
> +MULTI_SOURCES += compat_reflink.c
> +endif
> +
> +DIST_FILES = $(SOURCES) reflink_test_run.sh multi_reflink_test_run.sh
> +
> +BIN_EXTRA = reflink_test_run.sh multi_reflink_test_run.sh reflink_files.sh
> +
> +BIN_PROGRAMS = reflink_test multi_reflink_test
> +
> +reflink_test: $(SINGLE_SOURCES)
> +	$(LINK) $(OCFS2_LIBS)
> +
> +multi_reflink_test: $(MULTI_SOURCES)
> +	$(MPI_LINK) $(OCFS2_LIBS)
> +
> +include $(TOPDIR)/Postamble.make
> +
>   




More information about the Ocfs2-test-devel mailing list