[Midnightbsd-cvs] src [11404] trunk/libexec/atf: add atf

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Fri Jul 6 21:05:43 EDT 2018


Revision: 11404
          http://svnweb.midnightbsd.org/src/?rev=11404
Author:   laffer1
Date:     2018-07-06 21:05:42 -0400 (Fri, 06 Jul 2018)
Log Message:
-----------
add atf

Added Paths:
-----------
    trunk/libexec/atf/
    trunk/libexec/atf/Makefile
    trunk/libexec/atf/Makefile.inc
    trunk/libexec/atf/atf-check/
    trunk/libexec/atf/atf-check/Makefile
    trunk/libexec/atf/atf-check/Makefile.inc
    trunk/libexec/atf/atf-check/tests/
    trunk/libexec/atf/atf-check/tests/Makefile
    trunk/libexec/atf/atf-sh/
    trunk/libexec/atf/atf-sh/Makefile
    trunk/libexec/atf/atf-sh/tests/
    trunk/libexec/atf/atf-sh/tests/Makefile
    trunk/libexec/atf/tests/
    trunk/libexec/atf/tests/Makefile

Added: trunk/libexec/atf/Makefile
===================================================================
--- trunk/libexec/atf/Makefile	                        (rev 0)
+++ trunk/libexec/atf/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,31 @@
+# $MidnightBSD$
+#-
+# Copyright (c) 2011 Google, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# $FreeBSD: stable/10/libexec/atf/Makefile 271298 2014-09-09 04:00:30Z ngie $
+
+SUBDIR=	atf-check atf-sh tests
+
+.include <bsd.subdir.mk>


Property changes on: trunk/libexec/atf/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/Makefile.inc
===================================================================
--- trunk/libexec/atf/Makefile.inc	                        (rev 0)
+++ trunk/libexec/atf/Makefile.inc	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,33 @@
+# $MidnightBSD$
+#-
+# Copyright (c) 2011 Google, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# $FreeBSD: stable/10/libexec/atf/Makefile.inc 271298 2014-09-09 04:00:30Z ngie $
+
+CFLAGS+=	-DHAVE_CONFIG_H
+
+WARNS?=		3
+
+.include "../Makefile.inc"


Property changes on: trunk/libexec/atf/Makefile.inc
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/atf-check/Makefile
===================================================================
--- trunk/libexec/atf/atf-check/Makefile	                        (rev 0)
+++ trunk/libexec/atf/atf-check/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,51 @@
+# $MidnightBSD$
+#-
+# Copyright (c) 2011 Google, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# $FreeBSD: stable/10/libexec/atf/atf-check/Makefile 307722 2016-10-21 08:36:30Z ngie $
+
+.include <bsd.init.mk>
+
+ATF=		${SRCTOP}/contrib/atf
+.PATH:		${ATF}/atf-sh
+
+PROG_CXX=	atf-check
+SRCS=		atf-check.cpp
+MAN=		atf-check.1
+
+CFLAGS+=	-I${ATF}
+CFLAGS+=	-DATF_SHELL='"/bin/sh"'
+
+LDFLAGS+=	-L${.OBJDIR}/../../../lib/atf/libatf-c++
+LDFLAGS+=	-L${.OBJDIR}/../../../lib/atf/libatf-c
+DPADD+=		${LIBATF_CXX} ${LIBATF_C}
+LDADD+=		-latf-c++ -latf-c
+USEPRIVATELIB=	atf-c++ atf-c
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=	tests
+.endif
+
+.include <bsd.prog.mk>


Property changes on: trunk/libexec/atf/atf-check/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/atf-check/Makefile.inc
===================================================================
--- trunk/libexec/atf/atf-check/Makefile.inc	                        (rev 0)
+++ trunk/libexec/atf/atf-check/Makefile.inc	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,4 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/libexec/atf/atf-check/Makefile.inc 260024 2013-12-28 23:08:58Z jmmv $
+
+.include "../Makefile.inc"


Property changes on: trunk/libexec/atf/atf-check/Makefile.inc
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/atf-check/tests/Makefile
===================================================================
--- trunk/libexec/atf/atf-check/tests/Makefile	                        (rev 0)
+++ trunk/libexec/atf/atf-check/tests/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,11 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/libexec/atf/atf-check/tests/Makefile 313488 2017-02-09 22:49:48Z ngie $
+
+.include <bsd.init.mk>
+
+ATF=		${SRCTOP}/contrib/atf
+.PATH:		${ATF}/atf-sh
+
+ATF_TESTS_SH=	atf-check_test
+
+.include <bsd.test.mk>


Property changes on: trunk/libexec/atf/atf-check/tests/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/atf-sh/Makefile
===================================================================
--- trunk/libexec/atf/atf-sh/Makefile	                        (rev 0)
+++ trunk/libexec/atf/atf-sh/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,82 @@
+# $MidnightBSD$
+#-
+# Copyright (c) 2011 Google, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+#
+# $FreeBSD: stable/10/libexec/atf/atf-sh/Makefile 321755 2017-07-31 03:59:07Z ngie $
+
+.include <bsd.init.mk>
+
+ATF=		${SRCTOP}/contrib/atf
+.PATH:		${ATF}/atf-sh
+
+PROG_CXX=	atf-sh
+SRCS=		atf-sh.cpp
+MAN=		atf-sh.1 atf-sh.3
+# Backwards compatibility.
+MLINKS+=	atf-sh.3 atf-sh-api.3
+
+MLINKS+=	\
+		atf-sh.3 atf_add_test_case.3 \
+		atf-sh.3 atf_check.3 \
+		atf-sh.3 atf_check_equal.3 \
+		atf-sh.3 atf_config_get.3 \
+		atf-sh.3 atf_config_has.3 \
+		atf-sh.3 atf_expect_death.3 \
+		atf-sh.3 atf_expect_exit.3 \
+		atf-sh.3 atf_expect_fail.3 \
+		atf-sh.3 atf_expect_pass.3 \
+		atf-sh.3 atf_expect_signal.3 \
+		atf-sh.3 atf_expect_timeout.3 \
+		atf-sh.3 atf_fail.3 \
+		atf-sh.3 atf_get.3 \
+		atf-sh.3 atf_get_srcdir.3 \
+		atf-sh.3 atf_init_test_cases.3 \
+		atf-sh.3 atf_pass.3 \
+		atf-sh.3 atf_require_prog.3 \
+		atf-sh.3 atf_set.3 \
+		atf-sh.3 atf_skip.3 \
+		atf-sh.3 atf_test_case.3
+
+CFLAGS+=	-DHAVE_CONFIG_H
+CFLAGS+=	-DATF_LIBEXECDIR='"${LIBEXECDIR}"'
+CFLAGS+=	-DATF_PKGDATADIR='"${SHAREDIR}/atf"'
+CFLAGS+=	-DATF_SHELL='"/bin/sh"'
+CFLAGS+=	-I${ATF}
+
+DPADD+=		${LIBATF_C} ${LIBATF_CXX}
+LDADD+=		-latf-c++ -latf-c
+USEPRIVATELIB=	atf-c++ atf-c
+
+FILESGROUPS=	SUBR
+
+SUBRDIR=	${SHAREDIR}/atf
+SUBR=		libatf-sh.subr
+
+.if ${MK_TESTS} != "no"
+SUBDIR+=	tests
+.endif
+
+.include "../../../lib/atf/common.mk"
+.include <bsd.prog.mk>


Property changes on: trunk/libexec/atf/atf-sh/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/atf-sh/tests/Makefile
===================================================================
--- trunk/libexec/atf/atf-sh/tests/Makefile	                        (rev 0)
+++ trunk/libexec/atf/atf-sh/tests/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,29 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/libexec/atf/atf-sh/tests/Makefile 313488 2017-02-09 22:49:48Z ngie $
+
+.include <bsd.init.mk>
+
+ATF=		${SRCTOP}/contrib/atf
+.PATH:		${ATF}/atf-sh
+
+ATF_TESTS_SH+=	atf_check_test
+ATF_TESTS_SH+=	config_test
+ATF_TESTS_SH+=	integration_test
+ATF_TESTS_SH+=	normalize_test
+ATF_TESTS_SH+=	tc_test
+ATF_TESTS_SH+=	tp_test
+
+integration_test: Makefile
+ATF_TESTS_SH_SED_integration_test= \
+    -e 's,__ATF_SH__,/usr/libexec/atf-sh,g'
+
+SCRIPTS+=		misc_helpers
+SCRIPTSDIR_misc_helpers=${TESTSDIR}
+CLEANFILES+=		misc_helpers misc_helpers.tmp
+misc_helpers: misc_helpers.sh
+	echo '#! /usr/libexec/atf-sh' >${.TARGET}.tmp
+	cat ${.ALLSRC} >>${.TARGET}.tmp
+	chmod +x ${.TARGET}.tmp
+	mv ${.TARGET}.tmp ${.TARGET}
+
+.include <bsd.test.mk>


Property changes on: trunk/libexec/atf/atf-sh/tests/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/libexec/atf/tests/Makefile
===================================================================
--- trunk/libexec/atf/tests/Makefile	                        (rev 0)
+++ trunk/libexec/atf/tests/Makefile	2018-07-07 01:05:42 UTC (rev 11404)
@@ -0,0 +1,9 @@
+# $MidnightBSD$
+# $FreeBSD: stable/10/libexec/atf/tests/Makefile 313488 2017-02-09 22:49:48Z ngie $
+
+.include <bsd.own.mk>
+
+.PATH:		${SRCTOP}/tests
+KYUAFILE=	yes
+
+.include <bsd.test.mk>


Property changes on: trunk/libexec/atf/tests/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list