diff --git a/test/decoupled/2p/test_mpfa2p.cc b/test/decoupled/2p/test_mpfa2p.cc
index 26b6a00b2deac32ea48e42421745a271900a2e03..f5130e1a3ed7cbb4f8367b3a7597291c72a430d4 100644
--- a/test/decoupled/2p/test_mpfa2p.cc
+++ b/test/decoupled/2p/test_mpfa2p.cc
@@ -22,6 +22,8 @@
 
 #include "config.h"
 
+#if HAVE_ALUGRID 
+
 #include "test_mpfa2pproblem.hh"
 #include <dumux/common/start.hh>
 
@@ -145,3 +147,17 @@ int main(int argc, char** argv)
         return startReturn;
     }
 }
+
+#else 
+
+#warning You need to have ALUGrid installed to run this test
+
+#include <iostream>
+
+int main()
+{
+    std::cerr << "You need to have ALUGrid installed to run this test\n";
+    return 1;
+}
+
+#endif
\ No newline at end of file