+# tests requiring a client, a server, *and* restore code
+if WANT_RESTORE
+tests += $(restore_tests)
+
+# and tests requiring all that *and* requiring CHECK_USERID is not set
+if !CHECK_USERID
+tests += $(restore_tests_no_check_userid)
+endif
+endif
+endif
+endif
+
+# tests that need a server with NDMP support
+if WANT_NDMP
+if WANT_SERVER
+tests += $(ndmp_tests)
+endif
+endif
+
+# Add any common files (that should not be run as tests, and that do not
+# require configure-variable substitution) here:
+test_utils = \
+ Installcheck.pm \
+ Installcheck/Catalogs.pm \
+ Installcheck/Config.pm \
+ Installcheck/ClientService.pm \
+ Installcheck/Mock.pm \
+ Installcheck/Run.pm \
+ Installcheck/Dumpcache.pm \
+ Installcheck/Application.pm \
+ Installcheck/Changer.pm
+EXTRA_DIST += $(test_utils)
+
+# the catalogs themselves
+catalogs = \
+ catalogs/amflush.cat \
+ catalogs/bigdb.cat \
+ catalogs/bigestimate.cat \
+ catalogs/chunker-partial.cat \
+ catalogs/doublefailure.cat \
+ catalogs/fatal.cat \
+ catalogs/filesystemstaped.cat \
+ catalogs/flush-noorigsize.cat \
+ catalogs/flush-origsize.cat \
+ catalogs/longstrange.cat \
+ catalogs/multi-taper.cat \
+ catalogs/normal.cat \
+ catalogs/plannerfail.cat \
+ catalogs/quoted.cat \
+ catalogs/resultsmissing.cat \
+ catalogs/retried.cat \
+ catalogs/retried-nofinish.cat \
+ catalogs/retried-strange.cat \
+ catalogs/shortstrange.cat \
+ catalogs/skipped.cat \
+ catalogs/spanned.cat \
+ catalogs/strontium.cat \
+ catalogs/taperr.cat
+EXTRA_DIST += $(catalogs)
+
+
+# and finally some development utilities
+noinst_SCRIPTS = \
+ run-ndmp
+
+CHECK_PERL_FLAGS=-I$(top_srcdir)/installcheck
+
+SCRIPTS_PERL = $(tests) $(mocks) $(noinst_SCRIPTS)
+SCRIPTS_EXTRA_DIST = $(all_tests)
+
+# skip syntax checks on these files, since we're about to run all of them
+SKIP_CHECKS = yes