Add reachover Makefiles to build ATF 0.6. These replace the old Makefiles

that were spread all around the tree when ATF lived in dist/atf.
This commit is contained in:
jmmv 2009-01-19 07:13:03 +00:00
parent e2207522e1
commit 36b1da6c51
38 changed files with 956 additions and 0 deletions

5
external/bsd/atf/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:03 jmmv Exp $
SUBDIR= etc lib .WAIT libexec share usr.bin tests
.include <bsd.subdir.mk>

5
external/bsd/atf/etc/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:03 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

13
external/bsd/atf/etc/atf/Makefile vendored Normal file
View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:03 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/data
CONFIGFILES= NetBSD.conf atf-run.hooks
FILESDIR= /etc/atf
FILESMODE= 644
.include <bsd.prog.mk> # For clean and cleandir
.include <bsd.files.mk>

12
external/bsd/atf/etc/atf/NetBSD.conf vendored Normal file
View File

@ -0,0 +1,12 @@
Content-Type: application/X-atf-config; version="1"
#
# Configuration file for the NetBSD test suite.
# See atf-formats(5) for more details on its syntax.
#
# When running the test suite as root, some tests require to switch to
# an unprivileged user to perform extra checks. Set this variable to
# the user you want to use in those cases. If not set, those tests will
# be skipped.
#unprivileged-user = "nobody"

5
external/bsd/atf/lib/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
SUBDIR= libatf-c .WAIT libatf-c++
.include <bsd.subdir.mk>

View File

@ -0,0 +1,67 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
NOLINT= # defined
.include <bsd.own.mk>
LIB= atf-c++
LDADD= -L${.OBJDIR}/../libatf-c -latf-c
NOPIC= # defined; interface is still too unstable
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}
.PATH: ${SRCDIR}/atf-c++
CPPFLAGS+= -I${.CURDIR}/../libatf-c
CPPFLAGS+= -I.
CPPFLAGS+= -DHAVE_CONFIG_H
WARNS?= 2
SRCS= application.cpp \
atffile.cpp \
check.cpp \
config.cpp \
env.cpp \
exceptions.cpp \
expand.cpp \
formats.cpp \
fs.cpp \
io.cpp \
parser.cpp \
process.cpp \
signals.cpp \
tests.cpp \
text.cpp \
ui.cpp \
user.cpp
INCS= application.hpp \
atffile.hpp \
check.hpp \
config.hpp \
env.hpp \
exceptions.hpp \
expand.hpp \
formats.hpp \
fs.hpp \
io.hpp \
macros.hpp \
parser.hpp \
process.hpp \
sanity.hpp \
signals.hpp \
tests.hpp \
text.hpp \
ui.hpp \
user.hpp \
utils.hpp
INCSDIR= /usr/include/atf-c++
INCS+= atf-c++.hpp
INCSDIR_atf-c++.hpp=/usr/include
MAN= # empty
.include <bsd.lib.mk>

87
external/bsd/atf/lib/libatf-c/Makefile vendored Normal file
View File

@ -0,0 +1,87 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
NOLINT= # defined
.include <bsd.own.mk>
LIB= atf-c
NOPIC= # defined; interface is still too unstable
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}
.PATH: ${SRCDIR}/atf-c
CPPFLAGS+= -I${.CURDIR}
CPPFLAGS+= -I.
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -DATF_ARCH=\"${MACHINE}\"
CPPFLAGS+= -DATF_CONFDIR=\"/etc/atf\"
CPPFLAGS+= -DATF_LIBEXECDIR=\"/usr/libexec\"
CPPFLAGS+= -DATF_MACHINE=\"${MACHINE_ARCH}\"
CPPFLAGS+= -DATF_PKGDATADIR=\"/usr/share/atf\"
CPPFLAGS+= -DATF_SHELL=\"/bin/sh\"
CPPFLAGS+= -DATF_WORKDIR=\"/tmp\"
WARNS?= 2
SRCS= check.c \
config.c \
dynstr.c \
env.c \
error.c \
expand.c \
fs.c \
io.c \
list.c \
map.c \
object.c \
process.c \
sanity.c \
signals.c \
text.c \
ui.c \
user.c \
tc.c \
tcr.c \
tp.c \
tp_main.c
INCS= check.h \
config.h \
defs.h \
dynstr.h \
env.h \
error.h \
error_fwd.h \
expand.h \
fs.h \
io.h \
list.h \
macros.h \
map.h \
object.h \
process.h \
sanity.h \
signals.h \
tc.h \
tcr.h \
text.h \
tp.h \
ui.h \
user.h
INCSDIR= /usr/include/atf-c
INCS+= atf-c.h
INCSDIR_atf-c.h=/usr/include
MAN= # empty
CLEANFILES+= defs.h
defs.h: defs.h.in
sed -e 's,@ATTRIBUTE_NORETURN@,__attribute__((noreturn)),g' \
<${SRCDIR}/atf-c/defs.h.in >defs.h.tmp
mv defs.h.tmp defs.h
.include <bsd.lib.mk>

104
external/bsd/atf/lib/libatf-c/bconfig.h vendored Normal file
View File

@ -0,0 +1,104 @@
/* bconfig.h. Generated from bconfig.h.in by configure. */
/* bconfig.h.in. Generated from configure.ac by autoheader. */
/* Define to 1 if basename takes a constant pointer */
/* #undef HAVE_CONST_BASENAME */
/* Define to 1 if dirname takes a constant pointer */
/* #undef HAVE_CONST_DIRNAME */
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if getcwd(NULL, 0) works */
#define HAVE_GETCWD_DYN 1
/* Define to 1 if getopt allows a + sign for POSIX behavior */
/* #undef HAVE_GNU_GETOPT */
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1
/* Define to 1 if putenv is in std */
/* #undef HAVE_PUTENV_IN_STD */
/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1
/* Define to 1 if setenv is in std */
/* #undef HAVE_SETENV_IN_STD */
/* Define to 1 if snprintf is in std */
/* #undef HAVE_SNPRINTF_IN_STD */
/* 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 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 to 1 if you have the `unmount' function. */
#define HAVE_UNMOUNT 1
/* Define to 1 if you have the `unsetenv' function. */
#define HAVE_UNSETENV 1
/* Define to 1 if unsetenv is in std */
/* #undef HAVE_UNSETENV_IN_STD */
/* Define to 1 if vsnprintf is in std */
/* #undef HAVE_VSNPRINTF_IN_STD */
/* Define to the last valid signal number */
#define LAST_SIGNO 63
/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */
/* Name of package */
#define PACKAGE "atf"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "atf-devel@NetBSD.org"
/* Define to the copyright string applicable to this package. */
#define PACKAGE_COPYRIGHT "Copyright (c) 2007, 2008 The NetBSD Foundation, Inc."
/* Define to the full name of this package. */
#define PACKAGE_NAME "Automated Testing Framework"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "Automated Testing Framework 0.6"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "atf"
/* Define to the version of this package. */
#define PACKAGE_VERSION "0.6"
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "0.6"

5
external/bsd/atf/libexec/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
SUBDIR= atf-cleanup atf-exec atf-format
.include <bsd.subdir.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/libexec
PROG_CXX= atf-cleanup
SRCS= atf-cleanup.cpp
MAN= atf-cleanup.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/libexec
PROG_CXX= atf-exec
SRCS= atf-exec.cpp
MAN= atf-exec.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/libexec
PROG_CXX= atf-format
SRCS= atf-format.cpp
MAN= atf-format.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

5
external/bsd/atf/share/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
SUBDIR= atf doc examples xml xsl
.include <bsd.subdir.mk>

19
external/bsd/atf/share/atf/Makefile vendored Normal file
View File

@ -0,0 +1,19 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
.include <bsd.own.mk>
.if ${MKSHARE} != "no"
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/data ${SRCDIR}/atf-sh
# Files in ${SRCDIR}/subrs.
FILESDIR= /usr/share/atf
FILESMODE= 444
FILES= atf.footer.subr \
atf.header.subr \
atf.init.subr
.endif
.include <bsd.prog.mk>

5
external/bsd/atf/share/doc/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

27
external/bsd/atf/share/doc/atf/Makefile vendored Normal file
View File

@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}
.PATH: ${SRCDIR}/atf-c
.PATH: ${SRCDIR}/atf-c++
.PATH: ${SRCDIR}/atf-sh
.PATH: ${SRCDIR}/doc
.if ${MKDOC} != "no"
FILESDIR= /usr/share/doc/atf
FILES= AUTHORS COPYING NEWS README ROADMAP
.endif
MAN= atf.7 atf-formats.5 atf-test-case.4 atf-test-program.1
MAN+= atf-c-api.3 atf-c++-api.3 atf-sh-api.3
CLEANFILES+= atf.7 atf.7.tmp
atf.7: atf.7.in
${TOOL_SED} -e 's,__DOCDIR__,/usr/share/doc/atf,g' \
<${SRCDIR}/doc/atf.7.in >atf.7.tmp
mv atf.7.tmp atf.7
.include <bsd.files.mk>
.include <bsd.man.mk>

View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:04 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/data
FILESDIR= /usr/share/examples/atf
FILESMODE= 444
FILES= atf-run.hooks \
tests-results.css
.include <bsd.prog.mk>

5
external/bsd/atf/share/xml/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

12
external/bsd/atf/share/xml/atf/Makefile vendored Normal file
View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/data
FILESDIR= /usr/share/xml/atf
FILESMODE= 444
FILES= tests-results.dtd
.include <bsd.prog.mk>

5
external/bsd/atf/share/xsl/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

12
external/bsd/atf/share/xsl/atf/Makefile vendored Normal file
View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/data
FILESDIR= /usr/share/xsl/atf
FILESMODE= 444
FILES= tests-results.xsl
.include <bsd.prog.mk>

5
external/bsd/atf/tests/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
SUBDIR= atf
.include <bsd.subdir.mk>

13
external/bsd/atf/tests/atf/Makefile vendored Normal file
View File

@ -0,0 +1,13 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf
SUBDIR= atf-c atf-c++ atf-sh data formats test_programs tools
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf
.include <bsd.test.mk>
.include <bsd.subdir.mk>

View File

@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/atf-c++
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/atf-c++
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -I${NETBSDSRCDIR}/lib/libatf-c
TESTS_CXX= t_check
TESTS_CXX+= t_config
TESTS_CXX+= t_env
TESTS_CXX+= t_expand
TESTS_CXX+= t_fs
TESTS_CXX+= t_io
TESTS_CXX+= t_macros
TESTS_CXX+= t_parser
TESTS_CXX+= t_process
TESTS_CXX+= t_signals
TESTS_CXX+= t_tests
TESTS_CXX+= t_text
TESTS_CXX+= t_user
TESTS_CXX+= t_utils
.include <bsd.test.mk>

View File

@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/atf-c
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/atf-c
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -I${NETBSDSRCDIR}/external/bsd/atf/lib/libatf-c
PROGS= h_check
SRCS.h_check= h_check.c
MAN.h_check= # defined
BINDIR.h_check= ${TESTSDIR}
TESTS_C= t_check
TESTS_C+= t_config
TESTS_C+= t_dynstr
TESTS_C+= t_env
TESTS_C+= t_error
TESTS_C+= t_expand
TESTS_C+= t_fs
TESTS_C+= t_io
TESTS_C+= t_list
TESTS_C+= t_macros
TESTS_C+= t_map
TESTS_C+= t_process
TESTS_C+= t_sanity
TESTS_C+= t_signals
TESTS_C+= t_tc
TESTS_C+= t_tcr
TESTS_C+= t_text
TESTS_C+= t_ui
TESTS_C+= t_user
.include <bsd.test.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/atf-sh
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/atf-sh
TESTS_SH= h_misc
TESTS_SH+= t_atf_check
TESTS_SH+= t_config
TESTS_SH+= t_normalize
TESTS_SH+= t_tc
TESTS_SH+= t_tp
.include <bsd.test.mk>

View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:05 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/data
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/data
TESTS_SH= t_pkg_config
.include <bsd.test.mk>

View File

@ -0,0 +1,184 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/formats
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/formats
CPPFLAGS+= -I${SRCDIR}/libs
TESTS_CXX= h_parser
TESTS_CXX+= t_writers
TESTS_SH= t_parsers
FILESDIR= ${TESTSDIR}
FILES= d_atffile_1 \
d_atffile_1.expout \
d_atffile_2 \
d_atffile_2.expout \
d_atffile_3 \
d_atffile_3.expout \
d_atffile_4 \
d_atffile_4.expout \
d_atffile_5 \
d_atffile_5.expout \
d_atffile_50 \
d_atffile_50.experr \
d_atffile_51 \
d_atffile_51.experr \
d_atffile_52 \
d_atffile_52.experr \
d_atffile_53 \
d_atffile_53.experr \
d_atffile_53.expout \
d_atffile_54 \
d_atffile_54.experr \
d_atffile_6 \
d_atffile_6.expout \
d_config_1 \
d_config_1.expout \
d_config_2 \
d_config_2.expout \
d_config_3 \
d_config_3.expout \
d_config_4 \
d_config_4.expout \
d_config_50 \
d_config_50.experr \
d_config_51 \
d_config_51.experr \
d_config_52 \
d_config_52.experr \
d_config_53 \
d_config_53.experr \
d_config_53.expout \
d_config_54 \
d_config_54.experr \
d_headers_1 \
d_headers_1.experr \
d_headers_10 \
d_headers_10.experr \
d_headers_11 \
d_headers_11.experr \
d_headers_12 \
d_headers_12.experr \
d_headers_2 \
d_headers_2.experr \
d_headers_3 \
d_headers_3.experr \
d_headers_4 \
d_headers_4.experr \
d_headers_5 \
d_headers_5.experr \
d_headers_6 \
d_headers_6.experr \
d_headers_7 \
d_headers_7.experr \
d_headers_8 \
d_headers_8.experr \
d_headers_9 \
d_headers_9.experr \
d_tcs_1 \
d_tcs_1.errin \
d_tcs_1.expout \
d_tcs_1.outin \
d_tcs_2 \
d_tcs_2.errin \
d_tcs_2.expout \
d_tcs_2.outin \
d_tcs_3 \
d_tcs_3.errin \
d_tcs_3.expout \
d_tcs_3.outin \
d_tcs_4 \
d_tcs_4.errin \
d_tcs_4.expout \
d_tcs_4.outin \
d_tcs_5 \
d_tcs_5.errin \
d_tcs_5.expout \
d_tcs_5.outin \
d_tcs_50 \
d_tcs_50.experr \
d_tcs_51 \
d_tcs_51.experr \
d_tcs_52 \
d_tcs_52.experr \
d_tcs_53 \
d_tcs_53.experr \
d_tcs_53.expout \
d_tcs_54 \
d_tcs_54.experr \
d_tcs_54.expout \
d_tcs_55 \
d_tcs_55.experr \
d_tcs_55.expout \
d_tcs_56 \
d_tcs_56.errin \
d_tcs_56.experr \
d_tcs_56.expout \
d_tcs_56.outin \
d_tcs_57 \
d_tcs_57.errin \
d_tcs_57.experr \
d_tcs_57.expout \
d_tcs_57.outin \
d_tps_1 \
d_tps_1.expout \
d_tps_2 \
d_tps_2.expout \
d_tps_3 \
d_tps_3.expout \
d_tps_4 \
d_tps_4.expout \
d_tps_5 \
d_tps_5.expout \
d_tps_50 \
d_tps_50.experr \
d_tps_51 \
d_tps_51.experr \
d_tps_52 \
d_tps_52.experr \
d_tps_53 \
d_tps_53.experr \
d_tps_53.expout \
d_tps_54 \
d_tps_54.experr \
d_tps_54.expout \
d_tps_55 \
d_tps_55.experr \
d_tps_55.expout \
d_tps_56 \
d_tps_56.experr \
d_tps_56.expout \
d_tps_57 \
d_tps_57.experr \
d_tps_57.expout \
d_tps_58 \
d_tps_58.experr \
d_tps_58.expout \
d_tps_59 \
d_tps_59.experr \
d_tps_60 \
d_tps_60.experr \
d_tps_61 \
d_tps_61.experr \
d_tps_62 \
d_tps_62.experr \
d_tps_62.expout \
d_tps_63 \
d_tps_63.experr \
d_tps_63.expout \
d_tps_64 \
d_tps_64.experr \
d_tps_64.expout \
d_tps_65 \
d_tps_65.experr \
d_tps_65.expout \
d_tps_66 \
d_tps_66.experr \
d_tps_66.expout
.include <bsd.test.mk>

View File

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/test_programs
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/test_programs
CPPFLAGS+= -I${SRCDIR}/libs
TESTS_CXX= h_cpp
TESTS_SH= h_sh
TESTS_SH+= t_cleanup
TESTS_SH+= t_config
TESTS_SH+= t_env
TESTS_SH+= t_fork
TESTS_SH+= t_meta_data
TESTS_SH+= t_srcdir
TESTS_SH+= t_status
TESTS_SH+= t_workdir
.include <bsd.test.mk>

View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/atf/tools
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tests/atf/tools
TESTS_CXX= h_fail
TESTS_CXX+= h_misc
TESTS_CXX+= h_pass
TESTS_SH= t_atf_check
TESTS_SH+= t_atf_cleanup
TESTS_SH+= t_atf_compile
TESTS_SH+= t_atf_config
TESTS_SH+= t_atf_exec
TESTS_SH+= t_atf_report
TESTS_SH+= t_atf_run
BINDIR= ${TESTSDIR}
PROGS_CXX= h_mode
MAN.h_mode= # empty
.include <bsd.test.mk>

5
external/bsd/atf/usr.bin/Makefile vendored Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
SUBDIR= atf-check atf-compile atf-config atf-report atf-run atf-version
.include <bsd.subdir.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/bin
PROG_CXX= atf-check
SRCS= atf-check.cpp
MAN= atf-check.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/bin
PROG_CXX= atf-compile
SRCS= atf-compile.cpp
MAN= atf-compile.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/bin
PROG_CXX= atf-config
SRCS= atf-config.cpp
MAN= atf-config.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,17 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
BINDIR= /usr/bin
PROG_CXX= atf-report
SRCS= atf-report.cpp
MAN= atf-report.1
LDADD+= -latf-c++ -latf-c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -0,0 +1,51 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/tools
.PATH: ${SRCDIR}/data ${SRCDIR}/atf-sh
BINDIR= /usr/bin
PROG_CXX= atf-run
SRCS= atf-run.cpp
MAN= atf-run.1
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -I${.CURDIR}/../../lib/libatf-c
LDADD+= -latf-c++ -latf-c
COPTS.atf-run.cpp+= -Wno-stack-protector
WARNS?= 2
.if ${MKSHARE} != "no"
FILESDIR= /usr/share/atf
FILES= atf-run.hooks
.endif
# Files in ${SRCDIR}/data.
FILES+= atf-c.pc \
atf-c++.pc
FILESDIR_atf-c.pc= /usr/lib/pkgconfig
FILESDIR_atf-c++.pc= /usr/lib/pkgconfig
realall: atf-c.pc
atf-c.pc: atf-c.pc.in
${TOOL_SED} -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CC__,gcc,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \
<${SRCDIR}/data/atf-c.pc.in >atf-c.pc
CLEANFILES+= atf-c.pc
realall: atf-c++.pc
atf-c++.pc: atf-c++.pc.in
${TOOL_SED} -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CXX__,g++,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \
<${SRCDIR}/data/atf-c++.pc.in >atf-c++.pc
CLEANFILES+= atf-c++.pc
.include <bsd.prog.mk>

View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2009/01/19 07:13:06 jmmv Exp $
.include <bsd.own.mk>
SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
.PATH: ${SRCDIR}/admin ${SRCDIR}/tools
BINDIR= /usr/bin
PROG_CXX= atf-version
SRCS= atf-version.cpp
MAN= atf-version.1
CPPFLAGS+= -DHAVE_CONFIG_H
CPPFLAGS+= -I${.CURDIR}/../../lib/libatf-c
CPPFLAGS+= -I.
LDADD+= -latf-c++ -latf-c
WARNS?= 2
CLEANFILES= revision.h
atf-version.cpp: revision.h
revision.h: revision-dist.h
cp -f ${SRCDIR}/admin/revision-dist.h revision.h
.include <bsd.prog.mk>