diff --git a/Makefile b/Makefile index 1c824b4d..fb96084f 100644 --- a/Makefile +++ b/Makefile @@ -630,7 +630,7 @@ test-ioctl: ioctl-test ioctl-test-32 ioctl-test-64 $(Q)./ioctl-test-32 > ioctl-test-32.log $(Q)./ioctl-test-64 > ioctl-test-64.log -library-test: library-test.c libbtrfs.so +library-test: tests/library-test.c libbtrfs.so @echo " [TEST PREP] $@"$(eval TMPD=$(shell mktemp -d)) $(Q)mkdir -p $(TMPD)/include/btrfs && \ cp $(libbtrfs_headers) $(TMPD)/include/btrfs && \ @@ -641,7 +641,7 @@ library-test: library-test.c libbtrfs.so @echo " [TEST CLEAN] $@" $(Q)$(RM) -rf -- $(TMPD) -library-test.static: library-test.c $(libs_static) +library-test.static: tests/library-test.c $(libs_static) @echo " [TEST PREP] $@"$(eval TMPD=$(shell mktemp -d)) $(Q)mkdir -p $(TMPD)/include/btrfs && \ cp $(libbtrfs_headers) $(TMPD)/include/btrfs && \ diff --git a/library-test.c b/tests/library-test.c similarity index 100% rename from library-test.c rename to tests/library-test.c