'LOCAL-HEADERS' => "@local_headers");
almost_verbatim ('check-target',
- 'CHECK-DEPS' => "@check",
'CHECK-TESTS' => "@check_tests");
}
else
{
require_conf_file ("parallel-tests", FOREIGN, 'test-driver');
- almost_verbatim ('parallel-tests', 'CHECK-DEPS' => "@check");
+ almost_verbatim ('parallel-tests');
}
}
}
define_variable 'am.all-progs', INTERNAL, sort keys %known_programs;
define_variable 'am.all-libs', INTERNAL, sort keys %known_libraries;
define_variable 'am.all-ltlibs', INTERNAL, sort keys %known_ltlibraries;
+ # Must come after invocation of several of the 'handle_*' functions
+ # above, which can declare additional dependencies for the 'check'
+ # target.
+ define_variable ('am.test-suite.deps', INTERNAL, @check);
handle_tests;
# This must come after most other rules.
# local check dependencies, and finally run the actual tests (as given
# by $(TESTS), by DejaGNU, and by the 'check-local' target).
check-am: all-am
- $(if %CHECK-DEPS%,$(MAKE) %CHECK-DEPS%,@:)
+ $(if $(am.test-suite.deps),$(MAKE) $(am.test-suite.deps),@:)
$(MAKE) %CHECK-TESTS% check-local
check: $(if $(SUBDIRS),check-recursive,check-am)
# Recheck must depend on $(check_SCRIPTS), $(check_PROGRAMS), etc.
# It must also depend on the 'all' target. See automake bug#11252.
-recheck: all %CHECK-DEPS%
+recheck: all $(am.test-suite.deps)
+$(am.setup-test-harness-workdir)
## See comments above in the check-TESTS recipe for why remove
## $(TEST_SUITE_LOG) here.