Skip to content

configure support for extended test suite #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,18 @@ AC_SUBST([SWIFT_LIBDIR])
AC_CHECK_PROG(use_gold_linker, ld.gold, true, false)
AM_CONDITIONAL(USE_GOLD_LINKER, $use_gold_linker)

#
# Enable an extended test suite that includes
# tests that are too unreliable to be enabled by
# default in the Swift CI environment, but are still
# useful for libdispatch developers to be able to run.
#
AC_ARG_ENABLE([extended-test-suite],
[AS_HELP_STRING([--enable-extended-test-suite],
[Include additional test cases that may fail intermittently])]
)
AM_CONDITIONAL(EXTENDED_TEST_SUITE, test "x$enable_extended_test_suite" = "xyes")

#
# Enable __thread based TSD on platforms where it is efficient
# Allow override based on command line argument to configure
Expand Down
65 changes: 17 additions & 48 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,36 @@ check_PROGRAMS= \

noinst_SCRIPTS=leaks-wrapper.sh

# Tests that have not been ported to Linux
# because they test unsupported functionality.
UNPORTED_TESTS= \
dispatch_deadname \
dispatch_proc \
dispatch_vm \
dispatch_vnode

# Tests that have been disabled as they dont' reliably
# pass or fail (so can't succeed, or run as XFAIL tests)
DISABLED_TESTS= \
# Tests that usually pass, but occasionally fail
# and are therefore not suitable for general CI usage.
UNRELIABLE_TESTS= \
dispatch_priority \
dispatch_priority2 \
dispatch_concur \
dispatch_read \
dispatch_read2 \
dispatch_suspend_timer \
dispatch_pingpong \
dispatch_drift \
dispatch_readsync \
dispatch_cascade \
dispatch_io

if EXTENDED_TEST_SUITE
ADDITIONAL_TESTS= $(UNRELIABLE_TESTS)
else
ADDITIONAL_TESTS=
endif

# The set of tests that will be run by 'make check'
TESTS= \
dispatch_apply \
dispatch_api \
Expand All @@ -53,58 +65,15 @@ TESTS= \
dispatch_timer_short \
dispatch_timer_timeout \
dispatch_sema \
dispatch_suspend_timer \
dispatch_timer_bit31 \
dispatch_timer_bit63 \
dispatch_timer_set_time \
dispatch_starfish \
dispatch_data \
dispatch_io_net \
dispatch_select

# List tests that are expected to fail here.
# Currently dispatch_concur fails occasionally, but passes more often than fails.
XFAIL_TESTS = \
dispatch_concur \
dispatch_readsync
dispatch_select \
$(ADDITIONAL_TESTS)

ORIGINAL_LIST_OF_TESTS= \
dispatch_apply \
dispatch_api \
dispatch_c99 \
dispatch_deadname \
dispatch_debug \
dispatch_queue_finalizer \
dispatch_group \
dispatch_overcommit \
dispatch_pingpong \
dispatch_plusplus \
dispatch_priority \
dispatch_priority2 \
dispatch_concur \
dispatch_context_for_key \
dispatch_proc \
dispatch_read \
dispatch_read2 \
dispatch_after \
dispatch_timer \
dispatch_timer_short \
dispatch_timer_timeout \
dispatch_sema \
dispatch_suspend_timer \
dispatch_timer_bit31 \
dispatch_timer_bit63 \
dispatch_timer_set_time \
dispatch_starfish \
dispatch_cascade \
dispatch_drift \
dispatch_readsync \
dispatch_data \
dispatch_io \
dispatch_io_net \
dispatch_vm \
dispatch_vnode \
dispatch_select

dispatch_c99_CFLAGS=$(DISPATCH_TESTS_CFLAGS) $(CBLOCKS_FLAGS) $(KQUEUE_CFLAGS) -std=c99
dispatch_plusplus_SOURCES=dispatch_plusplus.cpp
Expand Down