Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/kyua-testers Add reachover build files for kyua...



details:   https://anonhg.NetBSD.org/src/rev/876f41da9ffe
branches:  trunk
changeset: 785034:876f41da9ffe
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Tue Feb 19 06:04:42 2013 +0000

description:
Add reachover build files for kyua-testers.

diffstat:

 external/bsd/kyua-testers/Makefile                           |    5 +
 external/bsd/kyua-testers/lib/Makefile                       |    5 +
 external/bsd/kyua-testers/lib/libatf_tester/Makefile         |   23 ++
 external/bsd/kyua-testers/lib/libtester/Makefile             |   45 ++++
 external/bsd/kyua-testers/lib/libtester/config.h             |   59 ++++++
 external/bsd/kyua-testers/lib/libtester/defs.h               |   74 +++++++
 external/bsd/kyua-testers/libexec/Makefile                   |    5 +
 external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile   |   33 +++
 external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile |   31 +++
 external/bsd/kyua-testers/prepare-import.sh                  |  107 +++++++++++
 external/bsd/kyua-testers/share/Makefile                     |    5 +
 external/bsd/kyua-testers/share/man/Makefile                 |    5 +
 external/bsd/kyua-testers/share/man/man1/Makefile            |   15 +
 external/bsd/kyua-testers/share/man/man5/Makefile            |    9 +
 external/bsd/kyua-testers/tests/Makefile                     |    5 +
 external/bsd/kyua-testers/tests/kyua-testers/Makefile        |   46 ++++
 16 files changed, 472 insertions(+), 0 deletions(-)

diffs (truncated from 536 to 300 lines):

diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/Makefile        Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:42 jmmv Exp $
+
+SUBDIR= lib .WAIT libexec share tests
+
+.include <bsd.subdir.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/lib/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/lib/Makefile    Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:42 jmmv Exp $
+
+SUBDIR= libtester libatf_tester
+
+.include <bsd.subdir.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/lib/libatf_tester/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/lib/libatf_tester/Makefile      Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:42 jmmv Exp $
+
+#NOLINT=               # defined
+
+.include <bsd.own.mk>
+
+LIB=           atf_tester
+LIBISPRIVATE=  yes
+
+SRCDIR=                ${NETBSDSRCDIR}/external/bsd/kyua-testers/dist
+.PATH:         ${SRCDIR}
+
+CPPFLAGS+=     -I${.CURDIR}/../libtester  # For config.h and defs.h.
+CPPFLAGS+=     -I${SRCDIR}  # For non-installed headers.
+
+CPPFLAGS+=     -DHAVE_CONFIG_H
+
+WARNS?=                5
+
+SRCS=          atf_list.c
+SRCS+=         atf_result.c
+
+.include <bsd.lib.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/lib/libtester/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/lib/libtester/Makefile  Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:42 jmmv Exp $
+
+#NOLINT=               # defined
+
+.include <bsd.own.mk>
+
+LIB=           tester
+LIBISPRIVATE=  yes
+
+SRCDIR=                ${NETBSDSRCDIR}/external/bsd/kyua-testers/dist
+.PATH:         ${SRCDIR}
+
+CPPFLAGS+=     -DGDB=\"/usr/bin/gdb\"
+CPPFLAGS+=     -DKYUA_TMPDIR=\"/tmp\"
+CPPFLAGS+=     -I${.CURDIR}    # For config.h and defs.h.
+CPPFLAGS+=     -I${SRCDIR}     # For non-installed headers.
+
+CPPFLAGS+=     -DHAVE_CONFIG_H
+
+WARNS?=                3
+
+SRCS=          cli.c
+SRCS+=         env.c
+SRCS+=         error.c
+SRCS+=         fs.c
+SRCS+=         result.c
+SRCS+=         run.c
+SRCS+=         stacktrace.c
+SRCS+=         text.c
+
+.if ${MKSHARE} != "no"
+FILES+=                kyua-testers.pc
+FILESDIR=      /usr/lib/pkgconfig
+
+realall: kyua-testers.pc
+kyua-testers.pc: Makefile kyua-testers.pc.in
+       ${TOOL_SED} \
+           -e 's,__LIBEXECDIR__,/usr/libexec,g' \
+           -e 's,__VERSION__,0.1,g' \
+           <${SRCDIR}/kyua-testers.pc.in >kyua-testers.pc
+CLEANFILES+=   kyua-testers.pc
+.endif
+
+.include <bsd.files.mk>
+.include <bsd.lib.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/lib/libtester/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/lib/libtester/config.h  Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,59 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define to the optind value to reset getopt processing */
+#define GETOPT_OPTIND_RESET_VALUE 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_GETOPT_GNU */
+
+/* Define to 1 if getopt has optreset */
+#define HAVE_GETOPT_WITH_OPTRESET 1
+
+/* Define to 1 if you have the `putenv' function. */
+#define HAVE_PUTENV 1
+
+/* Define to 1 if you have the `setenv' function. */
+#define HAVE_SETENV 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 your lchmod works */
+#define HAVE_WORKING_LCHMOD 1
+
+/* Define to the last valid signal number */
+#define LAST_SIGNO 63
+
+/* Name of package */
+#define PACKAGE "kyua-testers"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "kyua-discuss%googlegroups.com@localhost"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "Kyua - Testers"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "Kyua - Testers 0.1"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "kyua-testers"
+
+/* Define to the home page for this package. */
+#define PACKAGE_URL "http://code.google.com/p/kyua/";
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "0.1"
+
+/* Set to the path of umount(8) */
+/* #undef UMOUNT */
+
+/* Version number of package */
+#define VERSION "0.1"
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/lib/libtester/defs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/lib/libtester/defs.h    Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,74 @@
+// Copyright 2010 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:
+//
+// * Redistributions of source code must retain the above copyright
+//   notice, this list of conditions and the following disclaimer.
+// * 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.
+// * Neither the name of Google Inc. nor the names of its contributors
+//   may be used to endorse or promote products derived from this software
+//   without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT
+// OWNER 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.
+
+/// \file defs.h
+///
+/// Definitions for compiler and system features autodetected at configuration
+/// time.
+
+#if !defined(KYUA_DEFS_H)
+#define KYUA_DEFS_H
+
+
+/// Attribute to mark a function as printf-like.
+///
+/// \param a Number of the format parameter.
+/// \param b Number of the first positional parameter.
+#define KYUA_DEFS_FORMAT_PRINTF(a, b) __attribute__((__format__(__printf__, a, b)))
+
+
+/// Attribute to mark a function as non-returning.
+#define KYUA_DEFS_NORETURN __attribute__((noreturn))
+
+
+/// Attribute to mark a function as pure.
+#define KYUA_DEFS_PURE __attribute__((__pure__))
+
+
+/// Attribute to mark an entity as unused.
+#define KYUA_DEFS_UNUSED __attribute__((__unused__))
+
+
+/// Macro to mark a parameter as unused.
+///
+/// This macro has to be called on the name of a parameter during the
+/// definition (not declaration) of a function.  When doing so, it declares
+/// the parameter as unused to silence compiler warnings and also renames
+/// the parameter by prefixing "unused_" to it.  This is to ensure that the
+/// developer remembers to remove the call to this macro from the parameter
+/// when he actually starts using it.
+///
+/// \param name The name of the function parameter to mark as unused.
+#define KYUA_DEFS_UNUSED_PARAM(name) unused_ ## name KYUA_DEFS_UNUSED
+
+
+/// Unconstifies a pointer.
+#define KYUA_DEFS_UNCONST(ptr) ((void*)(unsigned long)(const void*)(ptr))
+
+
+#endif  // !defined(KYUA_DEFS_H)
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/libexec/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/libexec/Makefile        Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:43 jmmv Exp $
+
+SUBDIR= kyua-atf-tester kyua-plain-tester
+
+.include <bsd.subdir.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile        Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:43 jmmv Exp $
+
+.include <bsd.own.mk>
+
+SRCDIR=                ${NETBSDSRCDIR}/external/bsd/kyua-testers/dist
+.PATH:         ${SRCDIR}
+
+BINDIR=                /usr/libexec
+PROG_CXX=      kyua-atf-tester
+SRCS=          atf_main.c
+MAN=           kyua-atf-tester.1
+MAN+=          kyua-atf-interface.7
+
+PRIVATELIBDIR!=        cd ${.CURDIR}/../../lib; ${PRINTOBJDIR}
+LDADD+=                ${PRIVATELIBDIR}/libatf_tester/libatf_tester.a
+DPADD+=                ${PRIVATELIBDIR}/libatf_tester/libatf_tester.a
+LDADD+=                ${PRIVATELIBDIR}/libtester/libtester.a
+DPADD+=                ${PRIVATELIBDIR}/libtester/libtester.a
+
+CPPFLAGS+=     -DHAVE_CONFIG_H
+CPPFLAGS+=     -I${.CURDIR}/../../lib/libtester
+CPPFLAGS+=     -I${SRCDIR}
+
+WARNS?=                3
+
+CLEANFILES+=   kyua-atf-tester.1
+kyua-atf-tester.1:     kyua-atf-tester.1.in
+       sed -e 's,__PACKAGE__,kyua-testers,g' \
+           -e 's,__TMPDIR__,/tmp,g' \
+           <${.ALLSRC} >${.TARGET}.tmp
+       mv ${.TARGET}.tmp ${.TARGET}
+
+.include <bsd.prog.mk>
diff -r 513048d4ad92 -r 876f41da9ffe external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile      Tue Feb 19 06:04:42 2013 +0000
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:43 jmmv Exp $
+
+.include <bsd.own.mk>
+
+SRCDIR=                ${NETBSDSRCDIR}/external/bsd/kyua-testers/dist
+.PATH:         ${SRCDIR}
+
+BINDIR=                /usr/libexec
+PROG_CXX=      kyua-plain-tester
+SRCS=          plain_main.c
+MAN=           kyua-plain-tester.1
+MAN+=          kyua-plain-interface.7
+
+PRIVATELIBDIR!=        cd ${.CURDIR}/../../lib; ${PRINTOBJDIR}
+LDADD+=                ${PRIVATELIBDIR}/libtester/libtester.a



Home | Main Index | Thread Index | Old Index