Date: Tue, 5 Jun 2012 20:22:38 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-vendor@freebsd.org Subject: svn commit: r236635 - in vendor/NetBSD/atf: . dist dist/dist dist/dist/atf-c dist/dist/atf-c++ dist/dist/atf-c++/detail dist/dist/atf-c/detail dist/dist/atf-config dist/dist/atf-report dist/dist/at... Message-ID: <201206052022.q55KMc3f041929@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: obrien Date: Tue Jun 5 20:22:37 2012 New Revision: 236635 URL: http://svn.freebsd.org/changeset/base/236635 Log: Import NetBSD's ATF as of 2011-04-05 16:3:06 UTC Submitted by: sjg@juniper.net Obtained from: Juniper Networks Added: vendor/NetBSD/atf/ vendor/NetBSD/atf/dist/ vendor/NetBSD/atf/dist/Makefile vendor/NetBSD/atf/dist/dist/ vendor/NetBSD/atf/dist/dist/AUTHORS vendor/NetBSD/atf/dist/dist/Atffile vendor/NetBSD/atf/dist/dist/COPYING vendor/NetBSD/atf/dist/dist/Kyuafile vendor/NetBSD/atf/dist/dist/NEWS vendor/NetBSD/atf/dist/dist/README vendor/NetBSD/atf/dist/dist/atf-c/ vendor/NetBSD/atf/dist/dist/atf-c++/ vendor/NetBSD/atf/dist/dist/atf-c++.hpp vendor/NetBSD/atf/dist/dist/atf-c++/Atffile vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++.pc.in vendor/NetBSD/atf/dist/dist/atf-c++/atf_c++_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/build.cpp vendor/NetBSD/atf/dist/dist/atf-c++/build.hpp vendor/NetBSD/atf/dist/dist/atf-c++/build_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/check.cpp vendor/NetBSD/atf/dist/dist/atf-c++/check.hpp vendor/NetBSD/atf/dist/dist/atf-c++/check_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/config.cpp vendor/NetBSD/atf/dist/dist/atf-c++/config.hpp vendor/NetBSD/atf/dist/dist/atf-c++/config_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ vendor/NetBSD/atf/dist/dist/atf-c++/detail/Atffile vendor/NetBSD/atf/dist/dist/atf-c++/detail/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c++/detail/application.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/application.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/application_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/env_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/exceptions_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/expand_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/fs_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/parser_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/process_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/sanity.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/sanity_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/test_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/test_helpers.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/text_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui.cpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui.hpp vendor/NetBSD/atf/dist/dist/atf-c++/detail/ui_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/macros.hpp vendor/NetBSD/atf/dist/dist/atf-c++/macros_hpp_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/macros_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/pkg_config_test.sh vendor/NetBSD/atf/dist/dist/atf-c++/tests.cpp vendor/NetBSD/atf/dist/dist/atf-c++/tests.hpp vendor/NetBSD/atf/dist/dist/atf-c++/tests_test.cpp vendor/NetBSD/atf/dist/dist/atf-c++/utils.hpp vendor/NetBSD/atf/dist/dist/atf-c++/utils_test.cpp vendor/NetBSD/atf/dist/dist/atf-c.h vendor/NetBSD/atf/dist/dist/atf-c/Atffile vendor/NetBSD/atf/dist/dist/atf-c/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c/atf-c-api.3 vendor/NetBSD/atf/dist/dist/atf-c/atf-c.pc.in vendor/NetBSD/atf/dist/dist/atf-c/atf_c_test.c vendor/NetBSD/atf/dist/dist/atf-c/build.c vendor/NetBSD/atf/dist/dist/atf-c/build.h vendor/NetBSD/atf/dist/dist/atf-c/build_test.c vendor/NetBSD/atf/dist/dist/atf-c/check.c vendor/NetBSD/atf/dist/dist/atf-c/check.h vendor/NetBSD/atf/dist/dist/atf-c/check_test.c vendor/NetBSD/atf/dist/dist/atf-c/config.c vendor/NetBSD/atf/dist/dist/atf-c/config.h vendor/NetBSD/atf/dist/dist/atf-c/config_test.c vendor/NetBSD/atf/dist/dist/atf-c/defs.h.in vendor/NetBSD/atf/dist/dist/atf-c/detail/ vendor/NetBSD/atf/dist/dist/atf-c/detail/Atffile vendor/NetBSD/atf/dist/dist/atf-c/detail/Kyuafile vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr.c vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr.h vendor/NetBSD/atf/dist/dist/atf-c/detail/dynstr_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/env.c vendor/NetBSD/atf/dist/dist/atf-c/detail/env.h vendor/NetBSD/atf/dist/dist/atf-c/detail/env_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/fs.c vendor/NetBSD/atf/dist/dist/atf-c/detail/fs.h vendor/NetBSD/atf/dist/dist/atf-c/detail/fs_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/list.c vendor/NetBSD/atf/dist/dist/atf-c/detail/list.h vendor/NetBSD/atf/dist/dist/atf-c/detail/list_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/map.c vendor/NetBSD/atf/dist/dist/atf-c/detail/map.h vendor/NetBSD/atf/dist/dist/atf-c/detail/map_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process.h vendor/NetBSD/atf/dist/dist/atf-c/detail/process_helpers.c vendor/NetBSD/atf/dist/dist/atf-c/detail/process_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity.c vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity.h vendor/NetBSD/atf/dist/dist/atf-c/detail/sanity_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers.c vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers.h vendor/NetBSD/atf/dist/dist/atf-c/detail/test_helpers_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/text.c vendor/NetBSD/atf/dist/dist/atf-c/detail/text.h vendor/NetBSD/atf/dist/dist/atf-c/detail/text_test.c vendor/NetBSD/atf/dist/dist/atf-c/detail/tp_main.c vendor/NetBSD/atf/dist/dist/atf-c/detail/user.c vendor/NetBSD/atf/dist/dist/atf-c/detail/user.h vendor/NetBSD/atf/dist/dist/atf-c/detail/user_test.c vendor/NetBSD/atf/dist/dist/atf-c/error.c vendor/NetBSD/atf/dist/dist/atf-c/error.h vendor/NetBSD/atf/dist/dist/atf-c/error_fwd.h vendor/NetBSD/atf/dist/dist/atf-c/error_test.c vendor/NetBSD/atf/dist/dist/atf-c/h_build.h vendor/NetBSD/atf/dist/dist/atf-c/macros.h vendor/NetBSD/atf/dist/dist/atf-c/macros_h_test.c vendor/NetBSD/atf/dist/dist/atf-c/macros_test.c vendor/NetBSD/atf/dist/dist/atf-c/pkg_config_test.sh vendor/NetBSD/atf/dist/dist/atf-c/tc.c vendor/NetBSD/atf/dist/dist/atf-c/tc.h vendor/NetBSD/atf/dist/dist/atf-c/tc_test.c vendor/NetBSD/atf/dist/dist/atf-c/tp.c vendor/NetBSD/atf/dist/dist/atf-c/tp.h vendor/NetBSD/atf/dist/dist/atf-c/tp_test.c vendor/NetBSD/atf/dist/dist/atf-c/utils.c vendor/NetBSD/atf/dist/dist/atf-c/utils.h vendor/NetBSD/atf/dist/dist/atf-c/utils_test.c vendor/NetBSD/atf/dist/dist/atf-config/ vendor/NetBSD/atf/dist/dist/atf-config/Atffile vendor/NetBSD/atf/dist/dist/atf-config/Kyuafile vendor/NetBSD/atf/dist/dist/atf-config/atf-config.1 vendor/NetBSD/atf/dist/dist/atf-config/atf-config.cpp vendor/NetBSD/atf/dist/dist/atf-config/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-report/ vendor/NetBSD/atf/dist/dist/atf-report/Atffile vendor/NetBSD/atf/dist/dist/atf-report/Kyuafile vendor/NetBSD/atf/dist/dist/atf-report/atf-report.1 vendor/NetBSD/atf/dist/dist/atf-report/atf-report.cpp vendor/NetBSD/atf/dist/dist/atf-report/fail_helper.cpp vendor/NetBSD/atf/dist/dist/atf-report/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-report/misc_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-report/pass_helper.cpp vendor/NetBSD/atf/dist/dist/atf-report/reader.cpp vendor/NetBSD/atf/dist/dist/atf-report/reader.hpp vendor/NetBSD/atf/dist/dist/atf-report/reader_test.cpp vendor/NetBSD/atf/dist/dist/atf-report/tests-results.css vendor/NetBSD/atf/dist/dist/atf-report/tests-results.dtd vendor/NetBSD/atf/dist/dist/atf-report/tests-results.xsl vendor/NetBSD/atf/dist/dist/atf-run/ vendor/NetBSD/atf/dist/dist/atf-run/Atffile vendor/NetBSD/atf/dist/dist/atf-run/Kyuafile vendor/NetBSD/atf/dist/dist/atf-run/atf-run.1 vendor/NetBSD/atf/dist/dist/atf-run/atf-run.cpp vendor/NetBSD/atf/dist/dist/atf-run/atffile.cpp vendor/NetBSD/atf/dist/dist/atf-run/atffile.hpp vendor/NetBSD/atf/dist/dist/atf-run/atffile_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/bad_metadata_helper.c vendor/NetBSD/atf/dist/dist/atf-run/config.cpp vendor/NetBSD/atf/dist/dist/atf-run/config.hpp vendor/NetBSD/atf/dist/dist/atf-run/config_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/expect_helpers.c vendor/NetBSD/atf/dist/dist/atf-run/fs.cpp vendor/NetBSD/atf/dist/dist/atf-run/fs.hpp vendor/NetBSD/atf/dist/dist/atf-run/fs_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-run/io.cpp vendor/NetBSD/atf/dist/dist/atf-run/io.hpp vendor/NetBSD/atf/dist/dist/atf-run/io_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/misc_helpers.cpp vendor/NetBSD/atf/dist/dist/atf-run/pass_helper.cpp vendor/NetBSD/atf/dist/dist/atf-run/requirements.cpp vendor/NetBSD/atf/dist/dist/atf-run/requirements.hpp vendor/NetBSD/atf/dist/dist/atf-run/requirements_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/sample/ vendor/NetBSD/atf/dist/dist/atf-run/sample/atf-run.hooks vendor/NetBSD/atf/dist/dist/atf-run/sample/common.conf vendor/NetBSD/atf/dist/dist/atf-run/several_tcs_helper.c vendor/NetBSD/atf/dist/dist/atf-run/share/ vendor/NetBSD/atf/dist/dist/atf-run/share/atf-run.hooks vendor/NetBSD/atf/dist/dist/atf-run/signals.cpp vendor/NetBSD/atf/dist/dist/atf-run/signals.hpp vendor/NetBSD/atf/dist/dist/atf-run/signals_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/test-program.cpp vendor/NetBSD/atf/dist/dist/atf-run/test-program.hpp vendor/NetBSD/atf/dist/dist/atf-run/test_program_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/timer.cpp vendor/NetBSD/atf/dist/dist/atf-run/timer.hpp vendor/NetBSD/atf/dist/dist/atf-run/user.cpp vendor/NetBSD/atf/dist/dist/atf-run/user.hpp vendor/NetBSD/atf/dist/dist/atf-run/user_test.cpp vendor/NetBSD/atf/dist/dist/atf-run/zero_tcs_helper.c vendor/NetBSD/atf/dist/dist/atf-sh/ vendor/NetBSD/atf/dist/dist/atf-sh/Atffile vendor/NetBSD/atf/dist/dist/atf-sh/Kyuafile vendor/NetBSD/atf/dist/dist/atf-sh/atf-check.1 vendor/NetBSD/atf/dist/dist/atf-sh/atf-check.cpp vendor/NetBSD/atf/dist/dist/atf-sh/atf-check_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh-api.3 vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh.1 vendor/NetBSD/atf/dist/dist/atf-sh/atf-sh.cpp vendor/NetBSD/atf/dist/dist/atf-sh/atf_check_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/config_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/integration_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/libatf-sh.subr vendor/NetBSD/atf/dist/dist/atf-sh/misc_helpers.sh vendor/NetBSD/atf/dist/dist/atf-sh/normalize_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/tc_test.sh vendor/NetBSD/atf/dist/dist/atf-sh/tp_test.sh vendor/NetBSD/atf/dist/dist/atf-version/ vendor/NetBSD/atf/dist/dist/atf-version/atf-version.1 vendor/NetBSD/atf/dist/dist/atf-version/atf-version.cpp vendor/NetBSD/atf/dist/dist/atf-version/generate-revision.sh (contents, props changed) vendor/NetBSD/atf/dist/dist/doc/ vendor/NetBSD/atf/dist/dist/doc/atf-formats.5 vendor/NetBSD/atf/dist/dist/doc/atf-test-case.4 vendor/NetBSD/atf/dist/dist/doc/atf-test-program.1 vendor/NetBSD/atf/dist/dist/doc/atf.7.in vendor/NetBSD/atf/dist/dist/test-programs/ vendor/NetBSD/atf/dist/dist/test-programs/Atffile vendor/NetBSD/atf/dist/dist/test-programs/Kyuafile vendor/NetBSD/atf/dist/dist/test-programs/c_helpers.c vendor/NetBSD/atf/dist/dist/test-programs/common.sh vendor/NetBSD/atf/dist/dist/test-programs/config_test.sh vendor/NetBSD/atf/dist/dist/test-programs/cpp_helpers.cpp vendor/NetBSD/atf/dist/dist/test-programs/expect_test.sh vendor/NetBSD/atf/dist/dist/test-programs/fork_test.sh vendor/NetBSD/atf/dist/dist/test-programs/meta_data_test.sh vendor/NetBSD/atf/dist/dist/test-programs/result_test.sh vendor/NetBSD/atf/dist/dist/test-programs/sh_helpers.sh vendor/NetBSD/atf/dist/dist/test-programs/srcdir_test.sh vendor/NetBSD/atf/dist/etc/ vendor/NetBSD/atf/dist/etc/Makefile vendor/NetBSD/atf/dist/etc/atf/ vendor/NetBSD/atf/dist/etc/atf/Makefile vendor/NetBSD/atf/dist/etc/atf/NetBSD.conf vendor/NetBSD/atf/dist/etc/atf/common.conf vendor/NetBSD/atf/dist/lib/ vendor/NetBSD/atf/dist/lib/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/ vendor/NetBSD/atf/dist/lib/libatf-c++/ vendor/NetBSD/atf/dist/lib/libatf-c++/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/Makefile vendor/NetBSD/atf/dist/lib/libatf-c/bconfig.h vendor/NetBSD/atf/dist/libexec/ vendor/NetBSD/atf/dist/libexec/Makefile vendor/NetBSD/atf/dist/libexec/atf-check/ vendor/NetBSD/atf/dist/libexec/atf-check/Makefile vendor/NetBSD/atf/dist/prepare-import.sh (contents, props changed) vendor/NetBSD/atf/dist/share/ vendor/NetBSD/atf/dist/share/Makefile vendor/NetBSD/atf/dist/share/doc/ vendor/NetBSD/atf/dist/share/doc/Makefile vendor/NetBSD/atf/dist/share/doc/atf/ vendor/NetBSD/atf/dist/share/doc/atf/Makefile vendor/NetBSD/atf/dist/share/examples/ vendor/NetBSD/atf/dist/share/examples/Makefile vendor/NetBSD/atf/dist/share/examples/atf/ vendor/NetBSD/atf/dist/share/examples/atf/Makefile vendor/NetBSD/atf/dist/share/xml/ vendor/NetBSD/atf/dist/share/xml/Makefile vendor/NetBSD/atf/dist/share/xml/atf/ vendor/NetBSD/atf/dist/share/xml/atf/Makefile vendor/NetBSD/atf/dist/share/xsl/ vendor/NetBSD/atf/dist/share/xsl/Makefile vendor/NetBSD/atf/dist/share/xsl/atf/ vendor/NetBSD/atf/dist/share/xsl/atf/Makefile vendor/NetBSD/atf/dist/tests/ vendor/NetBSD/atf/dist/tests/Makefile vendor/NetBSD/atf/dist/tests/atf/ vendor/NetBSD/atf/dist/tests/atf/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c++/detail/ vendor/NetBSD/atf/dist/tests/atf/atf-c++/detail/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-c/detail/ vendor/NetBSD/atf/dist/tests/atf/atf-c/detail/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-config/ vendor/NetBSD/atf/dist/tests/atf/atf-config/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-report/ vendor/NetBSD/atf/dist/tests/atf/atf-report/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-run/ vendor/NetBSD/atf/dist/tests/atf/atf-run/Makefile vendor/NetBSD/atf/dist/tests/atf/atf-sh/ vendor/NetBSD/atf/dist/tests/atf/atf-sh/Makefile vendor/NetBSD/atf/dist/tests/atf/test-programs/ vendor/NetBSD/atf/dist/tests/atf/test-programs/Makefile vendor/NetBSD/atf/dist/usr.bin/ vendor/NetBSD/atf/dist/usr.bin/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-config/ vendor/NetBSD/atf/dist/usr.bin/atf-config/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-report/ vendor/NetBSD/atf/dist/usr.bin/atf-report/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-run/ vendor/NetBSD/atf/dist/usr.bin/atf-run/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-sh/ vendor/NetBSD/atf/dist/usr.bin/atf-sh/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-version/ vendor/NetBSD/atf/dist/usr.bin/atf-version/Makefile vendor/NetBSD/atf/dist/usr.bin/atf-version/revision.h Added: vendor/NetBSD/atf/dist/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/Makefile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.3 2010/10/20 09:20:09 jmmv Exp $ + +SUBDIR= etc lib .WAIT libexec share usr.bin tests + +.include <bsd.subdir.mk> Added: vendor/NetBSD/atf/dist/dist/AUTHORS ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/AUTHORS Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,25 @@ +Authors and contributors Automated Testing Framework +=========================================================================== + + +* Julio Merino <jmmv@NetBSD.org> + + Main developer. He started the work on this project when he took part in + the Google Summer of Code 2007 program as a student. + +* Martin Husemann <martin@NetBSD.org> + + Mentored this project during its development as part of the Google Summer + of Code 2007 program. + +* Lukasz Strzygowski <qx89l4@gmail.com> + + Participant of the Google Summer of Code 2008 program. Mentored by The + NetBSD Foundation, he worked on the atfify NetBSD-SoC project and, as a + side-effect, he contributed to the ATF source code. He developed the + initial version of the atf-check utility and started the addition of the + ATF_REQUIRE family of macros in the C interface. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/Atffile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/Atffile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,11 @@ +Content-Type: application/X-atf-atffile; version="1" + +prop: test-suite = atf + +tp: atf-c +tp: atf-c++ +tp: atf-sh +tp: test-programs +tp: atf-config +tp: atf-report +tp: atf-run Added: vendor/NetBSD/atf/dist/dist/COPYING ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/COPYING Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,70 @@ +Redistribution terms Automated Testing Framework +=========================================================================== + + +License +******* + +Copyright (c) 2007, 2008, 2009, 2010, 2011 The NetBSD Foundation, 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. + + +Relicensed code +*************** + +The following code snippets have been taken from other projects. Even +though they were not originally licensed under the terms above, the +original authors have agreed to relicense their work so that this project +can be distributed under a single license. This section is put here just to +clarify this fact. + +* configure.ac, Makefile.am: The original versions were derived from the + ones in the XML Catalog Manager project, version 2.2. + + Author: Julio Merino <jmmv@users.sourceforge.net> + +* atf-c/ui.c: The format_paragraph and format_text functions were + derived form the ones in the Monotone project, revision + 3a0982da308228d796df35f98d787c5cff2bb5b6. + + Author: Julio Merino <jmmv@NetBSD.org> + +* atf-c++/detail/io.hpp, atf-c++/detail/io.cpp, atf-c++/detail/io_test.cpp: + These files were derived from the file_handle, systembuf, pipe and pistream + classes and tests found in the Boost.Process library. + + Author: Julio Merino <jmmv84@gmail.com> + +* admin/check-style.sh, admin/check-style-common.awk, + admin/check-style-cpp.awk, admin/check-style-shell.awk: These files, + except the first one, were first implemented in the Buildtool project. + They were later adapted to be part of Boost.Process and, during that + process, the shell script was created. + + Author: Julio Merino <jmmv84@gmail.com> + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/Kyuafile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/Kyuafile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,11 @@ +syntax("kyuafile", 1) + +test_suite("atf") + +include("atf-c/Kyuafile") +include("atf-c++/Kyuafile") +include("atf-sh/Kyuafile") +include("test-programs/Kyuafile") +include("atf-config/Kyuafile") +include("atf-report/Kyuafile") +include("atf-run/Kyuafile") Added: vendor/NetBSD/atf/dist/dist/NEWS ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/NEWS Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,469 @@ +Major changes between releases Automated Testing Framework +=========================================================================== + + +Changes in version 0.13 +*********************** + +Experimental version released on March 31st, 2011. + +This is the first release after the creation of the Kyua project, a more +modular and reliable replacement for ATF. From now on, ATF will change to +accomodate the transition to this new codebase, but ATF will still continue +to see development in the short/medium term. Check out the project page at +http://code.google.com/p/kyua/ for more details. + +The changes in this release are: + +* Added support to run the tests with the Kyua runtime engine (kyua-cli), a + new package that aims to replace atf-run and atf-report. The ATF tests + can be run with the new system by issuing a 'make installcheck-kyua' from + the top-level directory of the project (assuming the 'kyua' binary is + available during the configuration stage of ATF). + +* atf-run and atf-report are now in maintenance mode (but *not* deprecated + yet!). Kyua already implements a new, much more reliable runtime engine + that provides similar features to these tools. That said, it is not + complete yet so all development efforts should go towards it. + +* If GDB is installed, atf-run dumps the stack trace of crashing test + programs in an attempt to aid debugging. Contributed by Antti Kantee. + +* Reverted default timeout change in previous release and reset its value + to 5 minutes. This was causing several issues, specially when running + the existing NetBSD test suite in qemu. + +* Fixed the 'match' output checker in atf-check to properly validate the + last line of a file even if it does not have a newline. + +* Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to + check for the presence (or lack thereof) of an element in a collection. + +* PR bin/44176: Fixed a race condition in atf-run that would crash atf-run + when the cleanup of a test case triggered asynchronous modifications to + its work directory (e.g. killing a daemon process that cleans up a pid + file in the work directory). + +* PR bin/44301: Fixed the sample XSLT file to report bogus test programs + instead of just listing them as having 0 test cases. + + +Changes in version 0.12 +*********************** + +Experimental version released on November 7th, 2010. + +* Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as + ATF_REQUIRE_THROW but allows checking for the validity of the exception's + error message by means of a regular expression. + +* Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a + regular expression match in a string. + +* Changed the default timeout for test cases from 5 minutes to 30 seconds. + 30 seconds is long enough for virtually all tests to complete, and 5 + minutes is a way too long pause in a test suite where a single test case + stalls. + +* Deprecated the use.fs property. While this seemed like a good idea in + the first place to impose more control on what test cases can do, it + turns out to be bad. First, use.fs=false prevents bogus test cases + from dumping core so after-the-fact debugging is harder. Second, + supporting use.fs adds a lot of unnecessary complexity. atf-run will + now ignore any value provided to use.fs and will allow test cases to + freely access the file system if they wish to. + +* Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c + library. The 'text' module became private in 0.11 but was being used + externally to simplify the parsing of configuration variables. + +* Made atf-run recognize the 'unprivileged-user' configuration variable + and automatically drop root privileges when a test case sets + require.user=unprivileged. Note that this is, by no means, done for + security purposes; this is just for user convenience; tests should, in + general, not be blindly run as root in the first place. + + +Changes in version 0.11 +*********************** + +Experimental version released on October 20th, 2010. + +* The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match + their counterparts in atf-c. + +* Clearly separated the modules in atf-c that are supposed to be public + from those that are implementation details. The header files for the + internal modules are not installed any more. + +* Made the atf-check tool private. It is only required by atf-sh and being + public has the danger of causing confusion. Also, making it private + simplifies the public API of atf. + +* Changed atf-sh to enable per-command error checking (set -e) by default. + This catches many cases in which a test case is broken but it is not + reported as such because execution continues. + +* Fixed the XSTL and CSS stylesheets to support expected failures. + + +Changes in version 0.10 +*********************** + +Experimental version released on July 2nd, 2010. + +Miscellaneous features + +* Added expected failures support to test cases and atf-run. These + include, for example, expected clean exits, expected reception of fatal + signals, expected timeouts and expected errors in condition checks. + These statuses can be used to denote test cases that are known to fail + due to a bug in the code they are testing. atf-report reports these + tests separately but they do not count towards the failed test cases + amount. + +* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to + allow easy checking of call failures that update errno. + +* Added the has.cleanup meta-data property to test caes that specifies + whether the test case has a cleanup routine or not; its value is + automatically set. This property is read by atf-run to know if it has to + run the cleanup routine; skipping this run for every test case + significantly speeds up the run time of test suites. + +* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to + take the expected exception as the first argument and the statement to + execute as the second argument. + +Changes in atf-check + +* Changed atf-check to support negating the status and output checks by + prefixing them with not- and added support to specify multiple checkers + for stdout and stderr, not only one. + +* Added the match output checker to atf-check to look for regular + expressions in the stdout and stderr of commands. + +* Modified the exit checks in atf-check to support checking for the + reception of signals. + +Code simplifications and cleanups + +* Removed usage messages from test programs to simplify the + implementation of every binding by a significant amount. They just now + refer the user to the appropriate manual page and do not attempt to wrap + lines on terminal boundaries. Test programs are not supposed to be run + by users directly so this minor interface regression is not important. + +* Removed the atf-format internal utility, which is unused after the + change documented above. + +* Removed the atf-cleanup internal utility. It has been unused since the + test case isolation was moved to atf-run in 0.8 + +* Splitted the Makefile.am into smaller files for easier maintenance and + dropped the use of M4. Only affects users building from the repository + sources. + +* Intermixed tests with the source files in the source tree to provide + them more visibility and easier access. The tests directory is gone from + the source tree and tests are now suffixed by _test, not prefixed by t_. + +* Simplifications to the atf-c library: removed the io, tcr and ui + modules as they had become unnecessary after all simplifications + introduced since the 0.8 release. + +* Removed the application/X-atf-tcr format introduced in 0.8 release. + Tests now print a much simplified format that is easy to parse and nicer + to read by end users. As a side effect, the default for test cases is + now to print their results to stdout unless otherwise stated by providing + the -r flag. + +* Removed XML distribution documents and replaced them with plain-text + documents. They provided little value and introduced a lot of complexity + to the build system. + +* Simplified the output of atf-version by not attempting to print a + revision number when building form a distfile. Makes the build system + easier to maintain. + + +Changes in version 0.9 +********************** + +Experimental version released on June 3rd, 2010. + +* Added atf-sh, an interpreter to process test programs written using + the shell API. This is not really a shell interpreter by itself though: + it is just a wrapper around the system shell that eases the loading of + the necessary ATF libraries. + +* Removed atf-compile in favour of atf-sh. + +* Added the use.fs metadata property to test case, which is used to + specify which test cases require file system access. This is to + highlight dependencies on external resources more clearly and to speed up + the execution of test suites by skipping the creation of many unnecessary + work directories. + +* Fixed test programs to get a sane default value for their source + directory. This means that it should not be necessary any more to pass + -s when running test programs that do not live in the current directory. + +* Defining test case headers became optional. This is trivial to achieve + in shell-based tests but a bit ugly in C and C++. In C, use the new + ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use + ATF_TEST_CASE_WITHOUT_HEAD. + + +Changes in version 0.8 +********************** + +Experimental version released on May 7th, 2010. + +* Test programs no longer run several test cases in a row. The execution + of a test program now requires a test case name, and that single test + case is executed. To execute several test cases, use the atf-run utility + as usual. + +* Test programs no longer fork a subprocess to isolate the execution of + test cases. They run the test case code in-process, and a crash of the + test case will result in a crash of the test program. This is to ease + debugging of faulty test cases. + +* Test programs no longer isolate their test cases. This means that they + will not create temporary directories nor sanitize the environment any + more. Yes: running a test case that depends on system state by hand will + most likely yield different results depending on where (machine, + directory, user environment, etc.) it is run. Isolation has been moved + to atf-run. + +* Test programs no longer print a cryptic format (application/X-atf-tcs) + on a special file channel. They can now print whatever they want on the + screen. Because test programs can now only run one test case every time, + providing controlled output is not necessary any more. + +* Test programs no longer write their status into a special file + descriptor. Instead, they create a file with the results, which is later + parsed by atf-run. This changes the semantics of the -r flag. + +* atf-run has been adjusted to perform the test case isolation. As a + result, there is now a single canonical place that implements the + isolation of test caes. In previous releases, the three language + bindings (C, C++ and shell) had to be kept in sync with each other (read: + not a nice thing to do at all). As a side effect of this change, writing + bindings for other languages will be much, much easier from now on. + +* atf-run forks test programs on a test case basis, instead of on a test + program basis as it did before. This is to provide the test case + isolation that was before implemented by the test programs themselves. + +* Removed the atf-exec tool. This was used to implement test case + isolation in atf-sh, but it is now unnecessary. + +* It is now optional to define the descr meta-data property. It has been + proven to be mostly useless, because test cases often carry a descriptive + name of their own. + + +Changes in version 0.7 +********************** + +Experimental version released on December 22nd, 2009. + +* Added build-time checks to atf-c and atf-c++. A binding for atf-sh + will come later. + +* Migrated all build-time checks for header files to proper ATF tests. + This demonstrates the use of the new feature described above. + +* Added an internal API for child process management. + +* Converted all plain-text distribution documents to a Docbook canonical + version, and include pre-generated plain text and HTML copies in the + distribution file. + +* Simplified the contents of the Makefile.am by regenerating it from a + canonical Makefile.am.m4 source. As a side-effect, some dependency + specifications were fixed. + +* Migrated all checks from the check target to installcheck, as these + require ATF to be installed. + +* Fixed sign comparison mismatches triggered by the now-enabled + -Wsign-compare. + +* Fixed many memory and object leaks. + + +Changes in version 0.6 +********************** + +Experimental version released on January 18th, 2009. + +* Make atf-exec be able to kill its child process after a certain period + of time; this is controlled through the new -t option. + +* Change atf-sh to use atf-exec's -t option to control the test case's + timeouts, instead of doing it internally. Same behavior as before, but + noticeably faster. + +* atf-exec's -g option and atf-killpg are gone due to the previous + change. + +* Added the atf-check(1) tool, a program that executes a given command + and checks its exit code against a known value and allows the management + of stdout and stderr in multiple ways. This replaces the previous + atf_check function in the atf-sh library and exposes this functionality + to both atf-c and atf-c++. + +* Added the ATF_REQUIRE family of macros to the C interface. These help + in checking for fatal test conditions. The old ATF_CHECK macros now + perform non-fatal checks only. I.e. by using ATF_CHECK, the test case + can now continue its execution and the failures will not be reported + until the end of the whole run. + +* Extended the amount of ATF_CHECK_* C macros with new ones to provide + more features to the developer. These also have their corresponding + counterparts in the ATF_REQUIRE_* family. The new macros (listing the + suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and + _STREQ_MSG. + + +Changes in version 0.5 +********************** + +Experimental version released on May 1st, 2008. + +* Clauses 3 and 4 of the BSD license used by the project were dropped. + All the code is now under a 2-clause BSD license compatible with the GNU + General Public License (GPL). + +* Added a C-only binding so that binary test programs do not need to be + tied to C++ at all. This binding is now known as the atf-c library. + +* Renamed the C++ binding to atf-c++ for consistency with the new atf-c. + +* Renamed the POSIX shell binding to atf-sh for consistency with the new + atf-c and atf-c++. + +* Added a -w flag to test programs through which it is possible to + specify the work directory to be used. This was possible in prior + releases by defining the workdir configuration variable (-v workdir=...), + but was a conceptually incorrect mechanism. + +* Test programs now preserve the execution order of test cases when they + are given in the command line. Even those mentioned more than once are + executed multiple times to comply with the user's requests. + + +Changes in version 0.4 +********************** + +Experimental version released on February 4th, 2008. + +* Added two new manual pages, atf-c++-api and atf-sh-api, describing the + C++ and POSIX shell interfaces used to write test programs. + +* Added a pkg-config file, useful to get the flags to build against the + C++ library or to easily detect the presence of ATF. + +* Added a way for test cases to require a specific architecture and/or + machine type through the new 'require.arch' and 'require.machine' + meta-data properties, respectively. + +* Added the 'timeout' property to test cases, useful to set an + upper-bound limit for the test's run time and thus prevent global test + program stalls due to the test case's misbehavior. + +* Added the atf-exec(1) internal utility, used to execute a command + after changing the process group it belongs to. + +* Added the atf-killpg(1) internal utility, used to kill process groups. + +* Multiple portability fixes. Of special interest, full support for + SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12 + C++ compiler. + +* Fixed a serious bug that prevented atf-run(1) from working at all + under Fedora 8 x86_64. Due to the nature of the bug, other platforms + were likely affected too. + + +Changes in version 0.3 +********************** + +Experimental version released on November 11th, 2007. + +* Added XML output support to atf-report. This is accompanied by a DTD + for the format's structure and sample XSLT/CSS files to post-process this + output and convert it to a plain HTML report. + +* Changed atf-run to add system information to the report it generates. + This is currently used by atf-report's XML output only, and is later + printed in the HTML reports in a nice and useful summary table. The user + and system administrator are allowed to tune this feature by means of + hooks. + +* Removed the test cases' 'isolated' property. This was intended to + avoid touching the file system at all when running the related test case, + but this has not been true for a long while: some control files are + unconditionally required for several purposes, and we cannot easily get + rid of them. This way we remove several critical and delicate pieces of + code. + +* Improved atf-report's CSV output format to include information about + test programs too. + +* Fixed the tests that used atf-compile to not require this tool as a + helper. Avoids systems without build-time utilities to skip many tests + that could otherwise be run. (E.g. NetBSD without the comp.tgz set + installed.) + +* Many general cleanups: Fixed many pieces of code marked as ugly and/or + incomplete. + + +Changes in version 0.2 +********************** + +Experimental version released on September 20th, 2007. + +* Test cases now get a known umask on entry. + +* atf-run now detects many unexpected failures caused by test programs and + reports them as bogus tests. atf-report is able to handle these new + errors and nicely reports them to the user. + +* All the data formats read and written by the tools have been + documented and cleaned up. These include those grammars that define how + the different components communicate with each other as well as the + format of files written by the developers and users: the Atffiles and the + configuration files. + +* Added the atf-version tool, a utility that displays information about + the currently installed version of ATF. + +* Test cases can now define an optional cleanup routine to undo their + actions regardless of their exit status. + +* atf-report now summarizes the list of failed (bogus) test programs + when using the ticker output format. + +* Test programs now capture some termination signals and clean up any + temporary files before exiting the program. + +* Multiple bug fixes and improvements all around. + + +Changes in version 0.1 +********************** + +Experimental version released on August 20th, 2007. + +* First public version. This was released coinciding with the end of the + Google Summer of Code 2007 program. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/README ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/README Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,40 @@ +Introductory information Automated Testing Framework +=========================================================================== + + +Introduction +************ + +The Automated Testing Framework (ATF) is a collection of libraries and +utilities designed to ease unattended application testing in the hands of +developers and end users of a specific piece of software. + +As regards developers, ATF provides the necessary means to easily create +test suites composed of multiple test programs, which in turn are a +collection of test cases. It also attempts to simplify the debugging of +problems when these test cases detect an error by providing as much +information as possible about the failure. + +As regards users, it simplifies the process of running the test suites and, +in special, encourages end users to run them often: they do not need to +have source trees around nor any other development tools installed to be +able to certify that a given piece of software works on their machine as +advertised. + + +Other documents +*************** + +* AUTHORS: List of authors and contributors for this project. + +* COPYING: License information. + +* INSTALL: Compilation and installation instructions. These is not the + standard document shipped with many packages, so be sure to read it for + things that are specific to ATF's build. + +* NEWS: List of major changes between formal, published releases. + + +=========================================================================== +vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 Added: vendor/NetBSD/atf/dist/dist/atf-c++.hpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++.hpp Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,35 @@ +// +// Automated Testing Framework (atf) +// +// Copyright (c) 2007, 2008 The NetBSD Foundation, 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. +// + +#if !defined(_ATF_CXX_HPP_) +#define _ATF_CXX_HPP_ + +#include <atf-c++/macros.hpp> + +#endif // !defined(_ATF_CXX_HPP_) Added: vendor/NetBSD/atf/dist/dist/atf-c++/Atffile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/Atffile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,14 @@ +Content-Type: application/X-atf-atffile; version="1" + +prop: test-suite = atf + +tp: detail + +tp: atf_c++_test +tp: build_test +tp: check_test +tp: config_test +tp: macros_test +tp: pkg_config_test +tp: tests_test +tp: utils_test Added: vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/Kyuafile Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,14 @@ +syntax("kyuafile", 1) + +test_suite("atf") + +atf_test_program{name="atf_c++_test"} +atf_test_program{name="build_test"} +atf_test_program{name="check_test"} +atf_test_program{name="config_test"} +atf_test_program{name="macros_test"} +atf_test_program{name="pkg_config_test"} +atf_test_program{name="tests_test"} +atf_test_program{name="utils_test"} + +include("detail/Kyuafile") Added: vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ vendor/NetBSD/atf/dist/dist/atf-c++/atf-c++-api.3 Tue Jun 5 20:22:37 2012 (r236635) @@ -0,0 +1,404 @@ +.\" +.\" Automated Testing Framework (atf) +.\" +.\" Copyright (c) 2008, 2010 The NetBSD Foundation, 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 NETBSD FOUNDATION, INC. 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 FOUNDATION 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. +.\" +.Dd December 10, 2010 +.Dt ATF-C++-API 3 +.Os +.Sh NAME +.Nm ATF_ADD_TEST_CASE , +.Nm ATF_CHECK_ERRNO , +.Nm ATF_FAIL , +.Nm ATF_INIT_TEST_CASES , +.Nm ATF_PASS , +.Nm ATF_REQUIRE , +.Nm ATF_REQUIRE_EQ , +.Nm ATF_REQUIRE_ERRNO , +.Nm ATF_REQUIRE_IN , +.Nm ATF_REQUIRE_MATCH , +.Nm ATF_REQUIRE_NOT_IN , +.Nm ATF_REQUIRE_THROW , +.Nm ATF_REQUIRE_THROW_RE , +.Nm ATF_SKIP , +.Nm ATF_TEST_CASE , +.Nm ATF_TEST_CASE_BODY , +.Nm ATF_TEST_CASE_CLEANUP , +.Nm ATF_TEST_CASE_HEAD , +.Nm ATF_TEST_CASE_WITH_CLEANUP , +.Nm ATF_TEST_CASE_WITHOUT_HEAD , +.Nd C++ API to write ATF-based test programs +.Sh SYNOPSIS +.In atf-c++.hpp +.Fn ATF_ADD_TEST_CASE "tcs" "name" +.Fn ATF_CHECK_ERRNO "exp_errno" "bool_expression" +.Fn ATF_FAIL "reason" +.Fn ATF_INIT_TEST_CASES "tcs" +.Fn ATF_PASS +.Fn ATF_REQUIRE "expression" +.Fn ATF_REQUIRE_EQ "expression_1" "expression_2" +.Fn ATF_REQUIRE_ERRNO "exp_errno" "bool_expression" +.Fn ATF_REQUIRE_IN "element" "collection" +.Fn ATF_REQUIRE_MATCH "regexp" "string_expression" +.Fn ATF_REQUIRE_NOT_IN "element" "collection" +.Fn ATF_REQUIRE_THROW "expected_exception" "statement" +.Fn ATF_REQUIRE_THROW_RE "expected_exception" "regexp" "statement" +.Fn ATF_SKIP "reason" +.Fn ATF_TEST_CASE "name" +.Fn ATF_TEST_CASE_BODY "name" +.Fn ATF_TEST_CASE_CLEANUP "name" +.Fn ATF_TEST_CASE_HEAD "name" +.Fn ATF_TEST_CASE_WITH_CLEANUP "name" +.Fn ATF_TEST_CASE_WITHOUT_HEAD "name" +.Sh DESCRIPTION +ATF provides a mostly-macro-based programming interface to implement test +programs in C or C++. +This interface is backed by a C++ implementation, but this fact is +hidden from the developer as much as possible through the use of +macros to simplify programming. +However, the use of C++ is not hidden everywhere and while you can +implement test cases without knowing anything at all about the object model +underneath the provided calls, you might need some minimum notions of the +language in very specific circumstances. +.Pp +C++-based test programs always follow this template: +.Bd -literal -offset indent +extern "C" { +.Ns ... C-specific includes go here ... +} + +.Ns ... C++-specific includes go here ... + +#include <atf-c++.hpp> + +ATF_TEST_CASE(tc1); +ATF_TEST_CASE_HEAD(tc1) +{ + ... first test case's header ... +} +ATF_TEST_CASE_BODY(tc1) +{ + ... first test case's body ... +} + +ATF_TEST_CASE_WITH_CLEANUP(tc2); +ATF_TEST_CASE_HEAD(tc2) +{ + ... second test case's header ... +} +ATF_TEST_CASE_BODY(tc2) +{ + ... second test case's body ... +} +ATF_TEST_CASE_CLEANUP(tc2) +{ + ... second test case's cleanup ... +} + +ATF_TEST_CASE(tc3); +ATF_TEST_CASE_BODY(tc3) +{ + ... third test case's body ... +} + +.Ns ... additional test cases ... + +ATF_INIT_TEST_CASES(tcs) +{ + ATF_ADD_TEST_CASE(tcs, tc1); + ATF_ADD_TEST_CASE(tcs, tc2); + ATF_ADD_TEST_CASE(tcs, tc3); + ... add additional test cases ... +} +.Ed +.Ss Definition of test cases +Test cases have an identifier and are composed of three different parts: +the header, the body and an optional cleanup routine, all of which are +described in +.Xr atf-test-case 4 . +To define test cases, one can use the +.Fn ATF_TEST_CASE , +.Fn ATF_TEST_CASE_WITH_CLEANUP +or the +.Fn ATF_TEST_CASE_WITHOUT_HEAD +macros, which take a single parameter specifiying the test case's +name. +.Fn ATF_TEST_CASE , +requires to define a head and a body for the test case, +.Fn ATF_TEST_CASE_WITH_CLEANUP +requires to define a head, a body and a cleanup for the test case and +.Fn ATF_TEST_CASE_WITHOUT_HEAD +requires only a body for the test case. +It is important to note that these +.Em do not +set the test case up for execution when the program is run. +In order to do so, a later registration is needed through the +.Fn ATF_ADD_TEST_CASE +macro detailed in +.Sx Program initialization . +.Pp +Later on, one must define the three parts of the body by means of three +functions. +Their headers are given by the +.Fn ATF_TEST_CASE_HEAD , +.Fn ATF_TEST_CASE_BODY +and +.Fn ATF_TEST_CASE_CLEANUP +macros, all of which take the test case's name. +Following each of these, a block of code is expected, surrounded by the +opening and closing brackets. +.Ss Program initialization +The library provides a way to easily define the test program's +.Fn main +function. +You should never define one on your own, but rely on the +library to do it for you. +This is done by using the +.Fn ATF_INIT_TEST_CASES +macro, which is passed the name of the list that will hold the test cases. +This name can be whatever you want as long as it is a valid variable value. +.Pp +After the macro, you are supposed to provide the body of a function, which +should only use the +.Fn ATF_ADD_TEST_CASE +macro to register the test cases the test program will execute. +The first parameter of this macro matches the name you provided in the +former call. +.Ss Header definitions +The test case's header can define the meta-data by using the +.Fn set +method, which takes two parameters: the first one specifies the +meta-data variable to be set and the second one specifies its value. +Both of them are strings. +.Ss Configuration variables +The test case has read-only access to the current configuration variables +by means of the +.Ft bool +.Fn has_config_var +and the +.Ft std::string +.Fn get_config_var +methods, which can be called in any of the three parts of a test case. +.Ss Access to the source directory +It is possible to get the path to the test case's source directory from any +of its three components by querying the +.Sq srcdir +configuration variable. +.Ss Requiring programs +Aside from the +.Va require.progs +meta-data variable available in the header only, one can also check for +additional programs in the test case's body by using the +.Fn require_prog +function, which takes the base name or full path of a single binary. +Relative paths are forbidden. +If it is not found, the test case will be automatically skipped. +.Ss Test case finalization +The test case finalizes either when the body reaches its end, at which +point the test is assumed to have +.Em passed , +or at any explicit call to +.Fn ATF_PASS , +.Fn ATF_FAIL +or +.Fn ATF_SKIP . +These three macros terminate the execution of the test case immediately. +The cleanup routine will be processed afterwards in a completely automated +way, regardless of the test case's termination reason. +.Pp +.Fn ATF_PASS +does not take any parameters. +.Fn ATF_FAIL +and +.Fn ATF_SKIP +take a single string that describes why the test case failed or +was skipped, respectively. +It is very important to provide a clear error message in both cases so that +the user can quickly know why the test did not pass. +.Ss Expectations +Everything explained in the previous section changes when the test case +expectations are redefined by the programmer. +.Pp +Each test case has an internal state called +.Sq expect +that describes what the test case expectations are at any point in time. +The value of this property can change during execution by any of: +.Bl -tag -width indent +.It Fn expect_death "reason" +Expects the test case to exit prematurely regardless of the nature of the +exit. +.It Fn expect_exit "exitcode" "reason" +Expects the test case to exit cleanly. +If +.Va exitcode +is not +.Sq -1 , +.Xr atf-run 1 +will validate that the exit code of the test case matches the one provided +in this call. +Otherwise, the exact value will be ignored. +.It Fn expect_fail "reason" +Any failure (be it fatal or non-fatal) raised in this mode is recorded. +However, such failures do not report the test case as failed; instead, the +test case finalizes cleanly and is reported as +.Sq expected failure ; +this report includes the provided +.Fa reason +as part of it. +If no error is raised while running in this mode, then the test case is +reported as +.Sq failed . *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206052022.q55KMc3f041929>