Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/kyua-cli/dist Initial import of Kyua CLI, versi...



details:   https://anonhg.NetBSD.org/src/rev/e9a70cefd418
branches:  trunk
changeset: 785101:e9a70cefd418
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat Feb 23 12:34:03 2013 +0000

description:
Initial import of Kyua CLI, version 0.6:

This is the main component of Kyua and its build will be guarded by the
MKKYUA knob.  core@ has approved this import.

Description:

Kyua (pronounced Q.A.) is a testing framework for both developers and
users.  Kyua is different from most other testing frameworks in that it
puts the end user experience before anything else.  There are multiple
reasons for users to run the tests themselves, and Kyua ensures that
they can do so in the most convenient way.

This module, kyua-cli, provides the command-line interface to the Kyua
runtime system.  The major purpose of this tool is to run test cases and
generate unified reports for their results.

diffstat:

 external/bsd/kyua-cli/dist/AUTHORS                                  |     1 +
 external/bsd/kyua-cli/dist/COPYING                                  |    27 +
 external/bsd/kyua-cli/dist/Kyuafile                                 |    14 +
 external/bsd/kyua-cli/dist/NEWS                                     |   255 +
 external/bsd/kyua-cli/dist/README                                   |    21 +
 external/bsd/kyua-cli/dist/bootstrap/Kyuafile                       |     5 +
 external/bsd/kyua-cli/dist/bootstrap/atf_helpers.cpp                |    72 +
 external/bsd/kyua-cli/dist/bootstrap/package.m4                     |     6 +
 external/bsd/kyua-cli/dist/bootstrap/plain_helpers.cpp              |   146 +
 external/bsd/kyua-cli/dist/bootstrap/testsuite                      |  2860 ++++++++++
 external/bsd/kyua-cli/dist/bootstrap/testsuite.at                   |   198 +
 external/bsd/kyua-cli/dist/cli/Kyuafile                             |    17 +
 external/bsd/kyua-cli/dist/cli/cmd_about.cpp                        |   141 +
 external/bsd/kyua-cli/dist/cli/cmd_about.hpp                        |    57 +
 external/bsd/kyua-cli/dist/cli/cmd_about_test.cpp                   |   252 +
 external/bsd/kyua-cli/dist/cli/cmd_config.cpp                       |   120 +
 external/bsd/kyua-cli/dist/cli/cmd_config.hpp                       |    54 +
 external/bsd/kyua-cli/dist/cli/cmd_config_test.cpp                  |   141 +
 external/bsd/kyua-cli/dist/cli/cmd_db_exec.cpp                      |   186 +
 external/bsd/kyua-cli/dist/cli/cmd_db_exec.hpp                      |    67 +
 external/bsd/kyua-cli/dist/cli/cmd_db_exec_test.cpp                 |   165 +
 external/bsd/kyua-cli/dist/cli/cmd_db_migrate.cpp                   |    75 +
 external/bsd/kyua-cli/dist/cli/cmd_db_migrate.hpp                   |    54 +
 external/bsd/kyua-cli/dist/cli/cmd_db_migrate_test.cpp              |    51 +
 external/bsd/kyua-cli/dist/cli/cmd_debug.cpp                        |    93 +
 external/bsd/kyua-cli/dist/cli/cmd_debug.hpp                        |    54 +
 external/bsd/kyua-cli/dist/cli/cmd_debug_test.cpp                   |    81 +
 external/bsd/kyua-cli/dist/cli/cmd_help.cpp                         |   247 +
 external/bsd/kyua-cli/dist/cli/cmd_help.hpp                         |    62 +
 external/bsd/kyua-cli/dist/cli/cmd_help_test.cpp                    |   345 +
 external/bsd/kyua-cli/dist/cli/cmd_list.cpp                         |   154 +
 external/bsd/kyua-cli/dist/cli/cmd_list.hpp                         |    75 +
 external/bsd/kyua-cli/dist/cli/cmd_list_test.cpp                    |   107 +
 external/bsd/kyua-cli/dist/cli/cmd_report.cpp                       |   392 +
 external/bsd/kyua-cli/dist/cli/cmd_report.hpp                       |    96 +
 external/bsd/kyua-cli/dist/cli/cmd_report_html.cpp                  |   368 +
 external/bsd/kyua-cli/dist/cli/cmd_report_html.hpp                  |    55 +
 external/bsd/kyua-cli/dist/cli/cmd_report_html_test.cpp             |    47 +
 external/bsd/kyua-cli/dist/cli/cmd_report_test.cpp                  |    91 +
 external/bsd/kyua-cli/dist/cli/cmd_test.cpp                         |   149 +
 external/bsd/kyua-cli/dist/cli/cmd_test.hpp                         |    54 +
 external/bsd/kyua-cli/dist/cli/cmd_test_test.cpp                    |    62 +
 external/bsd/kyua-cli/dist/cli/common.cpp                           |   277 +
 external/bsd/kyua-cli/dist/cli/common.hpp                           |   100 +
 external/bsd/kyua-cli/dist/cli/common.ipp                           |    30 +
 external/bsd/kyua-cli/dist/cli/common_test.cpp                      |   378 +
 external/bsd/kyua-cli/dist/cli/config.cpp                           |   222 +
 external/bsd/kyua-cli/dist/cli/config.hpp                           |    55 +
 external/bsd/kyua-cli/dist/cli/config_test.cpp                      |   348 +
 external/bsd/kyua-cli/dist/cli/main.cpp                             |   328 +
 external/bsd/kyua-cli/dist/cli/main.hpp                             |    67 +
 external/bsd/kyua-cli/dist/cli/main_test.cpp                        |   501 +
 external/bsd/kyua-cli/dist/doc/kyua-about.1.in                      |    93 +
 external/bsd/kyua-cli/dist/doc/kyua-build-root.7.in                 |   114 +
 external/bsd/kyua-cli/dist/doc/kyua-config.1.in                     |    59 +
 external/bsd/kyua-cli/dist/doc/kyua-db-exec.1.in                    |    73 +
 external/bsd/kyua-cli/dist/doc/kyua-db-migrate.1.in                 |    60 +
 external/bsd/kyua-cli/dist/doc/kyua-debug.1.in                      |   127 +
 external/bsd/kyua-cli/dist/doc/kyua-help.1.in                       |    63 +
 external/bsd/kyua-cli/dist/doc/kyua-list.1.in                       |    83 +
 external/bsd/kyua-cli/dist/doc/kyua-report-html.1.in                |    81 +
 external/bsd/kyua-cli/dist/doc/kyua-report.1.in                     |    97 +
 external/bsd/kyua-cli/dist/doc/kyua-test-filters.7.in               |    52 +
 external/bsd/kyua-cli/dist/doc/kyua-test.1.in                       |    88 +
 external/bsd/kyua-cli/dist/doc/kyua.1.in                            |   367 +
 external/bsd/kyua-cli/dist/doc/kyua.conf.5.in                       |   125 +
 external/bsd/kyua-cli/dist/doc/kyuafile.5.in                        |   191 +
 external/bsd/kyua-cli/dist/engine/Kyuafile                          |    17 +
 external/bsd/kyua-cli/dist/engine/action.cpp                        |   123 +
 external/bsd/kyua-cli/dist/engine/action.hpp                        |    71 +
 external/bsd/kyua-cli/dist/engine/action_test.cpp                   |   104 +
 external/bsd/kyua-cli/dist/engine/config.cpp                        |   235 +
 external/bsd/kyua-cli/dist/engine/config.hpp                        |    62 +
 external/bsd/kyua-cli/dist/engine/config_test.cpp                   |   181 +
 external/bsd/kyua-cli/dist/engine/context.cpp                       |   167 +
 external/bsd/kyua-cli/dist/engine/context.hpp                       |    75 +
 external/bsd/kyua-cli/dist/engine/context_test.cpp                  |   118 +
 external/bsd/kyua-cli/dist/engine/drivers/Kyuafile                  |     8 +
 external/bsd/kyua-cli/dist/engine/drivers/debug_test.cpp            |   144 +
 external/bsd/kyua-cli/dist/engine/drivers/debug_test.hpp            |    81 +
 external/bsd/kyua-cli/dist/engine/drivers/debug_test_test.cpp       |    48 +
 external/bsd/kyua-cli/dist/engine/drivers/list_tests.cpp            |   110 +
 external/bsd/kyua-cli/dist/engine/drivers/list_tests.hpp            |    89 +
 external/bsd/kyua-cli/dist/engine/drivers/list_tests_helpers.cpp    |    80 +
 external/bsd/kyua-cli/dist/engine/drivers/list_tests_test.cpp       |   236 +
 external/bsd/kyua-cli/dist/engine/drivers/run_tests.cpp             |   208 +
 external/bsd/kyua-cli/dist/engine/drivers/run_tests.hpp             |   112 +
 external/bsd/kyua-cli/dist/engine/drivers/run_tests_test.cpp        |    48 +
 external/bsd/kyua-cli/dist/engine/drivers/scan_action.cpp           |   111 +
 external/bsd/kyua-cli/dist/engine/drivers/scan_action.hpp           |    97 +
 external/bsd/kyua-cli/dist/engine/drivers/scan_action_test.cpp      |   224 +
 external/bsd/kyua-cli/dist/engine/exceptions.cpp                    |    96 +
 external/bsd/kyua-cli/dist/engine/exceptions.hpp                    |    83 +
 external/bsd/kyua-cli/dist/engine/exceptions_test.cpp               |    78 +
 external/bsd/kyua-cli/dist/engine/filters.cpp                       |   371 +
 external/bsd/kyua-cli/dist/engine/filters.hpp                       |   127 +
 external/bsd/kyua-cli/dist/engine/filters_test.cpp                  |   570 +
 external/bsd/kyua-cli/dist/engine/kyuafile.cpp                      |   630 ++
 external/bsd/kyua-cli/dist/engine/kyuafile.hpp                      |    90 +
 external/bsd/kyua-cli/dist/engine/kyuafile_test.cpp                 |   418 +
 external/bsd/kyua-cli/dist/engine/metadata.cpp                      |  1115 +++
 external/bsd/kyua-cli/dist/engine/metadata.hpp                      |   149 +
 external/bsd/kyua-cli/dist/engine/metadata_test.cpp                 |   785 ++
 external/bsd/kyua-cli/dist/engine/test_case.cpp                     |   482 +
 external/bsd/kyua-cli/dist/engine/test_case.hpp                     |   112 +
 external/bsd/kyua-cli/dist/engine/test_case_atf_helpers.cpp         |   273 +
 external/bsd/kyua-cli/dist/engine/test_case_plain_helpers.cpp       |   195 +
 external/bsd/kyua-cli/dist/engine/test_case_test.cpp                |  1104 +++
 external/bsd/kyua-cli/dist/engine/test_program.cpp                  |   486 +
 external/bsd/kyua-cli/dist/engine/test_program.hpp                  |   101 +
 external/bsd/kyua-cli/dist/engine/test_program_test.cpp             |   327 +
 external/bsd/kyua-cli/dist/engine/test_result.cpp                   |   202 +
 external/bsd/kyua-cli/dist/engine/test_result.hpp                   |    91 +
 external/bsd/kyua-cli/dist/engine/test_result_test.cpp              |   262 +
 external/bsd/kyua-cli/dist/engine/testers.cpp                       |   309 +
 external/bsd/kyua-cli/dist/engine/testers.hpp                       |    85 +
 external/bsd/kyua-cli/dist/engine/testers_test.cpp                  |   316 +
 external/bsd/kyua-cli/dist/examples/Kyuafile                        |     5 +
 external/bsd/kyua-cli/dist/examples/Kyuafile.top                    |    54 +
 external/bsd/kyua-cli/dist/examples/kyua.conf                       |    63 +
 external/bsd/kyua-cli/dist/examples/syntax_test.cpp                 |   186 +
 external/bsd/kyua-cli/dist/integration/Kyuafile                     |    15 +
 external/bsd/kyua-cli/dist/integration/cmd_about_test.sh            |   151 +
 external/bsd/kyua-cli/dist/integration/cmd_config_test.sh           |   340 +
 external/bsd/kyua-cli/dist/integration/cmd_db_exec_test.sh          |   134 +
 external/bsd/kyua-cli/dist/integration/cmd_db_migrate_test.sh       |   107 +
 external/bsd/kyua-cli/dist/integration/cmd_debug_test.sh            |   416 +
 external/bsd/kyua-cli/dist/integration/cmd_help_test.sh             |    91 +
 external/bsd/kyua-cli/dist/integration/cmd_list_test.sh             |   570 +
 external/bsd/kyua-cli/dist/integration/cmd_report_html_test.sh      |   266 +
 external/bsd/kyua-cli/dist/integration/cmd_report_test.sh           |   284 +
 external/bsd/kyua-cli/dist/integration/cmd_test_test.sh             |   993 +++
 external/bsd/kyua-cli/dist/integration/global_test.sh               |   146 +
 external/bsd/kyua-cli/dist/integration/helpers/bad_test_program.cpp |    50 +
 external/bsd/kyua-cli/dist/integration/helpers/bogus_test_cases.cpp |    64 +
 external/bsd/kyua-cli/dist/integration/helpers/config.cpp           |    46 +
 external/bsd/kyua-cli/dist/integration/helpers/expect_all_pass.cpp  |    90 +
 external/bsd/kyua-cli/dist/integration/helpers/expect_some_fail.cpp |    94 +
 external/bsd/kyua-cli/dist/integration/helpers/interrupts.cpp       |    62 +
 external/bsd/kyua-cli/dist/integration/helpers/metadata.cpp         |    93 +
 external/bsd/kyua-cli/dist/integration/helpers/simple_all_pass.cpp  |    55 +
 external/bsd/kyua-cli/dist/integration/helpers/simple_some_fail.cpp |    53 +
 external/bsd/kyua-cli/dist/integration/utils.sh                     |    85 +
 external/bsd/kyua-cli/dist/main.cpp                                 |    50 +
 external/bsd/kyua-cli/dist/misc/context.html                        |    55 +
 external/bsd/kyua-cli/dist/misc/index.html                          |   179 +
 external/bsd/kyua-cli/dist/misc/report.css                          |    78 +
 external/bsd/kyua-cli/dist/misc/test_result.html                    |    74 +
 external/bsd/kyua-cli/dist/store/Kyuafile                           |    10 +
 external/bsd/kyua-cli/dist/store/backend.cpp                        |   374 +
 external/bsd/kyua-cli/dist/store/backend.hpp                        |    97 +
 external/bsd/kyua-cli/dist/store/backend_test.cpp                   |   317 +
 external/bsd/kyua-cli/dist/store/dbtypes.cpp                        |   186 +
 external/bsd/kyua-cli/dist/store/dbtypes.hpp                        |    66 +
 external/bsd/kyua-cli/dist/store/dbtypes_test.cpp                   |   205 +
 external/bsd/kyua-cli/dist/store/exceptions.cpp                     |    88 +
 external/bsd/kyua-cli/dist/store/exceptions.hpp                     |    72 +
 external/bsd/kyua-cli/dist/store/exceptions_test.cpp                |    65 +
 external/bsd/kyua-cli/dist/store/metadata.cpp                       |   137 +
 external/bsd/kyua-cli/dist/store/metadata.hpp                       |    62 +
 external/bsd/kyua-cli/dist/store/metadata_test.cpp                  |   153 +
 external/bsd/kyua-cli/dist/store/migrate_v1_v2.sql                  |   352 +
 external/bsd/kyua-cli/dist/store/schema_inttest.cpp                 |   502 +
 external/bsd/kyua-cli/dist/store/schema_v1.sql                      |   314 +
 external/bsd/kyua-cli/dist/store/schema_v2.sql                      |   293 +
 external/bsd/kyua-cli/dist/store/testdata_v1.sql                    |   330 +
 external/bsd/kyua-cli/dist/store/testdata_v2.sql                    |   462 +
 external/bsd/kyua-cli/dist/store/transaction.cpp                    |   987 +++
 external/bsd/kyua-cli/dist/store/transaction.hpp                    |   140 +
 external/bsd/kyua-cli/dist/store/transaction_test.cpp               |   926 +++
 external/bsd/kyua-cli/dist/utils/Kyuafile                           |    23 +
 external/bsd/kyua-cli/dist/utils/auto_array.hpp                     |   103 +
 external/bsd/kyua-cli/dist/utils/auto_array.ipp                     |   227 +
 external/bsd/kyua-cli/dist/utils/auto_array_test.cpp                |   316 +
 external/bsd/kyua-cli/dist/utils/cmdline/Kyuafile                   |    11 +
 external/bsd/kyua-cli/dist/utils/cmdline/base_command.cpp           |   200 +
 external/bsd/kyua-cli/dist/utils/cmdline/base_command.hpp           |   162 +
 external/bsd/kyua-cli/dist/utils/cmdline/base_command.ipp           |   104 +
 external/bsd/kyua-cli/dist/utils/cmdline/base_command_test.cpp      |   297 +
 external/bsd/kyua-cli/dist/utils/cmdline/commands_map.hpp           |    94 +
 external/bsd/kyua-cli/dist/utils/cmdline/commands_map.ipp           |   161 +
 external/bsd/kyua-cli/dist/utils/cmdline/commands_map_test.cpp      |   144 +
 external/bsd/kyua-cli/dist/utils/cmdline/exceptions.cpp             |   175 +
 external/bsd/kyua-cli/dist/utils/cmdline/exceptions.hpp             |   108 +
 external/bsd/kyua-cli/dist/utils/cmdline/exceptions_test.cpp        |    83 +
 external/bsd/kyua-cli/dist/utils/cmdline/globals.cpp                |    78 +
 external/bsd/kyua-cli/dist/utils/cmdline/globals.hpp                |    48 +
 external/bsd/kyua-cli/dist/utils/cmdline/globals_test.cpp           |    77 +
 external/bsd/kyua-cli/dist/utils/cmdline/options.cpp                |   612 ++
 external/bsd/kyua-cli/dist/utils/cmdline/options.hpp                |   235 +
 external/bsd/kyua-cli/dist/utils/cmdline/options_test.cpp           |   527 +
 external/bsd/kyua-cli/dist/utils/cmdline/parser.cpp                 |   385 +
 external/bsd/kyua-cli/dist/utils/cmdline/parser.hpp                 |   100 +
 external/bsd/kyua-cli/dist/utils/cmdline/parser.ipp                 |    83 +
 external/bsd/kyua-cli/dist/utils/cmdline/parser_test.cpp            |   688 ++
 external/bsd/kyua-cli/dist/utils/cmdline/ui.cpp                     |   270 +
 external/bsd/kyua-cli/dist/utils/cmdline/ui.hpp                     |    83 +
 external/bsd/kyua-cli/dist/utils/cmdline/ui_mock.cpp                |   114 +
 external/bsd/kyua-cli/dist/utils/cmdline/ui_mock.hpp                |    78 +
 external/bsd/kyua-cli/dist/utils/cmdline/ui_test.cpp                |   392 +
 external/bsd/kyua-cli/dist/utils/config/Kyuafile                    |    10 +
 external/bsd/kyua-cli/dist/utils/config/exceptions.cpp              |   113 +
 external/bsd/kyua-cli/dist/utils/config/exceptions.hpp              |    88 +
 external/bsd/kyua-cli/dist/utils/config/exceptions_test.cpp         |   106 +
 external/bsd/kyua-cli/dist/utils/config/keys.cpp                    |    68 +
 external/bsd/kyua-cli/dist/utils/config/keys.hpp                    |    55 +
 external/bsd/kyua-cli/dist/utils/config/keys_test.cpp               |   114 +
 external/bsd/kyua-cli/dist/utils/config/lua_module.cpp              |   273 +
 external/bsd/kyua-cli/dist/utils/config/lua_module.hpp              |    52 +
 external/bsd/kyua-cli/dist/utils/config/lua_module_test.cpp         |   441 +
 external/bsd/kyua-cli/dist/utils/config/nodes.cpp                   |   439 +
 external/bsd/kyua-cli/dist/utils/config/nodes.hpp                   |   310 +
 external/bsd/kyua-cli/dist/utils/config/nodes.ipp                   |   408 +
 external/bsd/kyua-cli/dist/utils/config/nodes_test.cpp              |   568 +
 external/bsd/kyua-cli/dist/utils/config/parser.cpp                  |   192 +
 external/bsd/kyua-cli/dist/utils/config/parser.hpp                  |    95 +
 external/bsd/kyua-cli/dist/utils/config/parser_test.cpp             |   232 +
 external/bsd/kyua-cli/dist/utils/config/tree.cpp                    |   297 +
 external/bsd/kyua-cli/dist/utils/config/tree.hpp                    |   127 +
 external/bsd/kyua-cli/dist/utils/config/tree.ipp                    |   151 +
 external/bsd/kyua-cli/dist/utils/config/tree_test.cpp               |   846 ++
 external/bsd/kyua-cli/dist/utils/datetime.cpp                       |   388 +
 external/bsd/kyua-cli/dist/utils/datetime.hpp                       |   116 +
 external/bsd/kyua-cli/dist/utils/datetime_test.cpp                  |   376 +
 external/bsd/kyua-cli/dist/utils/defs.hpp.in                        |    63 +
 external/bsd/kyua-cli/dist/utils/env.cpp                            |   174 +
 external/bsd/kyua-cli/dist/utils/env.hpp                            |    56 +
 external/bsd/kyua-cli/dist/utils/env_test.cpp                       |   129 +
 external/bsd/kyua-cli/dist/utils/format/Kyuafile                    |     6 +
 external/bsd/kyua-cli/dist/utils/format/exceptions.cpp              |   110 +
 external/bsd/kyua-cli/dist/utils/format/exceptions.hpp              |    83 +
 external/bsd/kyua-cli/dist/utils/format/exceptions_test.cpp         |    74 +
 external/bsd/kyua-cli/dist/utils/format/formatter.cpp               |   291 +
 external/bsd/kyua-cli/dist/utils/format/formatter.hpp               |   121 +
 external/bsd/kyua-cli/dist/utils/format/formatter.ipp               |    76 +
 external/bsd/kyua-cli/dist/utils/format/formatter_test.cpp          |   265 +
 external/bsd/kyua-cli/dist/utils/format/macros.hpp                  |    58 +
 external/bsd/kyua-cli/dist/utils/fs/Kyuafile                        |     9 +
 external/bsd/kyua-cli/dist/utils/fs/auto_cleaners.cpp               |   255 +
 external/bsd/kyua-cli/dist/utils/fs/auto_cleaners.hpp               |    87 +
 external/bsd/kyua-cli/dist/utils/fs/auto_cleaners_test.cpp          |   166 +
 external/bsd/kyua-cli/dist/utils/fs/exceptions.cpp                  |   146 +
 external/bsd/kyua-cli/dist/utils/fs/exceptions.hpp                  |   101 +
 external/bsd/kyua-cli/dist/utils/fs/exceptions_test.cpp             |    86 +
 external/bsd/kyua-cli/dist/utils/fs/lua_module.cpp                  |   270 +
 external/bsd/kyua-cli/dist/utils/fs/lua_module.hpp                  |    47 +
 external/bsd/kyua-cli/dist/utils/fs/lua_module_test.cpp             |   290 +
 external/bsd/kyua-cli/dist/utils/fs/operations.cpp                  |   343 +
 external/bsd/kyua-cli/dist/utils/fs/operations.hpp                  |    64 +
 external/bsd/kyua-cli/dist/utils/fs/operations_test.cpp             |   410 +
 external/bsd/kyua-cli/dist/utils/fs/path.cpp                        |   299 +
 external/bsd/kyua-cli/dist/utils/fs/path.hpp                        |    85 +
 external/bsd/kyua-cli/dist/utils/fs/path_test.cpp                   |   277 +
 external/bsd/kyua-cli/dist/utils/logging/Kyuafile                   |     6 +
 external/bsd/kyua-cli/dist/utils/logging/macros.hpp                 |    68 +
 external/bsd/kyua-cli/dist/utils/logging/macros_test.cpp            |   115 +
 external/bsd/kyua-cli/dist/utils/logging/operations.cpp             |   243 +
 external/bsd/kyua-cli/dist/utils/logging/operations.hpp             |    64 +
 external/bsd/kyua-cli/dist/utils/logging/operations_test.cpp        |   330 +
 external/bsd/kyua-cli/dist/utils/memory.cpp                         |   164 +
 external/bsd/kyua-cli/dist/utils/memory.hpp                         |    45 +
 external/bsd/kyua-cli/dist/utils/memory_test.cpp                    |    63 +
 external/bsd/kyua-cli/dist/utils/noncopyable.hpp                    |    73 +
 external/bsd/kyua-cli/dist/utils/optional.hpp                       |   108 +
 external/bsd/kyua-cli/dist/utils/optional.ipp                       |   257 +
 external/bsd/kyua-cli/dist/utils/optional_test.cpp                  |   285 +
 external/bsd/kyua-cli/dist/utils/passwd.cpp                         |   194 +
 external/bsd/kyua-cli/dist/utils/passwd.hpp                         |    69 +
 external/bsd/kyua-cli/dist/utils/passwd_test.cpp                    |   179 +
 external/bsd/kyua-cli/dist/utils/process/Kyuafile                   |     9 +
 external/bsd/kyua-cli/dist/utils/process/child.cpp                  |   450 +
 external/bsd/kyua-cli/dist/utils/process/child.hpp                  |   105 +
 external/bsd/kyua-cli/dist/utils/process/child.ipp                  |   106 +
 external/bsd/kyua-cli/dist/utils/process/child_test.cpp             |   764 ++
 external/bsd/kyua-cli/dist/utils/process/exceptions.cpp             |    91 +
 external/bsd/kyua-cli/dist/utils/process/exceptions.hpp             |    78 +
 external/bsd/kyua-cli/dist/utils/process/exceptions_test.cpp        |    63 +
 external/bsd/kyua-cli/dist/utils/process/fdstream.cpp               |    75 +
 external/bsd/kyua-cli/dist/utils/process/fdstream.hpp               |    64 +
 external/bsd/kyua-cli/dist/utils/process/fdstream_test.cpp          |    73 +
 external/bsd/kyua-cli/dist/utils/process/helpers.cpp                |    74 +
 external/bsd/kyua-cli/dist/utils/process/status.cpp                 |   179 +
 external/bsd/kyua-cli/dist/utils/process/status.hpp                 |    78 +
 external/bsd/kyua-cli/dist/utils/process/status_test.cpp            |   178 +
 external/bsd/kyua-cli/dist/utils/process/system.cpp                 |    58 +
 external/bsd/kyua-cli/dist/utils/process/system.hpp                 |    66 +
 external/bsd/kyua-cli/dist/utils/process/systembuf.cpp              |   151 +
 external/bsd/kyua-cli/dist/utils/process/systembuf.hpp              |    69 +
 external/bsd/kyua-cli/dist/utils/process/systembuf_test.cpp         |   166 +
 external/bsd/kyua-cli/dist/utils/sanity.cpp                         |   194 +
 external/bsd/kyua-cli/dist/utils/sanity.hpp                         |   193 +
 external/bsd/kyua-cli/dist/utils/sanity_test.cpp                    |   317 +
 external/bsd/kyua-cli/dist/utils/signals/Kyuafile                   |     8 +
 external/bsd/kyua-cli/dist/utils/signals/exceptions.cpp             |   102 +
 external/bsd/kyua-cli/dist/utils/signals/exceptions.hpp             |    83 +
 external/bsd/kyua-cli/dist/utils/signals/exceptions_test.cpp        |    73 +
 external/bsd/kyua-cli/dist/utils/signals/interrupts.cpp             |   261 +
 external/bsd/kyua-cli/dist/utils/signals/interrupts.hpp             |    73 +
 external/bsd/kyua-cli/dist/utils/signals/interrupts_test.cpp        |   214 +
 external/bsd/kyua-cli/dist/utils/signals/misc.cpp                   |    71 +
 external/bsd/kyua-cli/dist/utils/signals/misc.hpp                   |    48 +
 external/bsd/kyua-cli/dist/utils/signals/misc_test.cpp              |   111 +
 external/bsd/kyua-cli/dist/utils/signals/programmer.cpp             |   137 +
 external/bsd/kyua-cli/dist/utils/signals/programmer.hpp             |    65 +
 external/bsd/kyua-cli/dist/utils/signals/programmer_test.cpp        |   140 +
 external/bsd/kyua-cli/dist/utils/sqlite/Kyuafile                    |     9 +
 external/bsd/kyua-cli/dist/utils/sqlite/c_gate.cpp                  |    79 +
 external/bsd/kyua-cli/dist/utils/sqlite/c_gate.hpp                  |    73 +
 external/bsd/kyua-cli/dist/utils/sqlite/c_gate_test.cpp             |    75 +
 external/bsd/kyua-cli/dist/utils/sqlite/database.cpp                |   292 +
 external/bsd/kyua-cli/dist/utils/sqlite/database.hpp                |   108 +
 external/bsd/kyua-cli/dist/utils/sqlite/database_test.cpp           |   241 +
 external/bsd/kyua-cli/dist/utils/sqlite/exceptions.cpp              |   123 +
 external/bsd/kyua-cli/dist/utils/sqlite/exceptions.hpp              |    85 +
 external/bsd/kyua-cli/dist/utils/sqlite/exceptions_test.cpp         |    92 +
 external/bsd/kyua-cli/dist/utils/sqlite/statement.cpp               |   615 ++
 external/bsd/kyua-cli/dist/utils/sqlite/statement.hpp               |   146 +
 external/bsd/kyua-cli/dist/utils/sqlite/statement.ipp               |    52 +
 external/bsd/kyua-cli/dist/utils/sqlite/statement_test.cpp          |   784 ++
 external/bsd/kyua-cli/dist/utils/sqlite/test_utils.hpp              |   151 +
 external/bsd/kyua-cli/dist/utils/sqlite/transaction.cpp             |   141 +
 external/bsd/kyua-cli/dist/utils/sqlite/transaction.hpp             |    68 +
 external/bsd/kyua-cli/dist/utils/sqlite/transaction_test.cpp        |   135 +
 external/bsd/kyua-cli/dist/utils/stream.cpp                         |    83 +
 external/bsd/kyua-cli/dist/utils/stream.hpp                         |    51 +
 external/bsd/kyua-cli/dist/utils/stream_test.cpp                    |    81 +
 external/bsd/kyua-cli/dist/utils/text/Kyuafile                      |     8 +
 external/bsd/kyua-cli/dist/utils/text/exceptions.cpp                |    76 +
 external/bsd/kyua-cli/dist/utils/text/exceptions.hpp                |    69 +
 external/bsd/kyua-cli/dist/utils/text/exceptions_test.cpp           |    67 +
 external/bsd/kyua-cli/dist/utils/text/operations.cpp                |   191 +
 external/bsd/kyua-cli/dist/utils/text/operations.hpp                |    64 +
 external/bsd/kyua-cli/dist/utils/text/operations.ipp                |    91 +
 external/bsd/kyua-cli/dist/utils/text/operations_test.cpp           |   361 +
 external/bsd/kyua-cli/dist/utils/text/table.cpp                     |   428 +
 external/bsd/kyua-cli/dist/utils/text/table.hpp                     |   131 +
 external/bsd/kyua-cli/dist/utils/text/table_test.cpp                |   413 +
 external/bsd/kyua-cli/dist/utils/text/templates.cpp                 |   763 ++
 external/bsd/kyua-cli/dist/utils/text/templates.hpp                 |   120 +
 external/bsd/kyua-cli/dist/utils/text/templates_test.cpp            |  1001 +++
 external/bsd/kyua-cli/dist/utils/units.cpp                          |   172 +
 external/bsd/kyua-cli/dist/utils/units.hpp                          |    93 +
 external/bsd/kyua-cli/dist/utils/units_test.cpp                     |   248 +
 343 files changed, 65503 insertions(+), 0 deletions(-)

diffs (truncated from 66875 to 300 lines):

diff -r e3e04d360fd7 -r e9a70cefd418 external/bsd/kyua-cli/dist/AUTHORS
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/dist/AUTHORS        Sat Feb 23 12:34:03 2013 +0000
@@ -0,0 +1,1 @@
+* Julio Merino <jmmv%google.com@localhost>
diff -r e3e04d360fd7 -r e9a70cefd418 external/bsd/kyua-cli/dist/COPYING
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/dist/COPYING        Sat Feb 23 12:34:03 2013 +0000
@@ -0,0 +1,27 @@
+Copyright 2010, 2011, 2012, 2013 Google Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright
+  notice, this list of conditions and the following disclaimer in the
+  documentation and/or other materials provided with the distribution.
+* Neither the name of Google Inc. nor the names of its contributors
+  may be used to endorse or promote products derived from this software
+  without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff -r e3e04d360fd7 -r e9a70cefd418 external/bsd/kyua-cli/dist/Kyuafile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/dist/Kyuafile       Sat Feb 23 12:34:03 2013 +0000
@@ -0,0 +1,14 @@
+syntax(2)
+
+test_suite("kyua")
+
+-- This is broken in platforms where /bin/sh is not bash.  See Issue 24 for
+-- details.  We should fix this, but it does not seem to be Kyua's problem.
+--include("bootstrap/Kyuafile")
+
+include("cli/Kyuafile")
+include("engine/Kyuafile")
+include("examples/Kyuafile")
+include("integration/Kyuafile")
+include("store/Kyuafile")
+include("utils/Kyuafile")
diff -r e3e04d360fd7 -r e9a70cefd418 external/bsd/kyua-cli/dist/NEWS
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/kyua-cli/dist/NEWS   Sat Feb 23 12:34:03 2013 +0000
@@ -0,0 +1,255 @@
+Changes in version 0.6
+======================
+
+Experimental version released on February 22nd, 2013.
+
+* Issue 36: Changed 'kyua help' to not fail when the configuration file
+  is bogus.  Help should always work.
+
+* Issue 37: Simplified the syntax() calls in configuration and Kyuafile
+  files to only specify the requested version instead of also the format
+  name.  The format name is implied by the file being loaded, so there
+  is no use in the caller having to specify it.  The version number of
+  these file formats has been bumped to 2.
+
+* Issue 39: Added per-test-case metadata values to the HTML reports.
+
+* Issue 40: Rewrote the documentation as manual pages and removed the
+  previous GNU Info document.
+
+* Issue 47: Started using the independent testers in the kyua-testers
+  package to run the test cases.  Kyua does not implement the logic to
+  invoke test cases any more, which provides for better modularity,
+  extensibility and robustness.
+
+* Issue 57: Added support to specify arbitrary metadata properties for
+  test programs right from the Kyuafile.  This is to make plain test
+  programs more versatile, by allowing them to specify any of the
+  requirements (allowed architectures, required files, etc.) supported
+  by Kyua.
+
+* Reduced automatic screen line wrapping of messages to the 'help'
+  command and the output of tables by 'db-exec'.  Wrapping any other
+  messages (specially anything going to stderr) was very annoying
+  because it prevented natural copy/pasting of text.
+
+* Increased the granularity of the error codes returned by kyua(1) to
+  denote different error conditions.  This avoids the overload of '1' to
+  indicate both "expected" errors from specific subcommands and
+  unexpected errors caused by the internals of the code.  The manual now
+  correctly explain how the exit codes behave on a command basis.
+
+* Optimized the database schema to make report generation almost
+  instantaneous.
+
+* Bumped the database schema to 2.  The database now records the
+  metadata of both test programs and test cases generically, without
+  knowledge of their interface.
+
+* Added the 'db-migrate' command to provide a mechanism to upgrade a
+  database with an old schema to the current schema.
+
+* Removed the GDB build-time configuration variable.  This is now part
+  of the kyua-testers package.
+
+* Rewrote the Kyuafile parsing code in C++, which results in a much
+  simpler implementation.  As a side-effect, this gets rid of the
+  external Lua files required by 'kyua', which in turn make the tool
+  self-contained.
+
+* Added caching of various configure test results (particularly in those
+  tests that need to execute a test program) so that cross-compilers can
+  predefine the results of the tests without having to run the
+  executables.
+
+
+Changes in version 0.5
+======================
+
+Experimental version released on July 10th, 2012.
+
+* Issue 15: Added automatic stacktrace gathering of crashing test cases.
+  This relies on GDB and is a best-effort operation.
+
+* Issue 32: Added the '--build-root' option to the debug, list and test
+  commands.  This allows executing test programs from a different
+  directory than where the Kyuafile scripts live.  See the 'Build roots'
+  section in the manual for more details.
+
+* Issue 33: Removed the kyuaify.sh script.  This has been renamed to
+  atf2kyua and moved to the kyua-atf-compat module, where it ships as a
+  first-class utility (with a manual page and tests).
+
+* Issue 34: Changed the HTML reports to include the stdout and stderr of
+  every test case.
+
+* Fixed the build when using a "build directory" and a clean source tree
+  from the repository.
+
+
+Changes in version 0.4
+======================
+
+Experimental version released on June 6th, 2012.
+
+* Added the 'report-html' command to generate HTML reports of the
+  execution of any recorded action.
+
+* Changed the '--output' flag of the 'report' command to only take a
+  path to the target file, not its format.  Different formats are better
+  supported by implementing different subcommands, as the options they
+  may receive will vary from format to format.
+
+* Added a '--with-atf' flag to the configure script to control whether
+  the ATF tests get built or not.  May be useful for packaging systems
+  that do not have ATF in them yet.  Disabling ATF also cuts down the
+  build time of Kyua significantly, but with the obvious drawbacks.
+
+* Grouped 'kyua' subcommands by topic both in the output of 'help' and
+  in the documentation.  In general, the user needs to be aware of
+  commands that rely on a current project and those commands that rely
+  purely on the database to generate reports.
+
+* Made 'help' print the descriptions of options and commands properly
+  tabulated.
+
+* Changed most informational messages to automatically wrap on screen
+  boundaries.
+
+* Rewrote the configuration file parsing module for extensibility.  This
+  will allow future versions of Kyua to provide additional user-facing
+  options in the configuration file.
+
+  No syntax changes have been made, so existing configuration files
+  (version 1) will continue to be parsed without problems.  There is one
+  little exception though: all variables under the top-level
+  'test_suites' tree must be declared as strings.
+
+  Similarly, the '-v' and '--variable' flags to the command line must
+  now carry a 'test_suites.' prefix when referencing any variables under
+  such tree.
+
+
+Changes in version 0.3
+======================
+
+Experimental version released on February 24th, 2012.
+
+* Made the 'test' command record the results of the executed test
+  cases into a SQLite database.  As a side effect, 'test' now supports a
+  '--store' option to indicate where the database lives.
+
+* Added the 'report' command to generate plain-text reports of the
+  test results stored in the database.  The interface of this command is
+  certainly subject to change at this point.
+
+* Added the 'db-exec' command to directly interact with the store
+  database.
+
+* Issue 28: Added support for the 'require.memory' test case property
+  introduced in ATF 0.15.
+
+* Renamed the user-specific configuration file from ~/.kyuarc to
+  ~/.kyua/kyua.conf for consistency with other files stored in the
+  ~/.kyua/ subdirectory.
+
+* Switched to use Lutok instead of our own wrappers over the Lua C
+  library.  Lutok is just what used to be our own utils::lua module, but
+  is now distributed separately.
+
+* Removed the 'Atffile's from the source tree.  Kyua is stable enough
+  to generate trustworthy reports, and we do not want to give the
+  impression that atf-run / atf-report are still supported.
+
+* Enabled logging to stderr for our own test programs.  This makes it
+  slightly easier to debug problems in our own code when we get a
+  failing test.
+
+
+Changes in version 0.2
+======================
+
+Experimental version released on August 24th, 2011.
+
+The biggest change in this release is the ability for Kyua to run test
+programs implemented using different frameworks.  What this means is
+that, now, a Kyua test suite can include not only ATF-based test
+programs, but also "legacy" (aka plain) test programs that do not use
+any framework.  I.e. if you have tests that are simple programs that
+exit with 0 on success and 1 on failure, you can plug them in into a
+Kyua test suite.
+
+Other than this, there have been several user-visible changes.  The most
+important are the addition of the new 'config' and 'debug' subcommands
+to the 'kyua' binary.  The former can be used to inspect the runtime
+configuration of Kyua after parsing, and the latter is useful to
+interact with failing tests cases in order to get more data about the
+failure itself.
+
+Without further ado, here comes the itemized list of changes:
+
+* Generalized the run-time engine to support executing test programs
+  that implement different interfaces.  Test programs that use the ATF
+  libraries are just a special case of this.  (Issue 18.)
+
+* Added support to the engine to run "plain" test programs: i.e. test
+  programs that do not use any framework and report their pass/fail
+  status as an exit code.  This is to simplify the integration of legacy
+  test programs into a test suite, and also to demonstrate that the
+  run-time engine is generic enough to support different test
+  interfaces.  (Issue 18.)
+
+* Added the 'debug' subcommand.  This command allows end users to tweak
+  the execution of a specific test case and to poke into the behavior of
+  its execution.  At the moment, all this command allows is to view the
+  stdout and stderr of the command in real time (which the 'test'
+  command currently completely hides).
+
+* Added the 'config' subcommand.  This command allows the end user to
+  inspect the current configuration variables after evaluation, without
+  having to read through configuration files.  (Issue 11.)
+
+* Removed the test_suites_var function from configuration files.  This
+  was used to set the value of test-suite-sepecific variables, but it
+  was ugly-looking.  It is now possible to use the more natural syntax
+  'test_suites.<test-suite-name>.<variable> = <value>'.  (Issue 11.)
+
+* Added a mechanism to disable the loading of configuration files
+  altogether.  Needed for testing purposes and for scriptability.
+  Available by passing the '--config=none' flag.
+
+* Enabled detection of unused parameters and variables in the code and
+  fixed all warnings.  (Issue 23.)
+
+* Changed the behavior of "developer mode".  Compiler warnings are now
+  enabled unconditionally regardless of whether we are in developer mode
+  or not; developer mode is now only used to perform strict warning
+  checks and to enable assertions.  Additionally, developer mode is now
+  only automatically enabled when building from the repository, not for
+  formal releases.  (Issue 22.)
+
+* Fixed many build and portability problems to Debian sid with GCC 4.6.3
+  and Ubuntu 10.04.1 LTS.  (Issues 20, 21, 26.)
+
+
+Changes in version 0.1
+======================
+
+Experimental version released on June 23rd, 2011.
+
+This is the first public release of the kyua-cli package.
+
+The scope of this release is to provide functional replacement for the




Home | Main Index | Thread Index | Old Index