Respond to ngie's comments in D19752
Better Makefile syntax. Note that this commit is to the project branch, but the review concerns the merge to head. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
f8d4af104b
commit
99878c75e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=345788
@ -38,166 +38,24 @@ GTESTS+= unlink
|
||||
GTESTS+= write
|
||||
GTESTS+= xattr
|
||||
|
||||
SRCS.access+= access.cc
|
||||
SRCS.access+= getmntopts.c
|
||||
SRCS.access+= mockfs.cc
|
||||
SRCS.access+= utils.cc
|
||||
.for p in ${GTESTS}
|
||||
SRCS.$p+= ${p}.cc
|
||||
SRCS.$p+= getmntopts.c
|
||||
SRCS.$p+= mockfs.cc
|
||||
SRCS.$p+= utils.cc
|
||||
.endfor
|
||||
|
||||
SRCS.allow_other+= allow_other.cc
|
||||
SRCS.allow_other+= getmntopts.c
|
||||
SRCS.allow_other+= mockfs.cc
|
||||
SRCS.allow_other+= utils.cc
|
||||
|
||||
SRCS.create+= create.cc
|
||||
SRCS.create+= getmntopts.c
|
||||
SRCS.create+= mockfs.cc
|
||||
SRCS.create+= utils.cc
|
||||
|
||||
SRCS.default_permissions+= default_permissions.cc
|
||||
SRCS.default_permissions+= getmntopts.c
|
||||
SRCS.default_permissions+= mockfs.cc
|
||||
SRCS.default_permissions+= utils.cc
|
||||
TEST_METADATA.default_permissions+= required_user="unprivileged"
|
||||
|
||||
SRCS.destroy+= destroy.cc
|
||||
SRCS.destroy+= getmntopts.c
|
||||
SRCS.destroy+= mockfs.cc
|
||||
SRCS.destroy+= utils.cc
|
||||
|
||||
SRCS.flush+= flush.cc
|
||||
SRCS.flush+= getmntopts.c
|
||||
SRCS.flush+= mockfs.cc
|
||||
SRCS.flush+= utils.cc
|
||||
|
||||
SRCS.fsync+= fsync.cc
|
||||
SRCS.fsync+= getmntopts.c
|
||||
SRCS.fsync+= mockfs.cc
|
||||
SRCS.fsync+= utils.cc
|
||||
|
||||
SRCS.fsyncdir+= fsyncdir.cc
|
||||
SRCS.fsyncdir+= getmntopts.c
|
||||
SRCS.fsyncdir+= mockfs.cc
|
||||
SRCS.fsyncdir+= utils.cc
|
||||
|
||||
SRCS.getattr+= getattr.cc
|
||||
SRCS.getattr+= getmntopts.c
|
||||
SRCS.getattr+= mockfs.cc
|
||||
SRCS.getattr+= utils.cc
|
||||
|
||||
SRCS.interrupt+= interrupt.cc
|
||||
SRCS.interrupt+= getmntopts.c
|
||||
SRCS.interrupt+= mockfs.cc
|
||||
SRCS.interrupt+= utils.cc
|
||||
|
||||
SRCS.link+= getmntopts.c
|
||||
SRCS.link+= link.cc
|
||||
SRCS.link+= mockfs.cc
|
||||
SRCS.link+= utils.cc
|
||||
|
||||
SRCS.locks+= locks.cc
|
||||
SRCS.locks+= getmntopts.c
|
||||
SRCS.locks+= mockfs.cc
|
||||
SRCS.locks+= utils.cc
|
||||
|
||||
SRCS.lookup+= getmntopts.c
|
||||
SRCS.lookup+= lookup.cc
|
||||
SRCS.lookup+= mockfs.cc
|
||||
SRCS.lookup+= utils.cc
|
||||
|
||||
SRCS.mkdir+= getmntopts.c
|
||||
SRCS.mkdir+= mockfs.cc
|
||||
SRCS.mkdir+= mkdir.cc
|
||||
SRCS.mkdir+= utils.cc
|
||||
|
||||
SRCS.mknod+= getmntopts.c
|
||||
SRCS.mknod+= mockfs.cc
|
||||
SRCS.mknod+= mknod.cc
|
||||
SRCS.mknod+= utils.cc
|
||||
TEST_METADATA.mknod+= required_user="root"
|
||||
|
||||
SRCS.open+= getmntopts.c
|
||||
SRCS.open+= mockfs.cc
|
||||
SRCS.open+= open.cc
|
||||
SRCS.open+= utils.cc
|
||||
|
||||
SRCS.opendir+= getmntopts.c
|
||||
SRCS.opendir+= mockfs.cc
|
||||
SRCS.opendir+= opendir.cc
|
||||
SRCS.opendir+= utils.cc
|
||||
|
||||
SRCS.read+= getmntopts.c
|
||||
SRCS.read+= mockfs.cc
|
||||
SRCS.read+= read.cc
|
||||
SRCS.read+= utils.cc
|
||||
|
||||
SRCS.readdir+= getmntopts.c
|
||||
SRCS.readdir+= mockfs.cc
|
||||
SRCS.readdir+= readdir.cc
|
||||
SRCS.readdir+= utils.cc
|
||||
|
||||
SRCS.readlink+= getmntopts.c
|
||||
SRCS.readlink+= mockfs.cc
|
||||
SRCS.readlink+= readlink.cc
|
||||
SRCS.readlink+= utils.cc
|
||||
|
||||
SRCS.release+= getmntopts.c
|
||||
SRCS.release+= mockfs.cc
|
||||
SRCS.release+= release.cc
|
||||
SRCS.release+= utils.cc
|
||||
|
||||
SRCS.releasedir+= getmntopts.c
|
||||
SRCS.releasedir+= mockfs.cc
|
||||
SRCS.releasedir+= releasedir.cc
|
||||
SRCS.releasedir+= utils.cc
|
||||
|
||||
SRCS.rename+= getmntopts.c
|
||||
SRCS.rename+= mockfs.cc
|
||||
SRCS.rename+= rename.cc
|
||||
SRCS.rename+= utils.cc
|
||||
|
||||
SRCS.rmdir+= getmntopts.c
|
||||
SRCS.rmdir+= mockfs.cc
|
||||
SRCS.rmdir+= rmdir.cc
|
||||
SRCS.rmdir+= utils.cc
|
||||
|
||||
SRCS.setattr+= getmntopts.c
|
||||
SRCS.setattr+= mockfs.cc
|
||||
SRCS.setattr+= setattr.cc
|
||||
SRCS.setattr+= utils.cc
|
||||
|
||||
SRCS.statfs+= getmntopts.c
|
||||
SRCS.statfs+= mockfs.cc
|
||||
SRCS.statfs+= statfs.cc
|
||||
SRCS.statfs+= utils.cc
|
||||
|
||||
SRCS.symlink+= getmntopts.c
|
||||
SRCS.symlink+= mockfs.cc
|
||||
SRCS.symlink+= symlink.cc
|
||||
SRCS.symlink+= utils.cc
|
||||
|
||||
SRCS.unlink+= getmntopts.c
|
||||
SRCS.unlink+= mockfs.cc
|
||||
SRCS.unlink+= unlink.cc
|
||||
SRCS.unlink+= utils.cc
|
||||
|
||||
SRCS.write+= getmntopts.c
|
||||
SRCS.write+= mockfs.cc
|
||||
SRCS.write+= write.cc
|
||||
SRCS.write+= utils.cc
|
||||
|
||||
SRCS.xattr+= getmntopts.c
|
||||
SRCS.xattr+= mockfs.cc
|
||||
SRCS.xattr+= xattr.cc
|
||||
SRCS.xattr+= utils.cc
|
||||
|
||||
# TODO: drastically increase timeout after test development is mostly complete
|
||||
TEST_METADATA+= timeout=10
|
||||
|
||||
FUSEFS= ${.CURDIR:H:H:H:H}/sys/fs/fuse
|
||||
MOUNT= ${.CURDIR:H:H:H:H}/sbin/mount
|
||||
CFLAGS+= -I${.CURDIR:H:H:H}
|
||||
CFLAGS+= -I${FUSEFS}
|
||||
CFLAGS+= -I${MOUNT}
|
||||
FUSEFS= ${SRCTOP}/sys/fs/fuse
|
||||
MOUNT= ${SRCTOP}/sbin/mount
|
||||
CXXFLAGS+= -I${SRCTOP}/tests
|
||||
CXXFLAGS+= -I${FUSEFS}
|
||||
CXXFLAGS+= -I${MOUNT}
|
||||
.PATH: ${MOUNT}
|
||||
CXXSTD= c++14
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user