diff --git a/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc b/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
index 64abdff3a38497d60057c66028a77b957622a47c..0f71f0e6123a3e2e612bb3da08c1f8739afad796 100644
--- a/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
+++ b/test/multidomain/2cnistokes2p2cni/test_2cnistokes2p2cni.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -270,3 +272,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCNIStokesTwoPTwoCNIProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc b/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
index 2d55ac65a08270387b66d0d46beb6cc1f2a7d4f9..db3457f449ee1e63ad12d77b6438f2686c608bb8 100644
--- a/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
+++ b/test/multidomain/2cnizeroeq2p2cni/test_2cnizeroeq2p2cni.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -341,3 +343,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCNIZeroEqTwoPTwoCNIProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc b/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
index 7d6483d9993389bbb3b5d5ae94f75fe82bd8a8e4..d4902436f9814acb6318c589ee26fbcc897ca8f2 100644
--- a/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
+++ b/test/multidomain/2cstokes2p2c/test_2cstokes2p2c.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -265,3 +267,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCStokesTwoPTwoCProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif
diff --git a/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc b/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
index 84e01a85a29f8ff119fc7981c41507f54e693726..ae12d128d482bc20453cf27821ac187ad0c3b415 100644
--- a/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
+++ b/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc
@@ -29,6 +29,8 @@
 #include <dune/common/parallel/mpihelper.hh>
 #include <dune/common/parametertreeparser.hh>
 
+#if HAVE_DUNE_MULTIDOMAIN
+
 #include <dumux/common/start.hh>
 #include <dumux/io/interfacemeshcreator.hh>
 
@@ -329,3 +331,15 @@ int main(int argc, char** argv)
     typedef TTAG(TwoCZeroEqTwoPTwoCProblem) ProblemTypeTag;
     return startLocal<ProblemTypeTag>(argc, argv, printUsage);
 }
+
+#else
+
+#warning You need to have dune-multidomain installed to run this test
+
+int main()
+{
+    std::cerr << "You need to have dune-multidomain installed to run this test\n";
+    return 77;
+}
+
+#endif