Skip to content

Commit

Permalink
Specify test harness in Automake correctly
Browse files Browse the repository at this point in the history
* Previously, `make distcheck` would fail with very high
  values of `-j`, due to a race condition in how the test
  harness was specified. We now use the vanilla (serial)
  testing paradigm recommended by Automake.
  • Loading branch information
SoapGentoo committed Jan 21, 2021
1 parent c8cbb42 commit 099d1a3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
43 changes: 19 additions & 24 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -78,31 +78,26 @@ endif
# tests/ #
##########

check_PROGRAMS = tests/misc_test tests/termination_test tests/simple_test tests/callback_test \
tests/reset_test tests/multi_channel_test tests/snr_bw_test tests/float_short_test \
tests/varispeed_test tests/callback_hang_test tests/src-evaluate tests/throughput_test \
tests/multichan_throughput_test tests/downsample_test tests/clone_test tests/nullptr_test

check: $(check_PROGRAMS)
date
uname -a
tests/misc_test
tests/termination_test
tests/callback_hang_test
tests/downsample_test
tests/simple_test
tests/callback_test
tests/reset_test
tests/clone_test
tests/nullptr_test
tests/multi_channel_test
TESTS = \
tests/callback_hang_test \
tests/callback_test \
tests/clone_test \
tests/downsample_test \
tests/float_short_test \
tests/misc_test \
tests/multi_channel_test \
tests/nullptr_test \
tests/reset_test \
tests/simple_test \
tests/snr_bw_test \
tests/termination_test \
tests/throughput_test \
tests/varispeed_test
tests/float_short_test
tests/snr_bw_test
tests/throughput_test
@echo "-----------------------------------------------------------------"
@echo " ${PACKAGE}-${VERSION} passed all tests."
@echo "-----------------------------------------------------------------"

check_PROGRAMS = \
$(TESTS) \
tests/multichan_throughput_test \
tests/src-evaluate

#===============================================================================

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2002-2017 Erik de Castro Lopo (erikd AT mega-nerd DOT com).
# Copyright (C) 2002-2021 Erik de Castro Lopo (erikd AT mega-nerd DOT com).

dnl Require autoconf version >= 2.69)
AC_PREREQ([2.69])
Expand Down Expand Up @@ -27,7 +27,7 @@ AC_CANONICAL_HOST
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([src/config.h])

AM_INIT_AUTOMAKE([1.14 foreign dist-bzip2 no-dist-gzip subdir-objects])
AM_INIT_AUTOMAKE([1.14 foreign dist-bzip2 no-dist-gzip subdir-objects serial-tests])
AM_SILENT_RULES([yes])

dnl ====================================================================================
Expand Down

0 comments on commit 099d1a3

Please sign in to comment.