diff --git a/macports/Portfile.in b/macports/Portfile.in
index 0ab687f7ea1b0fde8b02def84c46a5b4b6cd293e..056f4f62eb1a8a5ce64d1ab9b8f0642e85cf59fd 100644
--- a/macports/Portfile.in
+++ b/macports/Portfile.in
@@ -92,3 +92,8 @@ pre-configure {
   configure.ldflags-append ${linalglib}
 }
 
+# Allow running tests from MacPorts
+test.run yes
+test.target check
+
+