Install tests for lutok, kyua-testers and kyua.

This is all conditionalized on a TEST option.

Approved by:	bdrewery
This commit is contained in:
Julio Merino 2014-02-11 03:48:38 +00:00
parent 3a25e443b5
commit 9d505b3b1d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=343717
6 changed files with 199 additions and 11 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= kyua-testers
PORTVERSION= 0.2
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= kyua
@ -14,13 +15,14 @@ LICENSE= BSD
GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS TEST
OPTIONS_SUB= yes
TEST_CONFIGURE_WITH= atf
.include <bsd.port.options.mk>
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
# TODO: install the tests, once FreeBSD has a system for ports to install tests
CONFIGURE_ARGS+= --without-atf
MAKE_FLAGS+= pkgconfigdir=${PREFIX}/libdata/pkgconfig

View file

@ -16,3 +16,23 @@ man/man7/kyua-tap-interface.7.gz
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%TEST%%tests/kyua-testers/Kyuafile
%%TEST%%tests/kyua-testers/atf_helpers
%%TEST%%tests/kyua-testers/atf_inttest
%%TEST%%tests/kyua-testers/atf_list_test
%%TEST%%tests/kyua-testers/atf_result_test
%%TEST%%tests/kyua-testers/cli_test
%%TEST%%tests/kyua-testers/env_test
%%TEST%%tests/kyua-testers/error_test
%%TEST%%tests/kyua-testers/fs_test
%%TEST%%tests/kyua-testers/plain_helpers
%%TEST%%tests/kyua-testers/plain_inttest
%%TEST%%tests/kyua-testers/result_test
%%TEST%%tests/kyua-testers/run_test
%%TEST%%tests/kyua-testers/stacktrace_helper
%%TEST%%tests/kyua-testers/stacktrace_test
%%TEST%%tests/kyua-testers/tap_helpers
%%TEST%%tests/kyua-testers/tap_inttest
%%TEST%%tests/kyua-testers/tap_parser_test
%%TEST%%tests/kyua-testers/text_test
%%TEST%%@dirrm tests/kyua-testers

View file

@ -3,7 +3,7 @@
PORTNAME= kyua
PORTVERSION= 0.8
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PROJECTHOST= kyua
@ -27,13 +27,15 @@ USERS= ${TESTS_USER}
SUB_FILES= kyua.conf
SUB_LIST= TESTS_USER=${TESTS_USER}
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES TEST
OPTIONS_SUB= yes
TEST_CONFIGURE_WITH= atf
.include <bsd.port.options.mk>
CONFIGURE_ARGS+= --without-doxygen
CONFIGURE_ARGS+= --docdir=${DOCSDIR}
# TODO: install the tests, once FreeBSD has a system for ports to install tests
CONFIGURE_ARGS+= --without-atf
MAKE_FLAGS+= examplesdir=${EXAMPLESDIR}
MAKE_FLAGS+= pkgdatadir=${DATADIR}
@ -47,5 +49,7 @@ MAKE_FLAGS+= dist_examples_DATA=
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/kyua/
${INSTALL_DATA} ${WRKDIR}/kyua.conf ${STAGEDIR}${PREFIX}/etc/kyua/
${INSTALL_DATA} ${WRKSRC}/examples/Kyuafile.top \
${STAGEDIR}${PREFIX}/tests/Kyuafile
.include <bsd.port.mk>

View file

@ -29,6 +29,158 @@ man/man7/kyua-test-filters.7.gz
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/Kyuafile.top
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/kyua.conf
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%TEST%%tests/Kyuafile
%%TEST%%tests/kyua-cli/Kyuafile
%%TEST%%tests/kyua-cli/bootstrap/Kyuafile
%%TEST%%tests/kyua-cli/bootstrap/atf_helpers
%%TEST%%tests/kyua-cli/bootstrap/plain_helpers
%%TEST%%tests/kyua-cli/bootstrap/testsuite
%%TEST%%tests/kyua-cli/cli/Kyuafile
%%TEST%%tests/kyua-cli/cli/cmd_about_test
%%TEST%%tests/kyua-cli/cli/cmd_config_test
%%TEST%%tests/kyua-cli/cli/cmd_db_exec_test
%%TEST%%tests/kyua-cli/cli/cmd_db_migrate_test
%%TEST%%tests/kyua-cli/cli/cmd_debug_test
%%TEST%%tests/kyua-cli/cli/cmd_help_test
%%TEST%%tests/kyua-cli/cli/cmd_list_test
%%TEST%%tests/kyua-cli/cli/cmd_report_html_test
%%TEST%%tests/kyua-cli/cli/cmd_report_test
%%TEST%%tests/kyua-cli/cli/cmd_test_test
%%TEST%%tests/kyua-cli/cli/common_test
%%TEST%%tests/kyua-cli/cli/config_test
%%TEST%%tests/kyua-cli/cli/main_test
%%TEST%%tests/kyua-cli/engine/Kyuafile
%%TEST%%tests/kyua-cli/engine/action_test
%%TEST%%tests/kyua-cli/engine/config_test
%%TEST%%tests/kyua-cli/engine/context_test
%%TEST%%tests/kyua-cli/engine/drivers/Kyuafile
%%TEST%%tests/kyua-cli/engine/drivers/debug_test_test
%%TEST%%tests/kyua-cli/engine/drivers/list_tests_helpers
%%TEST%%tests/kyua-cli/engine/drivers/list_tests_test
%%TEST%%tests/kyua-cli/engine/drivers/run_tests_test
%%TEST%%tests/kyua-cli/engine/drivers/scan_action_test
%%TEST%%tests/kyua-cli/engine/exceptions_test
%%TEST%%tests/kyua-cli/engine/filters_test
%%TEST%%tests/kyua-cli/engine/kyuafile_test
%%TEST%%tests/kyua-cli/engine/metadata_test
%%TEST%%tests/kyua-cli/engine/test_case_atf_helpers
%%TEST%%tests/kyua-cli/engine/test_case_plain_helpers
%%TEST%%tests/kyua-cli/engine/test_case_test
%%TEST%%tests/kyua-cli/engine/test_program_test
%%TEST%%tests/kyua-cli/engine/test_result_test
%%TEST%%tests/kyua-cli/engine/testers_test
%%TEST%%tests/kyua-cli/examples/Kyuafile
%%TEST%%tests/kyua-cli/examples/syntax_test
%%TEST%%tests/kyua-cli/integration/Kyuafile
%%TEST%%tests/kyua-cli/integration/cmd_about_test
%%TEST%%tests/kyua-cli/integration/cmd_config_test
%%TEST%%tests/kyua-cli/integration/cmd_db_exec_test
%%TEST%%tests/kyua-cli/integration/cmd_db_migrate_test
%%TEST%%tests/kyua-cli/integration/cmd_debug_test
%%TEST%%tests/kyua-cli/integration/cmd_help_test
%%TEST%%tests/kyua-cli/integration/cmd_list_test
%%TEST%%tests/kyua-cli/integration/cmd_report_html_test
%%TEST%%tests/kyua-cli/integration/cmd_report_test
%%TEST%%tests/kyua-cli/integration/cmd_test_test
%%TEST%%tests/kyua-cli/integration/global_test
%%TEST%%tests/kyua-cli/integration/helpers/bad_test_program
%%TEST%%tests/kyua-cli/integration/helpers/bogus_test_cases
%%TEST%%tests/kyua-cli/integration/helpers/config
%%TEST%%tests/kyua-cli/integration/helpers/expect_all_pass
%%TEST%%tests/kyua-cli/integration/helpers/expect_some_fail
%%TEST%%tests/kyua-cli/integration/helpers/interrupts
%%TEST%%tests/kyua-cli/integration/helpers/metadata
%%TEST%%tests/kyua-cli/integration/helpers/simple_all_pass
%%TEST%%tests/kyua-cli/integration/helpers/simple_some_fail
%%TEST%%tests/kyua-cli/store/Kyuafile
%%TEST%%tests/kyua-cli/store/backend_test
%%TEST%%tests/kyua-cli/store/dbtypes_test
%%TEST%%tests/kyua-cli/store/exceptions_test
%%TEST%%tests/kyua-cli/store/metadata_test
%%TEST%%tests/kyua-cli/store/schema_inttest
%%TEST%%tests/kyua-cli/store/schema_v1.sql
%%TEST%%tests/kyua-cli/store/testdata_v1.sql
%%TEST%%tests/kyua-cli/store/testdata_v2.sql
%%TEST%%tests/kyua-cli/store/transaction_test
%%TEST%%tests/kyua-cli/utils/Kyuafile
%%TEST%%tests/kyua-cli/utils/auto_array_test
%%TEST%%tests/kyua-cli/utils/cmdline/Kyuafile
%%TEST%%tests/kyua-cli/utils/cmdline/base_command_test
%%TEST%%tests/kyua-cli/utils/cmdline/commands_map_test
%%TEST%%tests/kyua-cli/utils/cmdline/exceptions_test
%%TEST%%tests/kyua-cli/utils/cmdline/globals_test
%%TEST%%tests/kyua-cli/utils/cmdline/options_test
%%TEST%%tests/kyua-cli/utils/cmdline/parser_test
%%TEST%%tests/kyua-cli/utils/cmdline/ui_test
%%TEST%%tests/kyua-cli/utils/config/Kyuafile
%%TEST%%tests/kyua-cli/utils/config/exceptions_test
%%TEST%%tests/kyua-cli/utils/config/keys_test
%%TEST%%tests/kyua-cli/utils/config/lua_module_test
%%TEST%%tests/kyua-cli/utils/config/nodes_test
%%TEST%%tests/kyua-cli/utils/config/parser_test
%%TEST%%tests/kyua-cli/utils/config/tree_test
%%TEST%%tests/kyua-cli/utils/datetime_test
%%TEST%%tests/kyua-cli/utils/env_test
%%TEST%%tests/kyua-cli/utils/format/Kyuafile
%%TEST%%tests/kyua-cli/utils/format/exceptions_test
%%TEST%%tests/kyua-cli/utils/format/formatter_test
%%TEST%%tests/kyua-cli/utils/fs/Kyuafile
%%TEST%%tests/kyua-cli/utils/fs/auto_cleaners_test
%%TEST%%tests/kyua-cli/utils/fs/exceptions_test
%%TEST%%tests/kyua-cli/utils/fs/lua_module_test
%%TEST%%tests/kyua-cli/utils/fs/operations_test
%%TEST%%tests/kyua-cli/utils/fs/path_test
%%TEST%%tests/kyua-cli/utils/logging/Kyuafile
%%TEST%%tests/kyua-cli/utils/logging/macros_test
%%TEST%%tests/kyua-cli/utils/logging/operations_test
%%TEST%%tests/kyua-cli/utils/memory_test
%%TEST%%tests/kyua-cli/utils/optional_test
%%TEST%%tests/kyua-cli/utils/passwd_test
%%TEST%%tests/kyua-cli/utils/process/Kyuafile
%%TEST%%tests/kyua-cli/utils/process/child_test
%%TEST%%tests/kyua-cli/utils/process/exceptions_test
%%TEST%%tests/kyua-cli/utils/process/fdstream_test
%%TEST%%tests/kyua-cli/utils/process/helpers
%%TEST%%tests/kyua-cli/utils/process/status_test
%%TEST%%tests/kyua-cli/utils/process/systembuf_test
%%TEST%%tests/kyua-cli/utils/sanity_test
%%TEST%%tests/kyua-cli/utils/signals/Kyuafile
%%TEST%%tests/kyua-cli/utils/signals/exceptions_test
%%TEST%%tests/kyua-cli/utils/signals/interrupts_test
%%TEST%%tests/kyua-cli/utils/signals/misc_test
%%TEST%%tests/kyua-cli/utils/signals/programmer_test
%%TEST%%tests/kyua-cli/utils/sqlite/Kyuafile
%%TEST%%tests/kyua-cli/utils/sqlite/c_gate_test
%%TEST%%tests/kyua-cli/utils/sqlite/database_test
%%TEST%%tests/kyua-cli/utils/sqlite/exceptions_test
%%TEST%%tests/kyua-cli/utils/sqlite/statement_test
%%TEST%%tests/kyua-cli/utils/sqlite/transaction_test
%%TEST%%tests/kyua-cli/utils/stream_test
%%TEST%%tests/kyua-cli/utils/text/Kyuafile
%%TEST%%tests/kyua-cli/utils/text/exceptions_test
%%TEST%%tests/kyua-cli/utils/text/operations_test
%%TEST%%tests/kyua-cli/utils/text/table_test
%%TEST%%tests/kyua-cli/utils/text/templates_test
%%TEST%%tests/kyua-cli/utils/units_test
%%TEST%%@dirrm tests/kyua-cli/utils/text
%%TEST%%@dirrm tests/kyua-cli/utils/sqlite
%%TEST%%@dirrm tests/kyua-cli/utils/signals
%%TEST%%@dirrm tests/kyua-cli/utils/process
%%TEST%%@dirrm tests/kyua-cli/utils/logging
%%TEST%%@dirrm tests/kyua-cli/utils/fs
%%TEST%%@dirrm tests/kyua-cli/utils/format
%%TEST%%@dirrm tests/kyua-cli/utils/config
%%TEST%%@dirrm tests/kyua-cli/utils/cmdline
%%TEST%%@dirrm tests/kyua-cli/utils
%%TEST%%@dirrm tests/kyua-cli/store
%%TEST%%@dirrm tests/kyua-cli/integration/helpers
%%TEST%%@dirrm tests/kyua-cli/integration
%%TEST%%@dirrm tests/kyua-cli/examples
%%TEST%%@dirrm tests/kyua-cli/engine/drivers
%%TEST%%@dirrm tests/kyua-cli/engine
%%TEST%%@dirrm tests/kyua-cli/cli
%%TEST%%@dirrm tests/kyua-cli/bootstrap
%%TEST%%@dirrm tests/kyua-cli
@dirrm %%DATADIR%%/store
@dirrm %%DATADIR%%/misc
@dirrm %%DATADIR%%

View file

@ -3,7 +3,7 @@
PORTNAME= lutok
PORTVERSION= 0.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
@ -16,7 +16,10 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USES= pkgconfig lua
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_DEFINE= DOCS EXAMPLES TEST
OPTIONS_SUB= yes
TEST_CONFIGURE_WITH= atf
.include <bsd.port.options.mk>
@ -25,8 +28,6 @@ CONFIGURE_ARGS+= --htmldir=${DOCSDIR}/html
# The distfile contains prebuilt doxygen files. Specify --without_doxygen so
# we won't rebuild them
CONFIGURE_ARGS+= --without-doxygen
# TODO: install the tests, once FreeBSD has a system for ports to install tests
CONFIGURE_ARGS+= --without-atf
# Force the use of the lua version we have chosen via USE_LUA. If we allow
# lutok's configure script search for one using pkgconfig files, it might pick

View file

@ -230,4 +230,13 @@ libdata/pkgconfig/lutok.pc
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/interpreter.cpp
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/raii.cpp
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%TEST%%tests/lutok/Kyuafile
%%TEST%%tests/lutok/c_gate_test
%%TEST%%tests/lutok/debug_test
%%TEST%%tests/lutok/examples_test
%%TEST%%tests/lutok/exceptions_test
%%TEST%%tests/lutok/operations_test
%%TEST%%tests/lutok/stack_cleaner_test
%%TEST%%tests/lutok/state_test
%%TEST%%@dirrm tests/lutok
@dirrm include/lutok