aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2017-06-28 09:22:45 +0000
committerEnji Cooper <ngie@FreeBSD.org>2017-06-28 09:22:45 +0000
commit3416500aef140042c64bc149cb1ec6620483bc44 (patch)
treeaab72769b2f35080cf1526532a6e71bb039bc006 /tests
parentf35f0a756f8b1a6eb2d1685dbba12faf4cb16976 (diff)
parenta5b450a49bc66a4d95320117399db1432dab6872 (diff)
Notes
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/pjdfstest/config.h206
-rw-r--r--tests/sys/pjdfstest/pjdfstest/Makefile7
-rw-r--r--tests/sys/pjdfstest/tests/Makefile1
-rw-r--r--tests/sys/pjdfstest/tests/utimensat/Makefile14
4 files changed, 222 insertions, 6 deletions
diff --git a/tests/sys/pjdfstest/config.h b/tests/sys/pjdfstest/config.h
new file mode 100644
index 000000000000..450581c4b7e0
--- /dev/null
+++ b/tests/sys/pjdfstest/config.h
@@ -0,0 +1,206 @@
+/* $FreeBSD$ */
+/* config.h. Generated from config.h.in by configure. */
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if NFSv4 ACL support is available */
+#define HAS_NFSV4_ACL_SUPPORT 1
+
+/* Define to 1 if you have the `acl_create_entry_np' function. */
+#define HAVE_ACL_CREATE_ENTRY_NP 1
+
+/* Define to 1 if you have the `acl_from_text' function. */
+#define HAVE_ACL_FROM_TEXT 1
+
+/* Define to 1 if you have the `acl_get_entry' function. */
+#define HAVE_ACL_GET_ENTRY 1
+
+/* Define to 1 if you have the `acl_get_file' function. */
+#define HAVE_ACL_GET_FILE 1
+
+/* Define to 1 if you have the `acl_set_file' function. */
+#define HAVE_ACL_SET_FILE 1
+
+/* Define if bindat exists */
+#define HAVE_BINDAT 1
+
+/* Define if chflags exists */
+#define HAVE_CHFLAGS 1
+
+/* Define if chflagsat exists */
+#define HAVE_CHFLAGSAT 1
+
+/* Define if connectat exists */
+#define HAVE_CONNECTAT 1
+
+/* Define if faccessat exists */
+#define HAVE_FACCESSAT 1
+
+/* Define if fchflags exists */
+#define HAVE_FCHFLAGS 1
+
+/* Define if fchmodat exists */
+#define HAVE_FCHMODAT 1
+
+/* Define if fchownat exists */
+#define HAVE_FCHOWNAT 1
+
+/* Define if fstatat exists */
+#define HAVE_FSTATAT 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define if lchflags exists */
+#define HAVE_LCHFLAGS 1
+
+/* Define if lchmod exists */
+#define HAVE_LCHMOD 1
+
+/* Define if linkat exists */
+#define HAVE_LINKAT 1
+
+/* Define if lpathconf exists */
+#define HAVE_LPATHCONF 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define if mkdirat exists */
+#define HAVE_MKDIRAT 1
+
+/* Define if mkfifoat exists */
+#define HAVE_MKFIFOAT 1
+
+/* Define if mknodat exists */
+#define HAVE_MKNODAT 1
+
+/* Define if openat exists */
+#define HAVE_OPENAT 1
+
+/* Define if posix_fallocate exists */
+#define HAVE_POSIX_FALLOCATE 1
+
+/* Define if readlinkat exists */
+#define HAVE_READLINKAT 1
+
+/* Define if renameat exists */
+#define HAVE_RENAMEAT 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if `st_atim' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_ATIM 1
+
+/* Define to 1 if `st_atimespec' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
+
+/* Define to 1 if `st_birthtim' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
+
+/* Define to 1 if `st_birthtime' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
+
+/* Define to 1 if `st_birthtimespec' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
+
+/* Define to 1 if `st_ctim' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_CTIM 1
+
+/* Define to 1 if `st_ctimespec' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
+
+/* Define to 1 if `st_mtim' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_MTIM 1
+
+/* Define to 1 if `st_mtimespec' is a member of `struct stat'. */
+#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
+
+/* Define if symlinkat exists */
+#define HAVE_SYMLINKAT 1
+
+/* Define to 1 if sys/acl.h is available */
+#define HAVE_SYS_ACL_H 1
+
+/* Define to 1 if you have the <sys/mkdev.h> header file. */
+/* #undef HAVE_SYS_MKDEV_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define if utimensat exists */
+#define HAVE_UTIMENSAT 1
+
+/* Name of package */
+#define PACKAGE "pjdfstest"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "pjdfstest"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "pjdfstest 0.1"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "pjdfstest"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.1"
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Enable extensions on AIX 3, Interix. */
+#ifndef _ALL_SOURCE
+# define _ALL_SOURCE 1
+#endif
+/* Enable GNU extensions on systems that have them. */
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE 1
+#endif
+/* Enable threading extensions on Solaris. */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# define _POSIX_PTHREAD_SEMANTICS 1
+#endif
+/* Enable extensions on HP NonStop. */
+#ifndef _TANDEM_SOURCE
+# define _TANDEM_SOURCE 1
+#endif
+/* Enable general extensions on Solaris. */
+#ifndef __EXTENSIONS__
+# define __EXTENSIONS__ 1
+#endif
+
+
+/* Version number of package */
+#define VERSION "0.1"
+
+/* Define to 1 if on MINIX. */
+/* #undef _MINIX */
+
+/* Define to 2 if the system does not provide POSIX.1 features except with
+ this defined. */
+/* #undef _POSIX_1_SOURCE */
+
+/* Define to 1 if you need to in order for `stat' and other things to work. */
+/* #undef _POSIX_SOURCE */
diff --git a/tests/sys/pjdfstest/pjdfstest/Makefile b/tests/sys/pjdfstest/pjdfstest/Makefile
index 0d47366b6ee6..e676cc036bad 100644
--- a/tests/sys/pjdfstest/pjdfstest/Makefile
+++ b/tests/sys/pjdfstest/pjdfstest/Makefile
@@ -8,13 +8,8 @@ BINDIR= ${TESTSBASE}/sys/pjdfstest
PROG= pjdfstest
MAN=
-CFLAGS+= -D__OS_FreeBSD__ -DHAS_LCHMOD -DHAS_CHFLAGS -DHAS_FCHFLAGS
-CFLAGS+= -DHAS_CHFLAGSAT -DHAS_LCHFLAGS -DHAS_FREEBSD_ACL -DHAS_BINDAT
-CFLAGS+= -DHAS_CONNECTAT
+CFLAGS+= -I${.CURDIR:H}
-# XXX: the upstream sources need some massaging with how it assigns ngroups in
-# pjdfstest.c
-NO_WERROR=
WARNS?= 6
.include <bsd.prog.mk>
diff --git a/tests/sys/pjdfstest/tests/Makefile b/tests/sys/pjdfstest/tests/Makefile
index f3757f27d3ef..3e0f6a06d5e4 100644
--- a/tests/sys/pjdfstest/tests/Makefile
+++ b/tests/sys/pjdfstest/tests/Makefile
@@ -35,5 +35,6 @@ TESTS_SUBDIRS+= rmdir
TESTS_SUBDIRS+= symlink
TESTS_SUBDIRS+= truncate
TESTS_SUBDIRS+= unlink
+TESTS_SUBDIRS+= utimensat
.include <bsd.test.mk>
diff --git a/tests/sys/pjdfstest/tests/utimensat/Makefile b/tests/sys/pjdfstest/tests/utimensat/Makefile
new file mode 100644
index 000000000000..98239d4081c1
--- /dev/null
+++ b/tests/sys/pjdfstest/tests/utimensat/Makefile
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+TAP_TESTS_SH= 00
+TAP_TESTS_SH+= 01
+TAP_TESTS_SH+= 02
+TAP_TESTS_SH+= 03
+TAP_TESTS_SH+= 04
+TAP_TESTS_SH+= 05
+TAP_TESTS_SH+= 06
+TAP_TESTS_SH+= 07
+TAP_TESTS_SH+= 08
+TAP_TESTS_SH+= 09
+
+.include "../pjdfstest.test.mk"