Date: Thu, 20 May 2010 11:02:15 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/146754: [ports] [patch] add devel/atf framework to ports Message-ID: <201005201102.o4KB2F5R039386@www.freebsd.org> Resent-Message-ID: <201005201110.o4KBA2CJ027351@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 146754 >Category: ports >Synopsis: [ports] [patch] add devel/atf framework to ports >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 20 11:10:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: n/a >Organization: Cisco Systems, Inc >Environment: n/a >Description: The patch attached adds the port -- devel/atf -- to FreeBSD ports. It's a testing framework which is being evaluated for test writing in FreeBSD. >How-To-Repeat: >Fix: Patch attached with submission follows: --- /usr/ports/devel/Makefile 2010-05-17 21:41:57.000000000 -0700 +++ Makefile 2010-05-20 03:54:57.000000000 -0700 @@ -57,6 +57,7 @@ SUBDIR += asmutils SUBDIR += asmx SUBDIR += astyle + SUBDIR += atf SUBDIR += atlas SUBDIR += atlas-devel SUBDIR += autobook diff -Naurp /usr/ports/devel/atf/Makefile atf/Makefile --- /usr/ports/devel/atf/Makefile 1969-12-31 16:00:00.000000000 -0800 +++ atf/Makefile 2010-05-20 02:14:50.000000000 -0700 @@ -0,0 +1,45 @@ +# New ports collection makefile for: atf +# Date Created: 27 May 2010 +# Whom: Garrett Cooper <gcooper@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= atf +PORTVERSION= 0.8 +CATEGORIES= devel +MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/jmmv/atf/0.8/ + +MAINTAINER= gcooper@FreeBSD.org +COMMENT= Automated testing framework + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= ATF_CONFSUBDIR= +CONFIGURE_ARGS+= ATF_SHELL=${SH:Q} + +MAN1+= atf-check.1 \ + atf-config.1 \ + atf-cleanup.1 \ + atf-compile.1 \ + atf-format.1 \ + atf-report.1 \ + atf-run.1 \ + atf-version.1 \ + atf-test-program.1 \ + +MAN3+= atf-c-api.3 \ + atf-c++-api.3 \ + atf-sh-api.3 \ + +MAN4+= atf-test-case.4 \ + +MAN5+= atf-formats.5 \ + +MAN7+= atf.7 \ + +pre-install: +.if defined(NOPORTDOCS) + ${SED} -e ',^share/docs,d' -i '' ${PLIST} +.endif + +.include <bsd.port.mk> diff -Naurp /usr/ports/devel/atf/distinfo atf/distinfo --- /usr/ports/devel/atf/distinfo 1969-12-31 16:00:00.000000000 -0800 +++ atf/distinfo 2010-05-18 23:46:31.000000000 -0700 @@ -0,0 +1,3 @@ +MD5 (atf-0.8.tar.gz) = a23050cfd55feb1d24c6cd0f43751712 +SHA256 (atf-0.8.tar.gz) = c6fd1e19396a0350e3efddfe65ae51a3307cba00dfa9b70b385b0fc68b806059 +SIZE (atf-0.8.tar.gz) = 669187 diff -Naurp /usr/ports/devel/atf/pkg-deinstall atf/pkg-deinstall --- /usr/ports/devel/atf/pkg-deinstall 1969-12-31 16:00:00.000000000 -0800 +++ atf/pkg-deinstall 2010-05-20 01:26:03.000000000 -0700 @@ -0,0 +1,10 @@ +#!/bin/sh + +# XXX (gcooper): FWIW it's executing this code twice; need to determine why... +rmdir "$PKG_PREFIX/share/xsl/atf" 2>/dev/null || : +(find -s -X "$PKG_PREFIX/tests" -type d | xargs rmdir -p) 2>/dev/null || : + +set -x + +test "$PKG_PREFIX/share/xsl/atf" || false +test "$PKG_PREFIX/tests/atf" || false diff -Naurp /usr/ports/devel/atf/pkg-descr atf/pkg-descr --- /usr/ports/devel/atf/pkg-descr 1969-12-31 16:00:00.000000000 -0800 +++ atf/pkg-descr 2010-05-19 21:25:18.000000000 -0700 @@ -0,0 +1,15 @@ +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. diff -Naurp /usr/ports/devel/atf/pkg-message atf/pkg-message --- /usr/ports/devel/atf/pkg-message 1969-12-31 16:00:00.000000000 -0800 +++ atf/pkg-message 2010-05-19 21:55:25.000000000 -0700 @@ -0,0 +1,11 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2007/08/20 11:59:17 jmmv Exp $ +$FreeBSD$ + +ATF has been successfully installed. You can now proceed to ensure that it +works properly in your system by running its automated test suite. Do so +with the following command: + + cd ${PREFIX}/tests/atf && atf-run | atf-report + +=========================================================================== diff -Naurp /usr/ports/devel/atf/pkg-plist atf/pkg-plist --- /usr/ports/devel/atf/pkg-plist 1969-12-31 16:00:00.000000000 -0800 +++ atf/pkg-plist 2010-05-20 02:14:50.000000000 -0700 @@ -0,0 +1,404 @@ +bin/atf-check +bin/atf-config +bin/atf-compile +bin/atf-report +bin/atf-run +bin/atf-version +include/atf-c/build.h +include/atf-c/check.h +include/atf-c/config.h +include/atf-c/defs.h +include/atf-c/dynstr.h +include/atf-c/env.h +include/atf-c/error.h +include/atf-c/error_fwd.h +include/atf-c/fs.h +include/atf-c/io.h +include/atf-c/list.h +include/atf-c/macros.h +include/atf-c/map.h +include/atf-c/object.h +include/atf-c/process.h +include/atf-c/sanity.h +include/atf-c/tc.h +include/atf-c/tcr.h +include/atf-c/text.h +include/atf-c/tp.h +include/atf-c/ui.h +include/atf-c/user.h +include/atf-c++/application.hpp +include/atf-c++/atffile.hpp +include/atf-c++/build.hpp +include/atf-c++/check.hpp +include/atf-c++/config.hpp +include/atf-c++/env.hpp +include/atf-c++/exceptions.hpp +include/atf-c++/expand.hpp +include/atf-c++/formats.hpp +include/atf-c++/fs.hpp +include/atf-c++/io.hpp +include/atf-c++/macros.hpp +include/atf-c++/parser.hpp +include/atf-c++/process.hpp +include/atf-c++/sanity.hpp +include/atf-c++/signals.hpp +include/atf-c++/tests.hpp +include/atf-c++/text.hpp +include/atf-c++/ui.hpp +include/atf-c++/user.hpp +include/atf-c++/utils.hpp +include/atf-c.h +include/atf-c++.hpp +lib/libatf-c.la +lib/libatf-c++.la +lib/libatf-c.a +lib/libatf-c++.a +lib/pkgconfig/atf-c.pc +lib/pkgconfig/atf-c++.pc +libexec/atf-cleanup +libexec/atf-format +share/doc/atf/AUTHORS +share/doc/atf/COPYING +share/doc/atf/NEWS +share/doc/atf/README +share/examples/atf/tests-results.css +share/examples/atf/atf-run.hooks +share/xml/atf/tests-results.dtd +share/atf/atf.footer.subr +share/atf/atf.header.subr +share/atf/atf.init.subr +share/atf/atf-run.hooks +share/xsl/atf/tests-results.xsl +tests/atf/atf-c/Atffile +tests/atf/atf-c/d_include_atf_c_h.c +tests/atf/atf-c/d_include_build_h.c +tests/atf/atf-c/d_include_check_h.c +tests/atf/atf-c/d_include_config_h.c +tests/atf/atf-c/d_include_dynstr_h.c +tests/atf/atf-c/d_include_env_h.c +tests/atf/atf-c/d_include_error_fwd_h.c +tests/atf/atf-c/d_include_error_h.c +tests/atf/atf-c/d_include_fs_h.c +tests/atf/atf-c/d_include_io_h.c +tests/atf/atf-c/d_include_list_h.c +tests/atf/atf-c/d_include_macros_h.c +tests/atf/atf-c/d_include_map_h.c +tests/atf/atf-c/d_include_object_h.c +tests/atf/atf-c/d_include_process_h.c +tests/atf/atf-c/d_include_tc_h.c +tests/atf/atf-c/d_include_sanity_h.c +tests/atf/atf-c/d_include_tcr_h.c +tests/atf/atf-c/d_include_text_h.c +tests/atf/atf-c/d_include_tp_h.c +tests/atf/atf-c/d_include_ui_h.c +tests/atf/atf-c/d_include_user_h.c +tests/atf/atf-c/d_use_macros_h.c +tests/atf/atf-c/t_atf_c +tests/atf/atf-c/t_build +tests/atf/atf-c/t_check +tests/atf/atf-c/t_config +tests/atf/atf-c/t_dynstr +tests/atf/atf-c/t_env +tests/atf/atf-c/t_error +tests/atf/atf-c/t_fs +tests/atf/atf-c/t_h_lib +tests/atf/atf-c/t_io +tests/atf/atf-c/t_list +tests/atf/atf-c/t_macros +tests/atf/atf-c/t_map +tests/atf/atf-c/t_process +tests/atf/atf-c/t_tc +tests/atf/atf-c/t_tcr +tests/atf/atf-c/t_sanity +tests/atf/atf-c/t_text +tests/atf/atf-c/t_tp +tests/atf/atf-c/t_ui +tests/atf/atf-c/t_user +tests/atf/atf-c/h_processes +tests/atf/atf-c++/Atffile +tests/atf/atf-c++/d_include_application_hpp.cpp +tests/atf/atf-c++/d_include_atf_c++_hpp.cpp +tests/atf/atf-c++/d_include_atffile_hpp.cpp +tests/atf/atf-c++/d_include_build_hpp.cpp +tests/atf/atf-c++/d_include_check_hpp.cpp +tests/atf/atf-c++/d_include_config_hpp.cpp +tests/atf/atf-c++/d_include_env_hpp.cpp +tests/atf/atf-c++/d_include_exceptions_hpp.cpp +tests/atf/atf-c++/d_include_expand_hpp.cpp +tests/atf/atf-c++/d_include_formats_hpp.cpp +tests/atf/atf-c++/d_include_fs_hpp.cpp +tests/atf/atf-c++/d_include_io_hpp.cpp +tests/atf/atf-c++/d_include_macros_hpp.cpp +tests/atf/atf-c++/t_build +tests/atf/atf-c++/d_include_parser_hpp.cpp +tests/atf/atf-c++/d_include_process_hpp.cpp +tests/atf/atf-c++/d_include_sanity_hpp.cpp +tests/atf/atf-c++/d_include_signals_hpp.cpp +tests/atf/atf-c++/d_include_tests_hpp.cpp +tests/atf/atf-c++/d_include_text_hpp.cpp +tests/atf/atf-c++/d_include_ui_hpp.cpp +tests/atf/atf-c++/d_include_user_hpp.cpp +tests/atf/atf-c++/d_include_utils_hpp.cpp +tests/atf/atf-c++/d_use_macros_hpp.cpp +tests/atf/atf-c++/t_atf_c++ +tests/atf/atf-c++/t_application +tests/atf/atf-c++/t_atffile +tests/atf/atf-c++/t_check +tests/atf/atf-c++/t_config +tests/atf/atf-c++/t_env +tests/atf/atf-c++/t_exceptions +tests/atf/atf-c++/t_expand +tests/atf/atf-c++/t_fs +tests/atf/atf-c++/t_formats +tests/atf/atf-c++/t_io +tests/atf/atf-c++/t_macros +tests/atf/atf-c++/t_parser +tests/atf/atf-c++/t_process +tests/atf/atf-c++/t_sanity +tests/atf/atf-c++/t_signals +tests/atf/atf-c++/t_tests +tests/atf/atf-c++/t_text +tests/atf/atf-c++/t_ui +tests/atf/atf-c++/t_user +tests/atf/atf-c++/t_utils +tests/atf/atf-check/Atffile +tests/atf/atf-check/t_integration +tests/atf/atf-cleanup/Atffile +tests/atf/atf-cleanup/t_integration +tests/atf/atf-compile/Atffile +tests/atf/atf-compile/h_mode +tests/atf/atf-compile/t_integration +tests/atf/atf-config/Atffile +tests/atf/atf-config/t_integration +tests/atf/atf-report/Atffile +tests/atf/atf-report/h_fail +tests/atf/atf-report/h_pass +tests/atf/atf-report/h_misc +tests/atf/atf-report/t_integration +tests/atf/atf-run/Atffile +tests/atf/atf-run/h_bad_metadata +tests/atf/atf-run/h_several_tcs +tests/atf/atf-run/h_zero_tcs +tests/atf/atf-run/h_fail +tests/atf/atf-run/h_pass +tests/atf/atf-run/h_misc +tests/atf/atf-run/t_config +tests/atf/atf-run/t_requirements +tests/atf/atf-run/t_test_program +tests/atf/atf-run/t_integration +tests/atf/atf-sh/Atffile +tests/atf/atf-sh/h_misc +tests/atf/atf-sh/t_atf_check +tests/atf/atf-sh/t_config +tests/atf/atf-sh/t_normalize +tests/atf/atf-sh/t_tc +tests/atf/atf-sh/t_tp +tests/atf/data/Atffile +tests/atf/data/t_pkg_config +tests/atf/formats/Atffile +tests/atf/formats/d_atffile_1 +tests/atf/formats/d_atffile_1.expout +tests/atf/formats/d_atffile_2 +tests/atf/formats/d_atffile_2.expout +tests/atf/formats/d_atffile_3 +tests/atf/formats/d_atffile_3.expout +tests/atf/formats/d_atffile_4 +tests/atf/formats/d_atffile_4.expout +tests/atf/formats/d_atffile_5 +tests/atf/formats/d_atffile_5.expout +tests/atf/formats/d_atffile_50 +tests/atf/formats/d_atffile_50.experr +tests/atf/formats/d_atffile_51 +tests/atf/formats/d_atffile_51.experr +tests/atf/formats/d_atffile_52 +tests/atf/formats/d_atffile_52.experr +tests/atf/formats/d_atffile_53 +tests/atf/formats/d_atffile_53.experr +tests/atf/formats/d_atffile_54 +tests/atf/formats/d_atffile_53.expout +tests/atf/formats/d_atffile_54.experr +tests/atf/formats/d_atffile_6 +tests/atf/formats/d_atffile_6.expout +tests/atf/formats/d_config_1 +tests/atf/formats/d_config_1.expout +tests/atf/formats/d_config_2 +tests/atf/formats/d_config_2.expout +tests/atf/formats/d_config_3 +tests/atf/formats/d_config_3.expout +tests/atf/formats/d_config_4 +tests/atf/formats/d_config_4.expout +tests/atf/formats/d_config_50 +tests/atf/formats/d_config_50.experr +tests/atf/formats/d_config_51 +tests/atf/formats/d_config_51.experr +tests/atf/formats/d_config_52 +tests/atf/formats/d_config_52.experr +tests/atf/formats/d_config_53 +tests/atf/formats/d_config_53.experr +tests/atf/formats/d_config_54 +tests/atf/formats/d_config_53.expout +tests/atf/formats/d_config_54.experr +tests/atf/formats/d_headers_1 +tests/atf/formats/d_headers_1.experr +tests/atf/formats/d_headers_10 +tests/atf/formats/d_headers_10.experr +tests/atf/formats/d_headers_11 +tests/atf/formats/d_headers_11.experr +tests/atf/formats/d_headers_12 +tests/atf/formats/d_headers_12.experr +tests/atf/formats/d_headers_2 +tests/atf/formats/d_headers_2.experr +tests/atf/formats/d_headers_3 +tests/atf/formats/d_headers_3.experr +tests/atf/formats/d_headers_4 +tests/atf/formats/d_headers_4.experr +tests/atf/formats/d_headers_5 +tests/atf/formats/d_headers_5.experr +tests/atf/formats/d_headers_6 +tests/atf/formats/d_headers_6.experr +tests/atf/formats/d_headers_7 +tests/atf/formats/d_headers_7.experr +tests/atf/formats/d_headers_8 +tests/atf/formats/d_headers_8.experr +tests/atf/formats/d_headers_9 +tests/atf/formats/d_headers_9.experr +tests/atf/formats/d_tcr_1 +tests/atf/formats/d_tcr_1.expout +tests/atf/formats/d_tcr_2 +tests/atf/formats/d_tcr_2.expout +tests/atf/formats/d_tcr_3 +tests/atf/formats/d_tcr_3.expout +tests/atf/formats/d_tcr_50 +tests/atf/formats/d_tcr_50.experr +tests/atf/formats/d_tcr_51 +tests/atf/formats/d_tcr_51.experr +tests/atf/formats/d_tcr_52 +tests/atf/formats/d_tcr_52.experr +tests/atf/formats/d_tcr_53 +tests/atf/formats/d_tcr_53.experr +tests/atf/formats/d_tcr_54 +tests/atf/formats/d_tcr_54.experr +tests/atf/formats/d_tcr_60 +tests/atf/formats/d_tcr_60.experr +tests/atf/formats/d_tcr_61 +tests/atf/formats/d_tcr_61.expout +tests/atf/formats/d_tcr_61.experr +tests/atf/formats/d_tcr_70 +tests/atf/formats/d_tcr_70.experr +tests/atf/formats/d_tcr_70.expout +tests/atf/formats/d_tcr_71 +tests/atf/formats/d_tcr_71.experr +tests/atf/formats/d_tcr_71.expout +tests/atf/formats/d_tcr_72 +tests/atf/formats/d_tcr_72.experr +tests/atf/formats/d_tcr_72.expout +tests/atf/formats/d_tcr_73 +tests/atf/formats/d_tcr_73.experr +tests/atf/formats/d_tcr_73.expout +tests/atf/formats/d_tcr_74 +tests/atf/formats/d_tcr_74.experr +tests/atf/formats/d_tcr_74.expout +tests/atf/formats/d_tcr_75 +tests/atf/formats/d_tcr_75.experr +tests/atf/formats/d_tcr_75.expout +tests/atf/formats/d_tcr_76 +tests/atf/formats/d_tcr_76.experr +tests/atf/formats/d_tcr_76.expout +tests/atf/formats/d_tcr_77 +tests/atf/formats/d_tcr_77.experr +tests/atf/formats/d_tp_1 +tests/atf/formats/d_tp_1.expout +tests/atf/formats/d_tp_2 +tests/atf/formats/d_tp_2.expout +tests/atf/formats/d_tp_3 +tests/atf/formats/d_tp_3.expout +tests/atf/formats/d_tp_4 +tests/atf/formats/d_tp_4.expout +tests/atf/formats/d_tp_50 +tests/atf/formats/d_tp_50.experr +tests/atf/formats/d_tp_51 +tests/atf/formats/d_tp_51.experr +tests/atf/formats/d_tp_52 +tests/atf/formats/d_tp_52.expout +tests/atf/formats/d_tp_53 +tests/atf/formats/d_tp_53.experr +tests/atf/formats/d_tp_54 +tests/atf/formats/d_tp_54.experr +tests/atf/formats/d_tp_55 +tests/atf/formats/d_tp_55.experr +tests/atf/formats/d_tp_56 +tests/atf/formats/d_tp_56.experr +tests/atf/formats/d_tp_57 +tests/atf/formats/d_tp_57.experr +tests/atf/formats/d_tp_58 +tests/atf/formats/d_tp_58.experr +tests/atf/formats/d_tp_59 +tests/atf/formats/d_tp_59.experr +tests/atf/formats/d_tps_1 +tests/atf/formats/d_tps_1.expout +tests/atf/formats/d_tps_2 +tests/atf/formats/d_tps_2.expout +tests/atf/formats/d_tps_3 +tests/atf/formats/d_tps_3.expout +tests/atf/formats/d_tps_4 +tests/atf/formats/d_tps_4.expout +tests/atf/formats/d_tps_5 +tests/atf/formats/d_tps_5.expout +tests/atf/formats/d_tps_50 +tests/atf/formats/d_tps_50.experr +tests/atf/formats/d_tps_51 +tests/atf/formats/d_tps_51.experr +tests/atf/formats/d_tps_52 +tests/atf/formats/d_tps_52.experr +tests/atf/formats/d_tps_53 +tests/atf/formats/d_tps_53.experr +tests/atf/formats/d_tps_53.expout +tests/atf/formats/d_tps_54 +tests/atf/formats/d_tps_54.experr +tests/atf/formats/d_tps_54.expout +tests/atf/formats/d_tps_55 +tests/atf/formats/d_tps_55.experr +tests/atf/formats/d_tps_55.expout +tests/atf/formats/d_tps_56 +tests/atf/formats/d_tps_56.experr +tests/atf/formats/d_tps_56.expout +tests/atf/formats/d_tps_57 +tests/atf/formats/d_tps_57.experr +tests/atf/formats/d_tps_57.expout +tests/atf/formats/d_tps_58 +tests/atf/formats/d_tps_58.experr +tests/atf/formats/d_tps_58.expout +tests/atf/formats/d_tps_59 +tests/atf/formats/d_tps_59.experr +tests/atf/formats/d_tps_60 +tests/atf/formats/d_tps_60.experr +tests/atf/formats/d_tps_61 +tests/atf/formats/d_tps_61.experr +tests/atf/formats/d_tps_62 +tests/atf/formats/d_tps_62.experr +tests/atf/formats/d_tps_62.expout +tests/atf/formats/d_tps_63 +tests/atf/formats/d_tps_63.experr +tests/atf/formats/d_tps_63.expout +tests/atf/formats/d_tps_64 +tests/atf/formats/d_tps_64.experr +tests/atf/formats/d_tps_64.expout +tests/atf/formats/d_tps_65 +tests/atf/formats/d_tps_65.experr +tests/atf/formats/d_tps_65.expout +tests/atf/formats/d_tps_66 +tests/atf/formats/d_tps_66.experr +tests/atf/formats/d_tps_66.expout +tests/atf/formats/h_parser +tests/atf/formats/t_writers +tests/atf/formats/t_parsers +tests/atf/test_programs/Atffile +tests/atf/test_programs/h_c +tests/atf/test_programs/h_cpp +tests/atf/test_programs/h_sh +tests/atf/test_programs/t_config +tests/atf/test_programs/t_fork +tests/atf/test_programs/t_meta_data +tests/atf/test_programs/t_srcdir +tests/atf/test_programs/t_status +tests/atf/Atffile >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005201102.o4KB2F5R039386>