| /netbsd-src/external/bsd/atf/dist/atf-c++/ |
| H A D | utils_test.cpp | 74 atf::utils::create_file("file.txt", ""); in ATF_TEST_CASE_BODY() 75 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY() 76 atf::utils::cat_file("file.txt", "PREFIX"); in ATF_TEST_CASE_BODY() 86 atf::utils::create_file("file.txt", "This is a single line\n"); in ATF_TEST_CASE_BODY() 87 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY() 88 atf::utils::cat_file("file.txt", "PREFIX"); in ATF_TEST_CASE_BODY() 98 atf::utils::create_file("file.txt", "First\nSecond line\nAnd third\n"); in ATF_TEST_CASE_BODY() 99 atf::utils::redirect(STDOUT_FILENO, "captured.txt"); in ATF_TEST_CASE_BODY() 100 atf::utils::cat_file("file.txt", ">"); in ATF_TEST_CASE_BODY() 111 atf::utils::create_file("file.txt", "Foo\n bar baz"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | utils.cpp | 40 atf::utils::cat_file(const std::string& path, const std::string& prefix) in cat_file() 46 atf::utils::copy_file(const std::string& source, const std::string& destination) in copy_file() 52 atf::utils::compare_file(const std::string& path, const std::string& contents) in compare_file() 58 atf::utils::create_file(const std::string& path, const std::string& contents) in create_file() 64 atf::utils::file_exists(const std::string& path) in file_exists() 70 atf::utils::fork(void) in fork() 78 atf::utils::grep_file(const std::string& regex, const std::string& path) in grep_file() 84 atf::utils::grep_string(const std::string& regex, const std::string& str) in grep_string() 90 atf::utils::redirect(const int fd, const std::string& path) in redirect() 100 atf::utils::wait(const pid_t pid, const int exitstatus, in wait()
|
| /netbsd-src/external/bsd/kyua-cli/dist/cli/ |
| H A D | common.hpp | 49 namespace utils { namespace 63 extern const utils::cmdline::path_option build_root_option; 64 extern const utils::cmdline::path_option kyuafile_option; 65 extern const utils::cmdline::list_option results_filter_option; 66 extern const utils::cmdline::path_option store_option; 67 extern const utils::cmdline::property_option variable_option; 75 typedef utils::cmdline::base_command< utils::config::tree > cli_command; 89 utils::optional< utils::fs::path > get_home(void); 91 utils::optional< utils::fs::path > build_root_path( 92 const utils::cmdline::parsed_cmdline&); [all …]
|
| H A D | cmd_about_test.cpp | 48 namespace cmdline = utils::cmdline; 49 namespace fs = utils::fs; 61 atf::utils::create_file("fake-docs/AUTHORS", "Content of AUTHORS\n"); in ATF_TEST_CASE_BODY() 62 atf::utils::create_file("fake-docs/COPYING", "Content of COPYING\n"); in ATF_TEST_CASE_BODY() 64 utils::setenv("KYUA_DOCDIR", "fake-docs"); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE(atf::utils::grep_string(PACKAGE_NAME, ui.out_log()[0])); in ATF_TEST_CASE_BODY() 69 ATF_REQUIRE(atf::utils::grep_string(PACKAGE_VERSION, ui.out_log()[0])); in ATF_TEST_CASE_BODY() 70 ATF_REQUIRE(atf::utils::grep_collection("Content of AUTHORS", in ATF_TEST_CASE_BODY() 72 ATF_REQUIRE(atf::utils::grep_collection("Content of COPYING", in ATF_TEST_CASE_BODY() 74 ATF_REQUIRE(atf::utils::grep_collection("Homepage", ui.out_log())); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | main_test.cpp | 55 namespace cmdline = utils::cmdline; 56 namespace config = utils::config; 57 namespace datetime = utils::datetime; 58 namespace fs = utils::fs; 59 namespace logging = utils::logging; 60 namespace process = utils::process; 181 utils::setenv("HOME", "/home//fake"); in ATF_TEST_CASE_BODY() 182 utils::setenv("TMPDIR", "/do/not/use/this"); in ATF_TEST_CASE_BODY() 195 utils::unsetenv("HOME"); in ATF_TEST_CASE_BODY() 196 utils::setenv("TMPDIR", "/a/b//c"); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | cmd_report.hpp | 58 class file_writer : utils::noncopyable { 60 utils::cmdline::ui* const _ui; 63 const utils::fs::path _output_path; 69 static const utils::fs::path _stdout_path; 72 static const utils::fs::path _stderr_path; 75 file_writer(utils::cmdline::ui* const, const utils::fs::path&); 88 int run(utils::cmdline::ui*, const utils::cmdline::parsed_cmdline&, 89 const utils::config::tree&);
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/ |
| H A D | env_test.cpp | 35 using utils::optional; 41 utils::unsetenv("test-missing"); in ATF_TEST_CASE_BODY() 42 utils::setenv("test-empty", ""); in ATF_TEST_CASE_BODY() 43 utils::setenv("test-text", "some-value"); in ATF_TEST_CASE_BODY() 45 const std::map< std::string, std::string > allenv = utils::getallenv(); in ATF_TEST_CASE_BODY() 67 if (utils::getenv("PATH")) { in ATF_TEST_CASE_BODY() 71 ATF_REQUIRE_EQ(utils::getenv("PATH").get(), (*iter).second); in ATF_TEST_CASE_BODY() 79 const optional< std::string > path = utils::getenv("PATH"); in ATF_TEST_CASE_BODY() 83 ATF_REQUIRE(!utils::getenv("__UNDEFINED_VARIABLE__")); in ATF_TEST_CASE_BODY() 91 utils::getenv_with_default("PATH", "don't use")); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | sanity.hpp | 47 namespace utils { namespace 88 utils::sanity_failure(type, __FILE__, __LINE__, message); \ 105 #define INV(expr) _UTILS_ASSERT(utils::invariant, expr, #expr) 115 #define INV_MSG(expr, msg) _UTILS_ASSERT(utils::invariant, expr, msg) 128 #define PRE(expr) _UTILS_ASSERT(utils::precondition, expr, #expr) 138 #define PRE_MSG(expr, msg) _UTILS_ASSERT(utils::precondition, expr, msg) 151 #define POST(expr) _UTILS_ASSERT(utils::postcondition, expr, #expr) 161 #define POST_MSG(expr, msg) _UTILS_ASSERT(utils::postcondition, expr, msg) 189 utils::sanity_failure(utils::unreachable, __FILE__, __LINE__, msg); \
|
| H A D | optional.ipp | 34 #include "utils/defs.hpp" 35 #include "utils/optional.hpp" 36 #include "utils/sanity.hpp" 41 utils::optional< T >::optional(void) : 49 /// \param unused_none A copy of the utils::none instance. 51 utils::optional< T >::optional( 52 utils::detail::none_t UTILS_UNUSED_PARAM(none)) : 62 utils::optional< T >::optional(const T& data) : 72 utils::optional< T >::optional(const optional< T >& other) : 80 utils::optional< T >::~optional(void) [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/engine/ |
| H A D | kyuafile_test.cpp | 46 namespace datetime = utils::datetime; 47 namespace fs = utils::fs; 49 using utils::none; 55 atf::utils::create_file("config", "syntax(2)\n"); in ATF_TEST_CASE_BODY() 68 atf::utils::create_file( in ATF_TEST_CASE_BODY() 79 atf::utils::create_file( in ATF_TEST_CASE_BODY() 86 atf::utils::create_file( in ATF_TEST_CASE_BODY() 91 atf::utils::create_file("1st", ""); in ATF_TEST_CASE_BODY() 92 atf::utils::create_file("2nd", ""); in ATF_TEST_CASE_BODY() 93 atf::utils::create_file("3rd", ""); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | testers_test.cpp | 50 namespace datetime = utils::datetime; 51 namespace fs = utils::fs; 52 namespace passwd = utils::passwd; 54 using utils::none; 55 using utils::optional; 71 atf::utils::create_file( in create_mock_tester_exit() 83 utils::setenv("KYUA_TESTERSDIR", fs::current_path().str()); in create_mock_tester_exit() 98 atf::utils::create_file( in create_mock_tester_signal() 112 utils::setenv("KYUA_TESTERSDIR", fs::current_path().str()); in create_mock_tester_signal() 142 engine::tester tester("mock", utils::make_optional(user), in ATF_TEST_CASE_BODY() [all …]
|
| H A D | testers.hpp | 43 namespace utils { namespace 68 tester(const std::string&, const utils::optional< utils::passwd::user >&, 69 const utils::optional< utils::datetime::delta >&); 72 std::string list(const utils::fs::path&) const; 73 void test(const utils::fs::path&, const std::string&, 74 const utils::fs::path&, const utils::fs::path&, 75 const utils::fs::path&, 80 utils::fs::path tester_path(const std::string&);
|
| H A D | kyuafile.hpp | 66 utils::fs::path _source_root; 69 utils::fs::path _build_root; 75 explicit kyuafile(const utils::fs::path&, const utils::fs::path&, 79 static kyuafile load(const utils::fs::path&, 80 const utils::optional< utils::fs::path >); 82 const utils::fs::path& source_root(void) const; 83 const utils::fs::path& build_root(void) const;
|
| H A D | metadata.hpp | 44 namespace utils { namespace 57 typedef std::set< utils::fs::path > paths_set; 64 extern utils::datetime::delta default_timeout; 80 metadata(const utils::config::tree&); 90 const utils::units::bytes& required_memory(void) const; 93 const utils::datetime::delta& timeout(void) const; 106 class metadata_builder : utils::noncopyable { 121 metadata_builder& add_required_file(const utils::fs::path&); 122 metadata_builder& add_required_program(const utils::fs::path&); 131 metadata_builder& set_required_memory(const utils::units::bytes&); [all …]
|
| H A D | test_case.hpp | 64 virtual void got_stdout(const utils::fs::path&); 65 virtual void got_stderr(const utils::fs::path&); 88 utils::optional< test_result > fake_result(void) const; 102 test_result debug_test_case(const test_case*, const utils::config::tree&, 103 test_case_hooks&, const utils::fs::path&, 104 const utils::fs::path&, const utils::fs::path&); 105 test_result run_test_case(const test_case*, const utils::config::tree&, 106 test_case_hooks&, const utils::fs::path&);
|
| H A D | filters.hpp | 58 utils::fs::path test_program; 63 test_filter(const utils::fs::path&, const std::string&); 69 bool matches_test_program(const utils::fs::path&) const; 70 bool matches_test_case(const utils::fs::path&, const std::string&) const; 96 typedef std::pair< bool, utils::optional< test_filter > > match; 98 bool match_test_program(const utils::fs::path&) const; 99 match match_test_case(const utils::fs::path&, const std::string&) const; 119 bool match_test_program(const utils::fs::path&) const; 120 bool match_test_case(const utils::fs::path&, const std::string&);
|
| /netbsd-src/external/bsd/am-utils/dist/doc/ |
| H A D | Makefile.am | 9 info_TEXINFOS = am-utils.texi 18 $(srcdir)/version.texi: am-utils.texi $(top_srcdir)/configure.ac 19 @(set `$(SHELL) $(srcdir)/mdate-sh $(srcdir)/am-utils.texi`; \ 30 dist-hook: $(distdir)/am-utils.dvi $(distdir)/am-utils.ps 32 $(distdir)/am-utils.dvi: am-utils.dvi 35 $(distdir)/am-utils.ps: am-utils.ps 39 ps: am-utils.dvi am-utils.ps 41 am-utils-clean: clean maintainer-clean-aminfo maintainer-clean-vti 46 AMU_HTML_TOP=$(HOME)/proj/www/docs/am-utils 47 install-html: $(AMU_HTML_TOP)/am-utils-all.html [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/store/ |
| H A D | dbtypes.hpp | 52 void bind_bool(utils::sqlite::statement&, const char*, const bool); 53 void bind_delta(utils::sqlite::statement&, const char*, 54 const utils::datetime::delta&); 55 void bind_optional_string(utils::sqlite::statement&, const char*, 57 void bind_timestamp(utils::sqlite::statement&, const char*, 58 const utils::datetime::timestamp&); 59 bool column_bool(utils::sqlite::statement&, const char*); 60 utils::datetime::delta column_delta(utils::sqlite::statement&, const char*); 61 std::string column_optional_string(utils::sqlite::statement&, const char*); 62 utils::datetime::timestamp column_timestamp(utils::sqlite::statement&,
|
| H A D | backend.hpp | 37 namespace utils { namespace 58 utils::fs::path migration_file(const int, const int); 59 utils::fs::path schema_file(void); 60 metadata initialize(utils::sqlite::database&); 61 void backup_database(const utils::fs::path&, const int); 84 static backend open_ro(const utils::fs::path&); 85 static backend open_rw(const utils::fs::path&); 87 utils::sqlite::database& database(void); 92 void migrate_schema(const utils::fs::path&);
|
| H A D | backend_test.cpp | 47 namespace datetime = utils::datetime; 48 namespace fs = utils::fs; 49 namespace logging = utils::logging; 50 namespace sqlite = utils::sqlite; 56 atf::utils::create_file("test.db", "The DB\n"); in ATF_TEST_CASE_BODY() 60 ATF_REQUIRE(atf::utils::compare_file("test.db.v13.backup", "The DB\n")); in ATF_TEST_CASE_BODY() 67 atf::utils::create_file("test.db", "Original contents"); in ATF_TEST_CASE_BODY() 68 atf::utils::create_file("test.db.v1.backup", "Overwrite me"); in ATF_TEST_CASE_BODY() 72 ATF_REQUIRE(atf::utils::compare_file("test.db.v1.backup", in ATF_TEST_CASE_BODY() 93 atf::utils::create_file("dir/test.db", "Does not need to be valid"); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/external/bsd/am-utils/dist/ |
| H A D | MIRRORS.txt | 5 official mirror list, please send mail to am-utils-developers AT am-utils.org 10 ftp://ftp.am-utils.org/pub/am-utils 11 Maintainer: ezk AT am-utils.org 13 ftp://ftp.cs.umn.edu/pub/am-utils 17 # ftp://ftp.ferginc.com/pub/unix/am-utils 21 # ftp://info.mcs.kent.edu/pub/am-utils 24 ftp://ftp.cise.ufl.edu/pub/mirrors/am-utils 29 ftp://ftp.fu-berlin.de/unix/network/am-utils 32 ftp://ftp.tu-darmstadt.de/pub/networking/filesystems/am-utils/ 35 ftp://ftp.sunet.se/pub/unix/admin/am-utils [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/fs/ |
| H A D | operations_test.cpp | 57 namespace fs = utils::fs; 59 using utils::optional; 136 utils::unsetenv("PATH"); in ATF_TEST_CASE_BODY() 138 atf::utils::create_file("ls", ""); in ATF_TEST_CASE_BODY() 146 utils::setenv("PATH", ""); in ATF_TEST_CASE_BODY() 148 atf::utils::create_file("ls", ""); in ATF_TEST_CASE_BODY() 158 utils::setenv("PATH", dir.str()); in ATF_TEST_CASE_BODY() 161 atf::utils::create_file((dir / "ls").str(), ""); in ATF_TEST_CASE_BODY() 173 utils::setenv("PATH", dir1.str() + ":" + dir2.str()); in ATF_TEST_CASE_BODY() 176 atf::utils::create_file((dir2 / "ls").str(), ""); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/config/ |
| H A D | parser_test.cpp | 41 namespace config = utils::config; 42 namespace fs = utils::fs; 85 atf::utils::create_file( in ATF_TEST_CASE_BODY() 100 atf::utils::create_file( in ATF_TEST_CASE_BODY() 114 atf::utils::create_file( in ATF_TEST_CASE_BODY() 136 atf::utils::create_file( in ATF_TEST_CASE_BODY() 145 atf::utils::create_file( in ATF_TEST_CASE_BODY() 161 atf::utils::create_file("output.lua", "syntax(56)\n"); in ATF_TEST_CASE_BODY() 173 atf::utils::create_file("output.lua", "syntax('config', 1)\n"); in ATF_TEST_CASE_BODY() 176 atf::utils::create_file("output.lua", "syntax('foo', 1)\n"); in ATF_TEST_CASE_BODY() [all …]
|
| /netbsd-src/external/bsd/kyua-cli/dist/utils/logging/ |
| H A D | macros.hpp | 43 #define LD(message) utils::logging::log(utils::logging::level_debug, \ 50 #define LE(message) utils::logging::log(utils::logging::level_error, \ 57 #define LI(message) utils::logging::log(utils::logging::level_info, \ 64 #define LW(message) utils::logging::log(utils::logging::level_warning, \
|
| /netbsd-src/distrib/sets/lists/games/ |
| H A D | mi | 10 ./usr/games/banner games-utils-bin 14 ./usr/games/caesar games-utils-bin 20 ./usr/games/colorbars games-utils-bin 21 ./usr/games/countmail games-utils-bin 25 ./usr/games/factor games-utils-bin 27 ./usr/games/fortune games-utils-bin 71 ./usr/games/number games-utils-bin 76 ./usr/games/primes games-utils-bin 79 ./usr/games/random games-utils-bin 82 ./usr/games/rot13 games-utils-bin [all …]
|