From 07552b60bba1d53ee6ad7d82920ceb43d998c174 Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Mon, 6 Nov 2017 18:45:19 +0100
Subject: [PATCH] Add possibility to run tests directly from MacPorts

This makes it possible to use the command

port test plumed

to compile and test plumed.

Notice that tests on travis are still performed explicitly,
I plan to fix this in the near future, after having verified that there
are no problems with timings.
---
 macports/Portfile.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/macports/Portfile.in b/macports/Portfile.in
index 0ab687f7e..056f4f62e 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
+
+
-- 
GitLab