r272057: Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91 - Remove tools/regression/pjdfstest - Add upgrade directions for contrib/pjdfstest - Add a note to UPDATING for the move (the reachover Makefiles are coming soon) Functional differences: - ftruncate testcases are added from upstream (github) Non-functional differences: - The copyright for the project has been updated to 2012 - pjd's contact information has been updated Discussed with: -testing, jmmv, pjd Sponsored by: EMC / Isilon Storage Division r272083: Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris, etc) Sponsored by: EMC / Isilon Storage Division r272084: Fix the executed testplan count Sponsored by: EMC / Isilon Storage Division r272087: Increase the memory disk size in the following testcases to avoid mount failures, which would cause cascade failures in the rest of the test run: link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t Fail quickly in all of the testcases if mdconfig, mount, umount, etc fails to avoid issues similar to this in the future Submitted by: Casey Peel <cpeel@isilon.com> Sponsored by: EMC / Isilon Storage Division r274016: Integrate pjdfstest test suite execution into kyua pjdfstest execution is opt-in and must be done as root due to some of the assumptions made by the test suite and lack of error checking in the non-root case A description of how to execute pjdfstest with kyua is provided in share/pjdfstest/README Phabric: D824 (an earlier prototype patch) Relnotes: yes Sponsored by: EMC / Isilon Storage Division
27 lines
771 B
Makefile
27 lines
771 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= pjdfstest
|
|
|
|
${PROG}: ${PROG}.c
|
|
@OSTYPE=`uname`; \
|
|
CFLAGS=-D__OS_$${OSTYPE}__; \
|
|
if [ $$OSTYPE = "FreeBSD" ]; then \
|
|
CFLAGS="$$CFLAGS -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_FCHFLAGS -DHAS_CHFLAGSAT -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL -DHAS_BINDAT -DHAS_CONNECTAT -DHAS_LPATHCONF"; \
|
|
elif [ $$OSTYPE = "SunOS" ]; then \
|
|
CFLAGS="$$CFLAGS -DHAS_TRUNCATE64 -DHAS_STAT64"; \
|
|
CFLAGS="$$CFLAGS -lsocket"; \
|
|
elif [ $$OSTYPE = "Darwin" ]; then \
|
|
CFLAGS="$$CFLAGS -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_LCHFLAGS"; \
|
|
elif [ $$OSTYPE == "Linux" ]; then \
|
|
CFLAGS="$$CFLAGS -D_GNU_SOURCE"; \
|
|
else \
|
|
echo "Unsupported operating system: ${OSTYPE}."; \
|
|
exit 1; \
|
|
fi; \
|
|
cmd="gcc -Wall $$CFLAGS ${PROG}.c -o ${PROG}"; \
|
|
echo $$cmd; \
|
|
$$cmd
|
|
|
|
clean:
|
|
rm -f ${PROG}
|