Home
last modified time | relevance | path

Searched full:atf (Results 1 – 25 of 1191) sorted by relevance

12345678910>>...48

/freebsd/lib/atf/libatf-c/
H A DMakefile31 LIB= atf-c
35 ATF= ${SRCTOP}/contrib/atf macro
36 .PATH: ${ATF}
37 .PATH: ${ATF}/atf-c
38 .PATH: ${ATF}/atf-c/detail
40 CFLAGS+= -I${ATF}
70 INCSDIR= ${INCLUDEDIR}/atf-c
72 INCS+= atf-c.h
75 MAN= atf-c.3
76 MLINKS+= atf-c.3 ATF_CHECK.3 \
[all …]
/freebsd/contrib/atf/
H A DNEWS18 * Added the atf_check_not_equal function to atf-sh to check for
27 * Restored the atf(7) manual page to serve as a reference to all the other
28 manual pages shipped by ATF.
30 * Added the -s flag to atf-sh to support specifying the shell interpreter
36 any stale files left behind by ATF will be automatically cleaned up.
39 relevant manual pages. This information was lost with the atf-config(1)
46 * Renamed the atf-{c,c++,sh}-api(3) manual pages to atf-{c,c++,sh}(3) for
53 * Issue #7: Stopped catching unhandled exceptions in atf-c++ tests. This
58 * Issue #8: Fixed atf-c/macros_test:use test failures spotted by the clang
61 * Issue #12: Improved documentation of atf-sh(3) and atf-check(1) by better
[all …]
H A DREADME.md1 # Welcome to the ATF project!
3 ATF, or Automated Testing Framework, is a **collection of libraries** to
6 The ATF libraries offer a simple API. The API is orthogonal through the
10 ATF-based test programs offer a **consistent end-user command-line
13 ATF-based test programs **rely on an execution engine** to be run and
14 this execution engine is *not* shipped with ATF.
21 * [atf 0.20](../../releases/tag/atf-0.20), released on February 7th, 2014.
28 * Fedora 20 and above: install the `atf` package with `yum install atf`.
30 * FreeBSD 10.0 and above: install the `atf` package with `pkg install atf`.
32 * NetBSD with pkgsrc: install the `pkgsrc/devel/atf` package.
[all …]
H A DFREEBSD-upgrade2 of atf into head. These notes are built on the instructions in
8 The ATF source code is hosted on GitHub:
10 https://github.com/jmmv/atf
12 and is imported into the atf vendor branch (see base/vendor/atf/).
16 cd .../base/head/contrib/atf
18 svn+ssh://svn.freebsd.org/base/vendor/atf/dist .
29 mkdir /tmp/atf
30 cd /tmp/atf
31 .../vendor/atf/dist/configure \
35 cp bconfig.h .../base/head/contrib/atf/
/freebsd/libexec/atf/atf-sh/
H A DMakefile30 ATF= ${SRCTOP}/contrib/atf macro
31 .PATH: ${ATF}/atf-sh
34 PROG_CXX= atf-sh
35 SRCS= atf-sh.cpp
36 MAN= atf-sh.1 atf-sh.3
38 MLINKS+= atf-sh.3 atf-sh-api.3
41 atf-sh.3 atf_add_test_case.3 \
42 atf-sh.3 atf_check.3 \
43 atf-sh.3 atf_check_equal.3 \
44 atf-sh.3 atf_config_get.3 \
[all …]
/freebsd/contrib/atf/atf-c++/
H A Dmacros_test.cpp26 #include "atf-c++/macros.hpp"
38 #include <atf-c++.hpp>
40 #include "atf-c++/detail/fs.hpp"
41 #include "atf-c++/detail/process.hpp"
42 #include "atf-c++/detail/sanity.hpp"
43 #include "atf-c++/detail/test_helpers.hpp"
44 #include "atf-c++/detail/text.hpp"
45 #include "atf-c++/utils.hpp"
105 bool condition = atf::text::to_bool(get_config_var("condition")); in ATF_TEST_CASE_BODY()
119 long v1 = atf::text::to_type< long >(get_config_var("v1")); in ATF_TEST_CASE_BODY()
[all …]
H A Dutils_test.cpp26 #include "atf-c++/utils.hpp"
43 #include <atf-c++.hpp>
70 atf::utils::create_file("file.txt", ""); in ATF_TEST_CASE_BODY()
71 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY()
72 atf::utils::cat_file("file.txt", "PREFIX"); in ATF_TEST_CASE_BODY()
82 atf::utils::create_file("file.txt", "This is a single line\n"); in ATF_TEST_CASE_BODY()
83 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY()
84 atf::utils::cat_file("file.txt", "PREFIX"); in ATF_TEST_CASE_BODY()
94 atf::utils::create_file("file.txt", "First\nSecond line\nAnd third\n"); in ATF_TEST_CASE_BODY()
95 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY()
[all …]
H A Dcheck_test.cpp26 #include "atf-c++/check.hpp"
42 #include <atf-c++.hpp>
44 #include "atf-c++/detail/fs.hpp"
45 #include "atf-c++/detail/process.hpp"
46 #include "atf-c++/detail/test_helpers.hpp"
47 #include "atf-c++/detail/text.hpp"
48 #include "atf-c++/utils.hpp"
55 std::auto_ptr< atf::check::check_result >
56 do_exec(const atf::tests::tc* tc, const char* helper_name) in do_exec()
63 atf::process::argv_array argva(argv); in do_exec()
[all …]
H A Datf-c++.329 .Nm atf-c++ ,
52 .Nm atf::utils::cat_file ,
53 .Nm atf::utils::compare_file ,
54 .Nm atf::utils::copy_file ,
55 .Nm atf::utils::create_file ,
56 .Nm atf::utils::file_exists ,
57 .Nm atf::utils::fork ,
58 .Nm atf::utils::grep_collection ,
59 .Nm atf::utils::grep_file ,
60 .Nm atf::utils::grep_string ,
[all …]
H A Dmacros.hpp33 #include <atf-c++/tests.hpp>
41 class atfu_tc_ ## name : public atf::tests::tc { \
47 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
52 class atfu_tc_ ## name : public atf::tests::tc { \
59 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, false) {} \
64 class atfu_tc_ ## name : public atf::tests::tc { \
72 atfu_tc_ ## name::atfu_tc_ ## name(void) : atf::tests::tc(#name, true) {} \
92 #define ATF_FAIL(reason) atf::tests::tc::fail(reason)
94 #define ATF_SKIP(reason) atf::tests::tc::skip(reason)
96 #define ATF_PASS() atf::tests::tc::pass()
[all …]
H A Dbuild.cpp26 #include "atf-c++/build.hpp"
29 #include "atf-c/build.h"
30 #include "atf-c/error.h"
31 #include "atf-c/utils.h"
34 #include "atf-c++/detail/exceptions.hpp"
35 #include "atf-c++/detail/process.hpp"
37 namespace impl = atf::build;
38 #define IMPL_NAME "atf::build"
45 atf::process::argv_array
54 return atf::process::argv_array(aux); in cargv_to_argv()
[all …]
H A Dutils.cpp26 #include "atf-c++/utils.hpp"
29 #include "atf-c/utils.h"
36 atf::utils::cat_file(const std::string& path, const std::string& prefix) in cat_file()
42 atf::utils::copy_file(const std::string& source, const std::string& destination) in copy_file()
48 atf::utils::compare_file(const std::string& path, const std::string& contents) in compare_file()
54 atf::utils::create_file(const std::string& path, const std::string& contents) in create_file()
60 atf::utils::file_exists(const std::string& path) in file_exists()
66 atf::utils::fork(void) in fork()
74 atf::utils::reset_resultsfile(void) in reset_resultsfile()
81 atf::utils::grep_file(const std::string& regex, const std::string& path) in grep_file()
[all …]
H A Dbuild_test.cpp26 #include "atf-c++/build.hpp"
31 #include <atf-c++.hpp>
34 #include "atf-c/h_build.h"
37 #include "atf-c++/detail/env.hpp"
38 #include "atf-c++/detail/process.hpp"
70 atf::env::set(var, val); in verbose_set_env()
75 equal_argvs(const atf::process::argv_array& aa, const char* const* array) in equal_argvs()
79 atf::process::argv_array::size_type i = 0; in equal_argvs()
95 check_equal_argvs(const atf::process::argv_array& aa, const char* const* array) in check_equal_argvs()
119 ATF_REQUIRE(equal_argvs(atf::process::argv_array(argv), array)); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/cli/
H A Dcmd_about_test.cpp37 #include <atf-c++.hpp>
62 atf::utils::create_file("fake-docs/AUTHORS", in ATF_TEST_CASE_BODY()
67 atf::utils::create_file("fake-docs/CONTRIBUTORS", in ATF_TEST_CASE_BODY()
72 atf::utils::create_file("fake-docs/LICENSE", "Content of LICENSE\n"); in ATF_TEST_CASE_BODY()
79 ATF_REQUIRE(atf::utils::grep_string(PACKAGE_NAME, ui.out_log()[0])); in ATF_TEST_CASE_BODY()
80 ATF_REQUIRE(atf::utils::grep_string(PACKAGE_VERSION, ui.out_log()[0])); in ATF_TEST_CASE_BODY()
82 ATF_REQUIRE(!atf::utils::grep_collection("Content of AUTHORS", in ATF_TEST_CASE_BODY()
84 ATF_REQUIRE(atf::utils::grep_collection("\\* First author", ui.out_log())); in ATF_TEST_CASE_BODY()
85 ATF_REQUIRE(!atf::utils::grep_collection("garbage", ui.out_log())); in ATF_TEST_CASE_BODY()
86 ATF_REQUIRE(atf::utils::grep_collection("\\* Second author", ui.out_log())); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/lib/atf/
H A Dcommon.mk2 # Common Makefile code for all components of ATF.
5 .if !defined(ATF)
6 .error "ATF must be defined and point to the contrib/atf directory"
9 # Depend on the atf-version target to generate a file that contains the
10 # version number of the currently imported ATF release and that only
12 atf-version: atf-version-real
13 @cmp -s atf-version atf-version-real \
14 || cp atf-version-real atf-version
15 atf-version-real: .PHONY
16 @grep 'define VERSION' ${ATF}/config.h \
[all …]
/freebsd/contrib/atf/atf-sh/
H A Datf-check.cpp47 #include "atf-c++/check.hpp"
48 #include "atf-c++/detail/application.hpp"
49 #include "atf-c++/detail/auto_array.hpp"
50 #include "atf-c++/detail/env.hpp"
51 #include "atf-c++/detail/exceptions.hpp"
52 #include "atf-c++/detail/fs.hpp"
53 #include "atf-c++/detail/process.hpp"
54 #include "atf-c++/detail/sanity.hpp"
55 #include "atf-c++/detail/text.hpp"
111 std::auto_ptr< atf::fs::path > m_path;
[all …]
H A Datf-sh.cpp35 #include "atf-c++/detail/application.hpp"
36 #include "atf-c++/detail/env.hpp"
37 #include "atf-c++/detail/fs.hpp"
38 #include "atf-c++/detail/sanity.hpp"
50 const atf::fs::path filepath(filename); in fix_plain_name()
61 const std::string libexecdir = atf::env::get( in construct_script()
63 const std::string pkgdatadir = atf::env::get( in construct_script()
65 const std::string shell = atf::env::get("ATF_SHELL", ATF_SHELL); in construct_script()
69 (*command) += ("Atf_Check='" + libexecdir + "/atf-check' ; " + in construct_script()
108 class atf_sh : public atf::application::app {
[all …]
/freebsd/contrib/atf/atf-c++/detail/
H A Dtest_helpers.hpp37 #include <atf-c++.hpp>
39 #include <atf-c++/detail/env.hpp>
40 #include <atf-c++/detail/process.hpp>
48 const std::string cxx = atf::env::get("ATF_BUILD_CXX", ATF_BUILD_CXX); \
61 const std::string cxx = atf::env::get("ATF_BUILD_CXX", ATF_BUILD_CXX); \
70 namespace atf { namespace
78 bool build_check_cxx_o_srcdir(const atf::tests::tc&, const char*);
79 atf::fs::path get_process_helpers_path(const atf::tests::tc&, bool);
82 const atf::tests::vars_map& m_config;
84 run_h_tc_data(const atf::tests::vars_map& config) : in run_h_tc_data()
[all …]
H A Dtest_helpers.cpp26 #include "atf-c++/detail/test_helpers.hpp"
33 #include <atf-c++.hpp>
35 #include "atf-c++/check.hpp"
36 #include "atf-c++/detail/env.hpp"
37 #include "atf-c++/detail/fs.hpp"
38 #include "atf-c++/detail/process.hpp"
56 optargs.push_back("-I" + atf::env::get("ATF_INCLUDEDIR", ATF_INCLUDEDIR)); in build_check_cxx_o()
60 return atf::check::build_cxx_o(sfile, "test.o", in build_check_cxx_o()
61 atf::process::argv_array(optargs)); in build_check_cxx_o()
65 build_check_cxx_o_srcdir(const atf::tests::tc& tc, const char* sfile) in build_check_cxx_o_srcdir()
[all …]
H A Denv_test.cpp26 #include "atf-c++/detail/env.hpp"
28 #include <atf-c++.hpp>
41 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
42 ATF_REQUIRE(!atf::env::get("PATH").empty()); in ATF_TEST_CASE_BODY()
44 ATF_REQUIRE(!atf::env::has("_UNDEFINED_VARIABLE_")); in ATF_TEST_CASE_BODY()
54 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
55 ATF_REQUIRE(atf::env::get("PATH", "default value") != "default value"); in ATF_TEST_CASE_BODY()
57 ATF_REQUIRE_EQ(atf::env::get("_UNDEFINED_VARIABLE_", "foo bar"), "foo bar"); in ATF_TEST_CASE_BODY()
67 ATF_REQUIRE(atf::env::has("PATH")); in ATF_TEST_CASE_BODY()
68 const std::string& oldval = atf::env::get("PATH"); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/contrib/kyua/engine/
H A Dkyuafile_test.cpp38 #include <atf-c++.hpp>
43 #include "engine/atf.hpp"
70 atf::utils::create_file("config", "syntax(2)\n"); in ATF_TEST_CASE_BODY()
87 atf::utils::create_file( in ATF_TEST_CASE_BODY()
98 atf::utils::create_file( in ATF_TEST_CASE_BODY()
105 atf::utils::create_file( in ATF_TEST_CASE_BODY()
110 atf::utils::create_file("1st", ""); in ATF_TEST_CASE_BODY()
111 atf::utils::create_file("2nd", ""); in ATF_TEST_CASE_BODY()
112 atf::utils::create_file("3rd", ""); in ATF_TEST_CASE_BODY()
113 atf::utils::create_file("4th", ""); in ATF_TEST_CASE_BODY()
[all …]
/freebsd/lib/atf/libatf-c++/
H A DMakefile31 LIB_CXX= atf-c++
35 # libatf-c++ depends on the C version of the ATF library to build.
40 ATF= ${SRCTOP}/contrib/atf macro
41 .PATH: ${ATF}
42 .PATH: ${ATF}/atf-c++
43 .PATH: ${ATF}/atf-c++/detail
45 CFLAGS+= -I${ATF}
70 INCSDIR= ${INCLUDEDIR}/atf-c++
72 INCS+= atf-c++.hpp
75 MAN= atf-c++.3
[all …]
/freebsd/share/man/man7/
H A DMakefile54 ATF= ${SRCTOP}/contrib/atf macro
55 .PATH: ${ATF}/doc
56 MAN+= atf.7
58 CLEANFILES+= atf.7
59 atf.7: atf.7.in
60 sed -e 's,__DOCDIR__,/usr/share/doc/atf,g' \
61 <"${ATF}/doc/atf.7.in" >atf.7
/freebsd/lib/atf/libatf-c++/tests/detail/
H A DMakefile3 TESTSDIR= ${TESTSBASE}/lib/atf/libatf-c++/detail
5 ATF= ${SRCTOP}/contrib/atf
6 .PATH: ${ATF}/atf-c++/detail
8 CFLAGS+= -DATF_C_TESTS_BASE='"${TESTSBASE}/lib/atf/libatf-c"'
10 CFLAGS+= -I${ATF}
28 version_helper.o: atf-version
/freebsd/lib/atf/libatf-c++/tests/
H A DMakefile7 ATF= ${SRCTOP}/contrib/atf macro
8 .PATH: ${ATF}/atf-c++
9 .PATH: ${ATF}/atf-c++/detail
13 CFLAGS+= -DATF_C_TESTS_BASE='"${TESTSBASE}/lib/atf/libatf-c"'
15 CFLAGS+= -I${ATF}

12345678910>>...48