+# tests requiring client
+if WANT_CLIENT
+tests += $(client_tests)
+endif
+
+# tests requiring a client and a server AND restore facilities (any tests that run amdump)
+if WANT_SERVER
+if WANT_CLIENT
+# tests requiring a client and a server (any tests that run amdump)
+tests += $(full_tests)
+
+# 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 \
+ catalogs/taper-parallel-write.cat
+EXTRA_DIST += $(catalogs)
+